/* =========================================================
   CDS Contact page redesign
   Place in: themes/child_classic/assets/css/contact.css
   ========================================================= */
body#contact #wrapper {
  background:
    radial-gradient(circle at top left, rgba(58, 105, 181, 0.08), transparent 30%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 28%, #ffffff 100%);
}

body#contact .breadcrumb {
  margin-bottom: 16px;
}

.cds-contact-content-wrapper {
  width: 100%;
}

.cds-contact-page {
  padding: 0 0 34px;
}

.cds-contact-hero {
  max-width: 920px;
  margin-bottom: 24px;
}

.cds-contact-eyebrow {
  margin: 0 0 6px;
  color: var(--cds-blue);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cds-contact-hero h1 {
  margin: 0 0 10px;
  color: #10223f;
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.cds-contact-lead {
  max-width: 850px;
  margin: 0;
  color: #4d5870;
  font-size: 16px;
  line-height: 1.65;
}

.cds-contact-lead strong {
  color: var(--cds-blue-dark);
  font-weight: 800;
}

.cds-contact-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.cds-contact-quick-card,
.cds-contact-main-panel,
.cds-contact-help-card,
.cds-contact-map-card,
.cds-contact-faq-item,
.cds-contact-company-card {
  background: #fff;
  border: 1px solid rgba(13, 73, 173, 0.11);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 48, 100, 0.04);
}

.cds-contact-quick-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 120px;
  padding: 20px;
}

.cds-contact-icon {
  display: inline-flex;
  flex: 0 0 54px;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: var(--cds-blue);
  background: linear-gradient(180deg, #f3f7ff 0%, #e9f1ff 100%);
  border: 1px solid rgba(58, 105, 181, 0.15);
  border-radius: 50%;
}

.cds-contact-icon .material-icons {
  font-size: 28px;
}

.cds-contact-quick-card h2 {
  margin: 0 0 7px;
  color: #172844;
  font-size: 17px;
  line-height: 1.25;
}

.cds-contact-quick-card p {
  margin: 0;
  color: #172844;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.cds-contact-quick-card p a {
  color: #172844;
}

.cds-contact-quick-card small {
  display: block;
  margin-top: 3px;
  color: #6b7384;
  font-size: 13px;
  line-height: 1.35;
}

.cds-contact-main-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.8fr);
  overflow: hidden;
  margin-bottom: 30px;
}

.cds-contact-form-column {
  padding: 28px;
  border-right: 1px solid rgba(13, 73, 173, 0.1);
}

.cds-contact-form {
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.cds-contact-form-inner {
  margin: 0;
}

.cds-contact-form-header {
  margin-bottom: 20px;
}

.cds-contact-form-header h2,
.cds-contact-company-card h2,
.cds-contact-section-heading h2,
.cds-contact-help > h2 {
  margin: 0;
  color: #172844;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.cds-contact-form-header p,
.cds-contact-section-heading p {
  margin: 7px 0 0;
  color: #6b7384;
  font-size: 14px;
  line-height: 1.55;
}

.cds-contact-form-fields {
  display: grid;
  gap: 16px;
}

.cds-contact-form-group {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin: 0;
}

.cds-contact-form-group label {
  margin: 0;
  color: #172844;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.cds-contact-form .form-control,
.cds-contact-form select,
.cds-contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  color: #172844;
  background: #fff;
  border-color: #dce5f2;
  border-radius: 9px;
  font-size: 15px;
}

.cds-contact-form textarea.form-control {
  min-height: 124px;
  resize: vertical;
}

.cds-contact-form .form-control:focus,
.cds-contact-form select:focus,
.cds-contact-form textarea:focus {
  border-color: rgba(58, 105, 181, 0.72);
  box-shadow: 0 0 0 3px rgba(58, 105, 181, 0.12);
}

.cds-contact-gdpr,
.cds-contact-turnstile {
  align-items: start;
}

.cds-contact-gdpr > div,
.cds-contact-turnstile > div {
  grid-column: 2;
}

.cds-contact-form-footer {
  margin-top: 20px;
  padding-top: 0;
  text-align: left;
}

.cds-contact-submit {
  width: 100%;
  min-height: 46px;
  font-size: 15px;
  box-shadow: 0 5px 12px rgba(58, 105, 181, 0.25);
}

.cds-contact-submit .material-icons {
  font-size: 20px;
}

.cds-contact-safe-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 12px 0 0;
  color: #7e8798;
  font-size: 12px;
  line-height: 1.4;
}

.cds-contact-safe-note .material-icons {
  font-size: 16px;
}

.cds-contact-gdpr .psgdpr_consent_message a {
  font-weight: 800;
}

.has-contact-lightbox-open {
  overflow: hidden;
}

.cds-contact-lightbox[hidden] {
  display: none !important;
}

.cds-contact-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cds-contact-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 44, 0.72);
}

