.contact-form-shell {
  width: 100%;
}

.contact-form {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 16px;
}

.contact-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-grid-single {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.contact-grid-wide {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-field {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 10px;
}

.contact-label {
  color: var(--c-text-label);
  font-family: var(--font-omnes-stack);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.contact-input,
.contact-select,
.contact-textarea {
  width: 100%;
  color: var(--c-white);
  font-family: var(--font-omnes-stack);
  font-size: 16px;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border: 1px solid var(--c-border-subtle);
  border-radius: 18px;
  padding: 16px 18px;
  outline: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-select {
  height: 56px;
}

.contact-phone-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.contact-phone-code-shell {
  position: relative;
  width: 92px;
  min-width: 92px;
  flex: 0 0 auto;
}

.contact-phone-code-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--c-border-subtle);
  border-radius: 18px;
  background: transparent;
  color: var(--c-white);
  cursor: pointer;
  text-align: left;
  font: inherit;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-phone-code-trigger:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.contact-phone-code-trigger:focus,
.contact-phone-code-trigger:focus-visible {
  border-color: var(--c-aqua-72);
  box-shadow: 0 0 0 4px var(--c-aqua-12);
  outline: none;
}

.contact-phone-code-display-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.contact-phone-code-flag,
.contact-phone-code-option-flag {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 18px;
  border-radius: 0;
  aspect-ratio: 1 / 1;
  object-fit: fill;
  box-shadow: 0 0 0 1px oklch(1 0 0 / 0.12);
}

.contact-phone-code-value {
  line-height: 1;
  white-space: nowrap;
}

.contact-phone-code-chevron {
  position: absolute;
  right: 10px;
  top: 50%;
  color: var(--c-text-ghost);
  font-size: 12px;
  line-height: 1;
  transform: translateY(-45%);
}

.contact-phone-code-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  width: min(340px, calc(100vw - 2rem));
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(10, 18, 28, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.contact-phone-code-search-shell {
  padding: 4px 4px 8px;
  position: sticky;
  top: 0;
  background: rgba(10, 18, 28, 0.96);
  z-index: 1;
}

.contact-phone-code-search {
  width: 100%;
  color: var(--c-white);
  font-family: var(--font-omnes-stack);
  font-size: 14px;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-phone-code-search::placeholder {
  color: var(--c-text-ghost);
}

.contact-phone-code-search:focus {
  border-color: var(--c-aqua-72);
  box-shadow: 0 0 0 3px var(--c-aqua-12);
  background-color: rgba(255, 255, 255, 0.08);
}

.contact-phone-code-empty {
  padding: 16px 12px;
  text-align: center;
  color: var(--c-text-ghost);
  font-family: var(--font-omnes-stack);
  font-size: 14px;
}

.contact-phone-code-option {
  display: grid;
  grid-template-columns: 18px 3.6rem minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--c-white);
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.contact-phone-code-option:hover,
.contact-phone-code-option:focus,
.contact-phone-code-option:focus-visible,
.contact-phone-code-option-selected,
.contact-phone-code-option-active {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.contact-phone-code-option-active {
  background: rgba(255, 255, 255, 0.14);
}

.contact-phone-code-option-dial {
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.contact-phone-code-option-country {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.84);
}

.contact-phone-input {
  flex: 1 1 auto;
  min-width: 0;
}

.contact-textarea {
  min-height: 100px;
  resize: vertical;
}

.contact-country-shell {
  width: 100%;
  position: relative;
}

.contact-country-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid oklch(1 0 0 / 0.14);
  background: var(--c-bg-dark);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 18px 40px var(--c-shadow-suggest);
  z-index: 10;
}

.contact-country-suggestion {
  width: 100%;
  cursor: pointer;
  color: var(--c-white);
  background-color: transparent;
  text-align: left;
  font-family: var(--font-omnes-stack);
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
}

.contact-country-suggestion:hover {
  background-color: var(--c-hover-bg);
}

.contact-helper-text {
  color: var(--c-text-hint);
  font-family: var(--font-omnes-stack);
  font-size: 13px;
  line-height: 1.4;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: var(--c-text-ghost);
}

.contact-input:-webkit-autofill,
.contact-input:-webkit-autofill:hover,
.contact-input:-webkit-autofill:focus,
.contact-select:-webkit-autofill,
.contact-select:-webkit-autofill:hover,
.contact-select:-webkit-autofill:focus,
.contact-textarea:-webkit-autofill,
.contact-textarea:-webkit-autofill:hover,
.contact-textarea:-webkit-autofill:focus,
.contact-input:autofill,
.contact-select:autofill,
.contact-textarea:autofill {
  -webkit-text-fill-color: oklch(1 0 0) !important;
  caret-color: oklch(1 0 0);
  -webkit-box-shadow: 0 0 0px 1000px oklch(0.15 0.025 265 / 0.96) inset !important;
  box-shadow: 0 0 0px 1000px oklch(0.15 0.025 265 / 0.96) inset !important;
  transition: background-color 9999s ease-in-out 0s;
  background-color: transparent !important;
}

.contact-input:disabled,
.contact-select:disabled,
.contact-textarea:disabled,
.contact-phone-code-trigger:disabled {
  background-color: var(--c-bg-dark-78);
  color: oklch(1 0 0 / 0.72);
  -webkit-text-fill-color: oklch(1 0 0 / 0.72);
  opacity: 1;
  cursor: not-allowed;
}

.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
  border-color: var(--c-aqua-72);
  box-shadow: 0 0 0 4px var(--c-aqua-12);
}

.contact-submit-row {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.contact-submit {
  width: 100%;
  max-width: 400px;
  height: 56px;
  cursor: pointer;
  color: var(--c-white);
  font-family: var(--font-omnes-stack);
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 128px;
  corner-shape: squircle;
  background: var(--c-btn-blue);
  box-shadow: 0 12px 40px var(--c-btn-blue-shadow);
  transition: transform 0.1s ease-in-out, box-shadow 0.18s ease, filter 0.18s ease;
  transform: scale(1);
  transform-origin: center;
}

.contact-submit:hover {
  box-shadow: 0 18px 44px var(--c-btn-blue-shadow-h);
  filter: brightness(1.02);
}

.contact-submit:active {
  transform: scale(0.98);
}

.contact-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  filter: grayscale(20%);
  transform: scale(1);
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .contact-grid,
  .contact-grid-wide {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-phone-code-shell {
    width: 78px;
    min-width: 78px;
  }

  .contact-phone-code-dropdown {
    width: min(300px, calc(100vw - 2rem));
  }

  .contact-submit-row {
    justify-content: stretch;
  }
}
