/* Contact page — consultation layout */

body:has(.contact-page) {
  background: #f6f3ec;
}

.contact-page {
  --contact-cream: #f6f3ec;
  --contact-card: #ffffff;
  --contact-ink: #102033;
  --contact-muted: #5b6573;
  --contact-line: #e4ddd1;
  --contact-gold: var(--home-gold, #d4a843);
  --contact-navy: var(--home-navy, #08111f);
  font-family: var(--home-sans, "Source Sans 3", "Segoe UI", sans-serif);
  color: var(--contact-ink);
  background: var(--contact-cream);
  padding-bottom: 12px;
}

.contact-page h1,
.contact-page h2 {
  font-family: var(--home-serif, "Playfair Display", Georgia, serif);
  color: var(--contact-navy);
  font-weight: 700;
}

.contact-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.contact-hero__media,
.contact-hero__image,
.contact-hero__overlay {
  position: absolute;
  inset: 0;
}

.contact-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 42%;
}

.contact-hero__overlay {
  background: linear-gradient(90deg, rgba(8, 17, 31, 0.72) 0%, rgba(8, 17, 31, 0.38) 46%, rgba(8, 17, 31, 0.12) 100%);
}

.contact-hero > .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.contact-hero__copy {
  max-width: 640px;
  padding: 56px 0 56px 44px;
  text-align: left;
  background: none;
  color: #fff;
}

.contact-hero__kicker {
  display: block;
  margin-bottom: 16px;
  color: var(--contact-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.contact-hero__copy h1 {
  color: #fff;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  margin: 0 0 18px;
  line-height: 1.12;
}

.contact-hero__copy p {
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  line-height: 1.7;
}

.contact-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 36px;
}

.contact-hero__meta-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #fff;
  text-decoration: none !important;
}

a.contact-hero__meta-item:hover {
  color: #fff;
}

.contact-hero__meta-item strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.contact-hero__meta-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--contact-gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--contact-gold);
  background: transparent;
}

.contact-book {
  padding: 36px 0 28px;
  scroll-margin-top: 110px;
}

.contact-book__card {
  background: var(--contact-card);
  border: 1px solid var(--contact-line);
  border-radius: 24px;
  padding: 40px 44px 44px;
  box-shadow: 0 10px 30px rgba(8, 17, 31, 0.04);
}

.contact-book__card h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 40px);
}

.contact-book__intro {
  margin: 0 0 28px;
  max-width: 720px;
  color: var(--contact-muted);
  font-size: 16px;
  line-height: 1.6;
}

.contact-form .alert {
  margin-bottom: 18px;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px 48px;
  align-items: start;
}

.contact-form__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form__col--aside {
  min-height: 100%;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--contact-ink);
}

.contact-field label span {
  color: #c0392b;
}

.contact-field--grow {
  flex: 1 1 auto;
}

.contact-page .form-control {
  border: 1px solid #d9d3c7;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  box-shadow: none;
  min-height: 48px;
  color: var(--contact-ink);
}

.contact-page select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2308111f' stroke-width='1.5' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.contact-page .form-control:focus {
  border-color: var(--contact-gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.18);
  background: #fff;
}

.contact-page textarea.form-control {
  min-height: 180px;
  height: 100%;
  resize: vertical;
}

.contact-phone {
  display: flex;
  align-items: stretch;
}

.contact-phone__prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #d9d3c7;
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: #f7f4ee;
  color: var(--contact-muted);
  font-weight: 700;
  font-size: 14px;
}

.contact-phone .form-control {
  border-radius: 0 10px 10px 0;
}

.contact-icon-input {
  position: relative;
}

.contact-icon-input .form-control {
  padding-right: 42px;
}

.contact-icon-input i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--contact-muted);
  pointer-events: none;
}

.contact-multiselect {
  position: relative;
}

.contact-multiselect__toggle {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #d9d3c7;
  border-radius: 10px;
  background: #fff;
  color: var(--contact-ink);
  text-align: left;
}

.contact-multiselect.is-open .contact-multiselect__toggle {
  border-color: var(--contact-gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.18);
}

.contact-multiselect__placeholder {
  color: #8a93a0;
}

.contact-multiselect__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-multiselect__panel {
  position: absolute;
  z-index: 8;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--contact-line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(8, 17, 31, 0.12);
  overflow: hidden;
}

.contact-multiselect__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--contact-line);
  color: var(--contact-muted);
}

.contact-multiselect__search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
}

.contact-multiselect__list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 280px;
  overflow: auto;
}

.contact-multiselect__option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}

.contact-multiselect__option:hover {
  background: #f7f4ee;
}

.contact-multiselect__option input {
  margin-top: 6px;
  accent-color: var(--contact-navy);
}

.contact-multiselect__icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 67, 0.14);
  color: var(--contact-gold);
}

.contact-multiselect__option strong {
  display: block;
  font-size: 14px;
  color: var(--contact-navy);
}

.contact-multiselect__option small {
  display: block;
  color: var(--contact-muted);
  font-size: 12px;
  line-height: 1.4;
}

.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--contact-muted);
  cursor: pointer;
}

.contact-consent input {
  margin-top: 3px;
  accent-color: var(--contact-navy);
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--contact-navy);
  color: #fff !important;
  font-weight: 700;
  transition: background 0.2s ease;
}

.contact-submit:hover,
.contact-submit:focus {
  background: var(--home-navy-light, #132744);
  color: #fff !important;
}

.contact-safe {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 16px 14px;
  background: #f4f1ea;
  border-radius: 12px;
}

.contact-safe__icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--contact-navy);
}

.contact-safe strong {
  display: block;
  margin-bottom: 4px;
  color: var(--contact-navy);
  font-size: 14px;
}

.contact-safe p {
  margin: 0;
  color: var(--contact-muted);
  font-size: 13px;
  line-height: 1.45;
}

.contact-other {
  padding: 8px 0 56px;
}

.contact-other__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px 32px;
  background: #efebe3;
  border-radius: 18px;
}

.contact-other__icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--contact-navy);
  color: #fff;
  font-size: 20px;
}

.contact-other__copy {
  flex: 1 1 auto;
}

.contact-other__copy h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.contact-other__copy p {
  margin: 0;
  color: var(--contact-muted);
  font-size: 15px;
  line-height: 1.55;
}

.contact-other__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--contact-gold);
  border-radius: 8px;
  color: #b8862a !important;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}

.contact-other__btn:hover {
  background: rgba(212, 168, 67, 0.12);
}

.contact-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: 991.98px) {
  .contact-hero {
    min-height: 480px;
  }

  .contact-hero__copy {
    padding: 40px 0 36px 18px;
  }

  .contact-book__card {
    padding: 28px 18px 32px;
  }

  .contact-form__grid,
  .contact-form__row,
  .contact-other__inner {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }

  .contact-other__btn {
    align-self: flex-start;
  }
}
