.contact-page {
  color: #0f2540;
  background: #f7f5f1;
}

.contact-hero {
  padding: 88px 0 72px;
  background: #efece6;
  border-bottom: 1px solid rgba(15, 37, 64, 0.1);
}

.contact-hero-content {
  max-width: 760px;
}

.contact-hero h1 {
  margin: 12px 0 18px;
  font-family: "Gill Sans MT", "Gill Sans", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1;
}

.contact-hero p:last-child {
  max-width: 680px;
  margin: 0;
  color: #5a6a7e;
  font-size: 1.08rem;
  line-height: 1.7;
}

.contact-section {
  padding: 80px 0 100px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.45fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
}

.contact-details {
  position: sticky;
  top: 120px;
}

.contact-details h2 {
  margin: 14px 0 18px;
  font-family: "Gill Sans MT", "Gill Sans", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
}

.contact-details > p:not(.eyebrow-label) {
  color: #5a6a7e;
  line-height: 1.7;
}

.contact-detail-list {
  display: grid;
  gap: 20px;
  margin: 38px 0;
  padding: 28px 0;
  border-top: 1px solid rgba(15, 37, 64, 0.14);
  border-bottom: 1px solid rgba(15, 37, 64, 0.14);
}

.contact-detail-list div {
  display: grid;
  gap: 6px;
}

.contact-detail-list span {
  color: #8a6c43;
  font-family: "Gill Sans MT", "Gill Sans", "Trebuchet MS", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-detail-list strong,
.contact-detail-list a {
  color: #0f2540;
  font-size: 0.98rem;
  text-decoration: none;
}

.contact-detail-list a:hover,
.contact-detail-list a:focus-visible {
  color: #a9824f;
}

.contact-note {
  padding: 22px;
  background: #0f2540;
  color: #fff;
}

.contact-note strong {
  display: block;
  margin-bottom: 8px;
}

.contact-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.6;
}

.form-panel {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 37, 64, 0.11);
  box-shadow: 0 24px 70px rgba(15, 37, 64, 0.09);
}

.form-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(15, 37, 64, 0.12);
}

.form-tab {
  min-height: 62px;
  padding: 16px 22px;
  border: 0;
  background: #f1eee8;
  color: #5a6a7e;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.form-tab + .form-tab {
  border-left: 1px solid rgba(15, 37, 64, 0.12);
}

.form-tab.active {
  background: #fff;
  color: #0f2540;
  box-shadow: inset 0 -3px 0 #c9a44c;
}

.form-tab:focus-visible {
  outline: 3px solid rgba(201, 164, 76, 0.35);
  outline-offset: -3px;
}

.form-tab-panel {
  padding: clamp(28px, 5vw, 54px);
}

.form-heading {
  margin-bottom: 34px;
}

.form-heading h2 {
  margin: 0 0 10px;
  font-family: "Gill Sans MT", "Gill Sans", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.form-heading p {
  margin: 0;
  color: #5a6a7e;
  line-height: 1.65;
}

.advisor-form {
  display: grid;
  gap: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-grid.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-field {
  display: grid;
  gap: 9px;
}

.form-field label {
  color: #0f2540;
  font-size: 0.88rem;
  font-weight: 700;
}

.form-field label span {
  color: #7d8997;
  font-size: 0.76rem;
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid #cfd5dc;
  border-radius: 0;
  background: #fff;
  color: #0f2540;
  font: inherit;
  font-size: 0.95rem;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #a9824f;
  outline: 3px solid rgba(169, 130, 79, 0.15);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #8b96a2;
}

.consent-field {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: #5a6a7e;
  font-size: 0.85rem;
  line-height: 1.5;
}

.consent-field input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: #0f2540;
}

.form-submit {
  width: fit-content;
  min-width: 190px;
  justify-content: center;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  display: none;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.55;
}

.form-status.success {
  display: block;
  color: #155f36;
  background: #edf8f1;
  border-color: #9ccdaf;
}

.form-status.error {
  display: block;
  color: #8d2020;
  background: #fff0f0;
  border-color: #dda4a4;
}

.form-status:focus {
  outline: 3px solid rgba(169, 130, 79, 0.2);
  outline-offset: 2px;
}

.timezone-note {
  margin: -10px 0 0;
  color: #6c7785;
  font-size: 0.82rem;
}

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

@media (max-width: 940px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-details {
    position: static;
  }
}

@media (max-width: 700px) {
  .contact-hero {
    padding: 64px 0 54px;
  }

  .contact-section {
    padding: 48px 0 72px;
  }

  .form-grid,
  .form-grid.three-columns {
    grid-template-columns: 1fr;
  }

  .form-tab {
    padding: 14px 12px;
    font-size: 0.8rem;
  }

  .form-submit {
    width: 100%;
  }
}


/* Modern Gill Sans form typography */
.contact-page,
.contact-page button,
.contact-page input,
.contact-page select,
.contact-page textarea{
  font-family:"Gill Sans MT","Gill Sans","Trebuchet MS",Arial,sans-serif;
}
.contact-page h1,
.contact-page h2,
.contact-page h3{
  font-family:"Gill Sans MT","Gill Sans","Trebuchet MS",Arial,sans-serif;
  font-weight:600;
  letter-spacing:-.025em;
}