.cds-contact-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1080px, 100%);
  height: min(84vh, 860px);
  background: #fff;
  border: 1px solid rgba(13, 73, 173, 0.16);
  border-radius: 14px;
  overflow: hidden;
}

.cds-contact-lightbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(13, 73, 173, 0.1);
}

.cds-contact-lightbox__header strong {
  color: #172844;
  font-size: 16px;
  line-height: 1.35;
}

.cds-contact-lightbox__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #55637d;
  background: #f4f7fb;
  border: 1px solid rgba(13, 73, 173, 0.1);
  border-radius: 10px;
}

.cds-contact-lightbox__close .material-icons {
  font-size: 22px;
}

.cds-contact-lightbox__frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.cds-contact-notification {
  margin: 0 0 18px;
  border-radius: 10px;
}

.cds-contact-notification ul {
  margin: 0;
  padding-left: 18px;
}

.cds-contact-company-card {
  padding: 28px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.cds-contact-company-section {
  margin-top: 22px;
}

.cds-contact-company-section-border {
  padding-top: 20px;
  border-top: 1px solid rgba(13, 73, 173, 0.1);
}

.cds-contact-company-section h3 {
  margin: 0 0 10px;
  color: #172844;
  font-size: 16px;
  line-height: 1.35;
}

.cds-contact-company-section p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 9px;
  color: #4d5870;
  font-size: 14px;
  line-height: 1.55;
}

.cds-contact-company-section p:last-child {
  margin-bottom: 0;
}

.cds-contact-company-section .material-icons {
  flex: 0 0 18px;
  width: 18px;
  color: var(--cds-blue);
  font-size: 18px;
  line-height: 1.45;
}

.cds-contact-program p {
  display: block;
}

.cds-contact-help {
  margin-bottom: 30px;
  text-align: center;
}

.cds-contact-help > h2 {
  margin-bottom: 18px;
}

.cds-contact-help-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cds-contact-help-card {
  padding: 24px 20px;
  text-align: center;
}

.cds-contact-help-card > .material-icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  color: var(--cds-blue);
  font-size: 32px;
  background: #f0f5ff;
  border-radius: 14px;
}

.cds-contact-help-card h3 {
  margin: 0 0 8px;
  color: #172844;
  font-size: 16px;
  line-height: 1.35;
}

.cds-contact-help-card p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.55;
}

.cds-contact-map-section,
.cds-contact-faq {
  margin-bottom: 30px;
}

.cds-contact-section-heading {
  margin-bottom: 15px;
  text-align: center;
}

.cds-contact-map-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 360px;
  color: #172844;
  border-radius: 14px;
}

.cds-contact-map-card:hover,
.cds-contact-map-card:focus {
  color: #172844;
  transform: translateY(-1px);
}

.cds-contact-map-card img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.cds-contact-map-card:hover img,
.cds-contact-map-card:focus img {
  transform: scale(1.015);
}

.cds-contact-map-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 23, 48, 0.24), transparent 48%, rgba(255,255,255,0.05));
  pointer-events: none;
}

.cds-contact-map-info {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  display: grid;
  gap: 6px;
  min-width: 250px;
  max-width: 320px;
  padding: 18px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(13, 73, 173, 0.12);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(15, 48, 100, 0.12);
}

.cds-contact-map-info strong {
  color: #172844;
  font-size: 17px;
  line-height: 1.25;
}

.cds-contact-map-info span {
  color: #5d6577;
  font-size: 14px;
  line-height: 1.45;
}

.cds-contact-map-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: var(--cds-blue) !important;
  font-weight: 800;
}

.cds-contact-map-action .material-icons {
  font-size: 18px;
}

.cds-contact-faq-list {
  display: grid;
  gap: 10px;
  max-width: 1000px;
  margin: 0 auto;
}

.cds-contact-faq-item {
  overflow: hidden;
  text-align: left;
}

.cds-contact-faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 17px 52px 17px 20px;
  color: #172844;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.cds-contact-faq-item summary::-webkit-details-marker {
  display: none;
}

