:root {
  --contact-text: #f8fafc;
  --contact-muted: rgba(248, 250, 252, 0.68);
  --contact-border: rgba(255, 255, 255, 0.12);
  --contact-accent: #8b7cff;
  --contact-panel: #0f1720;
  --contact-field: rgba(255, 255, 255, 0.06);
}

.contact {
  position: relative;
  background: #ffffff;
}

.contact__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border-radius: 30px;
  overflow: hidden;
  color: var(--contact-text);
  background:
    radial-gradient(circle at 12% 12%, rgba(99, 102, 241, 0.22), transparent 28%),
    radial-gradient(circle at 86% 88%, rgba(139, 124, 255, 0.13), transparent 26%),
    linear-gradient(135deg, #0c1219, var(--contact-panel));
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.15);
}

.contact__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.section-kicker--inverse {
  color: rgba(248, 250, 252, 0.62);
}

.section-kicker--inverse .section-kicker__line {
  background: rgba(255, 255, 255, 0.18);
}

.contact__title {
  max-width: 700px;
  margin: 1.25rem 0 0;
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.contact__title span {
  color: var(--contact-accent);
}

.contact__lead {
  max-width: 640px;
  margin: 1.2rem 0 0;
  color: var(--contact-muted);
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  line-height: 1.7;
}

.contact__assurances {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
}

.contact__assurance {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.contact__assurance-number {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--contact-border);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.68rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.contact__assurance strong {
  display: block;
  color: #fff;
  font-size: 0.88rem;
}

.contact__assurance span {
  display: block;
  margin-top: 0.2rem;
  color: rgba(248, 250, 252, 0.56);
  font-size: 0.77rem;
  line-height: 1.5;
}

.contact__form-wrap {
  position: relative;
  z-index: 1;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  border: 1px solid var(--contact-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.contact__form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
}

.contact__form-status {
  color: rgba(248, 250, 252, 0.5);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.field {
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  font-weight: 750;
}

.field label span {
  color: #f2a5ae;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  padding: 0.86rem 0.9rem;
  color: #fff;
  background: var(--contact-field);
  outline: none;
  font: inherit;
  font-size: 0.88rem;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.field textarea {
  resize: vertical;
  min-height: 132px;
}

.field select {
  color-scheme: dark;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(248, 250, 252, 0.38);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(139, 124, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(139, 124, 255, 0.12);
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: rgba(244, 126, 141, 0.85);
}

.field__error {
  display: block;
  min-height: 1.1rem;
  margin-top: 0.3rem;
  color: #f5a7b1;
  font-size: 0.68rem;
  line-height: 1.45;
}

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

.contact-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
}

.contact-form__microcopy {
  max-width: 280px;
  margin: 0;
  color: rgba(248, 250, 252, 0.48);
  font-size: 0.72rem;
  line-height: 1.5;
}

.contact-form__submit {
  flex: 0 0 auto;
}

.contact-form__status {
  margin: 0.9rem 0 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  line-height: 1.5;
}

.contact-form__status.is-error {
  border-color: rgba(244, 126, 141, 0.34);
  color: #f8b3bc;
  background: rgba(244, 126, 141, 0.08);
}

.contact-form__status.is-ready {
  border-color: rgba(139, 124, 255, 0.32);
  color: rgba(248, 250, 252, 0.82);
  background: rgba(139, 124, 255, 0.08);
}

@media (max-width: 980px) {
  .contact__panel {
    grid-template-columns: 1fr;
  }

  .contact__content {
    padding-bottom: 0.25rem;
  }
}

@media (max-width: 680px) {
  .contact__panel {
    padding: 0.9rem;
    border-radius: 22px;
  }

  .contact__content {
    padding: 0.7rem;
  }

  .contact__form-wrap {
    padding: 0.9rem;
  }

  .contact-form__grid {
    grid-template-columns: 1fr;
  }

  .field--full {
    grid-column: auto;
  }

  .contact-form__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-form__submit {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .field input,
  .field select,
  .field textarea {
    transition: none;
  }
}

/* Refined form controls */
.field input,
.field select,
.field textarea {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(10, 15, 22, 0.62);
  color: #f8fafc;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(10, 15, 22, 0.78);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #315efb;
  background: rgba(10, 15, 22, 0.9);
  box-shadow: 0 0 0 4px rgba(49, 94, 251, 0.16);
}

.field select {
  appearance: auto;
  color-scheme: dark;
  cursor: pointer;
}

.field select option {
  color: #f8fafc;
  background: #111923;
}

.field select option:checked {
  color: #ffffff;
  background: #315efb;
}

.field select option:hover,
.field select option:focus {
  color: #ffffff;
  background: #253d8c;
}

.field select:active {
  border-color: #315efb;
  background: rgba(10, 15, 22, 0.96);
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: #f08c9b;
  box-shadow: 0 0 0 3px rgba(240, 140, 155, 0.1);
}

.contact-form__submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.contact-form__submit.is-submitting {
  pointer-events: none;
}

.contact-form__status.is-success {
  border-color: rgba(81, 211, 153, 0.3);
  color: #b8f4d4;
  background: rgba(81, 211, 153, 0.08);
}

/* Custom service dropdown. This replaces the OS-native popup so the open
   list uses the same deliberate colors on Chrome/Edge/Windows and mobile. */
.contact-select {
  position: relative;
}

.contact-select > select {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.contact-select__trigger {
  position: relative;
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: #232c38;
  color: #f8fafc;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.contact-select__trigger:hover {
  border-color: rgba(139, 124, 255, 0.64);
  background: #2b3542;
}

.contact-select__trigger:focus-visible,
.contact-select.is-open .contact-select__trigger {
  border-color: #8b7cff;
  background: #27313e;
  box-shadow: 0 0 0 4px rgba(139, 124, 255, 0.14);
}

.contact-select__trigger:active {
  background: #202a35;
}

.contact-select__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-select__chevron {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 2px solid rgba(248, 250, 252, 0.9);
  border-bottom: 2px solid rgba(248, 250, 252, 0.9);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.contact-select.is-open .contact-select__chevron {
  transform: rotate(225deg) translate(-2px, -1px);
}

.contact-select__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 50;
  max-height: 280px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid #465365;
  border-radius: 13px;
  background: #131b25;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.36);
}

.contact-select__menu[hidden] {
  display: none;
}

.contact-select__option {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 9px;
  color: #e9eef7;
  background: transparent;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  user-select: none;
}

.contact-select__option:hover,
.contact-select__option.is-highlighted {
  color: #ffffff;
  background: #315efb;
}

.contact-select__option:active {
  background: #2448c4;
}

.contact-select__option.is-selected {
  color: #ffffff;
  background: #283a68;
}

.contact-select__option.is-selected:hover,
.contact-select__option.is-selected.is-highlighted {
  color: #ffffff;
  background: #315efb;
}

.contact-select__menu::-webkit-scrollbar {
  width: 8px;
}

.contact-select__menu::-webkit-scrollbar-track {
  background: #111822;
  border-radius: 999px;
}

.contact-select__menu::-webkit-scrollbar-thumb {
  background: #4d5d73;
  border-radius: 999px;
}

.contact-select__menu::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.field.has-error .contact-select__trigger {
  border-color: #d92d20;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.1);
}

@media (max-width: 680px) {
  .contact-select__trigger {
    min-height: 54px;
    font-size: 16px;
  }

  .contact-select__option {
    min-height: 46px;
    font-size: 15px;
  }
}


/* Final contact form polish */
.contact-form__submit {
  min-width: 150px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid #315efb;
  border-radius: 12px;
  background: linear-gradient(135deg, #315efb, #274de0);
  color: #ffffff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(49, 94, 251, 0.26);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.contact-form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(49, 94, 251, 0.34);
  filter: brightness(1.04);
}

.contact-form__submit:active {
  transform: translateY(0);
  box-shadow: 0 9px 18px rgba(49, 94, 251, 0.22);
}

.contact-form__submit:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.28);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(49, 94, 251, 0.22), 0 14px 28px rgba(49, 94, 251, 0.28);
}

.contact-form__submit-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  line-height: 1;
}

.contact-form__submit:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
  box-shadow: none;
  filter: none;
}

.contact-form__status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.78rem;
  line-height: 1.55;
  font-weight: 650;
}

.contact-form__status.is-success {
  border: 1px solid rgba(81, 211, 153, 0.35);
  color: #d0fae5;
  background: linear-gradient(135deg, rgba(81, 211, 153, 0.13), rgba(81, 211, 153, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.contact-form__status.is-error {
  border: 1px solid rgba(244, 126, 141, 0.35);
  color: #ffd0d6;
  background: rgba(244, 126, 141, 0.1);
}

@media (max-width: 680px) {
  .contact-form__submit {
    width: 100%;
    min-height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-form__submit {
    transition: none;
  }
}