.cds-contact-faq-item summary::after {
  content: "expand_more";
  position: absolute;
  top: 50%;
  right: 18px;
  color: var(--cds-blue);
  font-family: "Material Icons";
  font-size: 24px;
  font-weight: normal;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.cds-contact-faq-item[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.cds-contact-faq-item > div {
  padding: 0 20px 18px;
}

.cds-contact-faq-item p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 1199px) {
  .cds-contact-quick-grid,
  .cds-contact-help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cds-contact-main-panel {
    grid-template-columns: 1fr;
  }

  .cds-contact-form-column {
    border-right: 0;
    border-bottom: 1px solid rgba(13, 73, 173, 0.1);
  }
}

@media (max-width: 767px) {
  body#contact .container {
    width: min(100% - 20px, 1440px);
  }

  .cds-contact-page {
    padding-bottom: 22px;
  }

  .cds-contact-hero {
    margin-bottom: 18px;
  }

  .cds-contact-hero h1 {
    font-size: 31px;
  }

  .cds-contact-lead {
    font-size: 15px;
  }

  .cds-contact-quick-grid,
  .cds-contact-help-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cds-contact-quick-card {
    min-height: auto;
    padding: 16px;
  }

  .cds-contact-main-panel {
    margin-bottom: 24px;
    border-radius: 12px;
  }

  .cds-contact-form-column,
  .cds-contact-company-card {
    padding: 18px;
  }

  .cds-contact-form-group {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .cds-contact-gdpr > div,
  .cds-contact-turnstile > div {
    grid-column: auto;
  }

  .cds-contact-form-header h2,
  .cds-contact-company-card h2,
  .cds-contact-section-heading h2,
  .cds-contact-help > h2 {
    font-size: 22px;
  }

  .cds-contact-map-card {
    min-height: 340px;
  }

  .cds-contact-map-card img {
    height: 340px;
  }

  .cds-contact-map-card::after {
    background: linear-gradient(180deg, rgba(6,23,48,0.16), transparent 42%, rgba(6,23,48,0.12));
  }

  .cds-contact-map-info {
    top: 14px;
    right: 14px;
    left: 14px;
    min-width: 0;
    max-width: none;
    padding: 14px;
  }

  .cds-contact-faq-item summary {
    min-height: 52px;
    padding: 15px 48px 15px 16px;
  }

  .cds-contact-faq-item > div {
    padding: 0 16px 16px;
  }

  .cf-turnstile {
    max-width: 100%;
    overflow-x: auto;
  }

  .cds-contact-lightbox {
    padding: 14px;
  }

  .cds-contact-lightbox__dialog {
    width: 100%;
    height: min(88vh, 100%);
    border-radius: 12px;
  }

  .cds-contact-lightbox__header {
    min-height: 56px;
    padding: 0 14px 0 16px;
  }

  .cds-contact-lightbox__header strong {
    font-size: 14px;
  }
}
/* Contact FAQ - desktop refinement */
.cds-contact-faq {
  max-width: 1080px;
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: 0.36fr 0.64fr;
  gap: 32px;
  align-items: start;
}

.cds-contact-faq .cds-contact-section-heading {
  text-align: left;
  margin-bottom: 0;
}

.cds-contact-faq .cds-contact-section-heading h2 {
  margin-bottom: 10px;
}

.cds-contact-faq .cds-contact-section-heading p {
  max-width: 320px;
}

.cds-contact-faq-list {
  width: 100%;
  min-width: 0;
}

.cds-contact-faq-item {
  width: 100%;
}

/* Mobile */
@media (max-width: 767px) {
  .cds-contact-faq {
    max-width: none;
    margin-top: 40px;
    display: block;
  }

  .cds-contact-faq .cds-contact-section-heading {
    text-align: center;
    margin-bottom: 20px;
  }

  .cds-contact-faq .cds-contact-section-heading p {
    max-width: none;
  }
}
/* Contact map - mobile refinement */
@media (max-width: 767px) {
  .cds-contact-map-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }

  .cds-contact-map-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center center;
  }

  .cds-contact-map-card::after {
    display: none;
  }

  .cds-contact-map-info {
    position: static;
    display: grid;
    gap: 5px;
    min-width: 0;
    max-width: none;
    padding: 14px 16px 16px;
    background: #fff;
    border: 0;
    border-top: 1px solid rgba(13, 73, 173, 0.1);
    border-radius: 0;
    box-shadow: none;
  }

  .cds-contact-map-info strong {
    font-size: 16px;
  }

  .cds-contact-map-info span {
    font-size: 13px;
  }

  .cds-contact-map-action {
    margin-top: 6px;
  }
}
