/* Estecenter theme override. Loaded AFTER the base CSS so these
   :root tokens win. Regenerated in OKLCH from the brand anchors;
   edit anchors and re-run tools/_gen_theme.php to retheme. */
:root {
  /* primary — teal (was blue) */
  --color-1: #075f86;
  --color-2: #096a95;
  --color-3: #0a75a4;
  --color-4: #0c81b3;
  --color-5: #0e8cc3;
  --color-6: #1098d3;
  --color-7: #3ba5d7;
  --color-8: #57b2dc;
  --color-9: #70bee0;
  --color-10: #89cae5;
  --color-11: #a1d6ea;
  --color-12: #b8e2ef;
  --color-13: #d0edf5;
  --color-14: #e8f8fc;
  /* primary opacity variants (base #1098d3) */
  --color-05-opacity: #1098d30d;
  --color-10-opacity: #1098d31a;
  --color-20-opacity: #1098d333;
  --color-30-opacity: #1098d34d;
  --color-40-opacity: #1098d366;
  --color-50-opacity: #1098d380;
  --color-60-opacity: #1098d399;
  --color-70-opacity: #1098d3b3;
  --color-80-opacity: #1098d3cc;
  --color-90-opacity: #1098d3e6;
  /* accent — taupe/gold (was green) */
  --alt-color-1: #1a160a;
  --alt-color-2: #282110;
  --alt-color-3: #362e18;
  --alt-color-4: #453b1f;
  --alt-color-5: #544827;
  --alt-color-6: #64562f;
  --alt-color-7: #756437;
  --alt-color-8: #9d884f;
  --alt-color-9: #a69360;
  --alt-color-10: #ae9d71;
  --alt-color-11: #b7a881;
  --alt-color-12: #c0b391;
  --alt-color-13: #c9bea2;
  --alt-color-14: #d2c9b3;
  --alt-color-15: #dbd4c3;
  --alt-color-16: #e4e0d4;
  --alt-color-17: #edebe5;
  /* accent opacity variants (base #756437) */
  --alt-color-05-opacity: #7564370d;
  --alt-color-10-opacity: #7564371a;
  --alt-color-20-opacity: #75643733;
  --alt-color-30-opacity: #7564374d;
  --alt-color-40-opacity: #75643766;
  --alt-color-50-opacity: #75643780;
  --alt-color-60-opacity: #75643799;
  --alt-color-70-opacity: #756437b3;
  --alt-color-80-opacity: #756437cc;
  --alt-color-90-opacity: #756437e6;
  --white: white;
  --blue-20-transparent\<deleted\|variable-5543d3c4\>: #a3c6dc33;
}

/* ---------- CTA-1 compact appointment form ---------- */
.cta-1:has(.cta-1-content.is-form) {
  min-height: auto;
  padding: 8em;
  justify-content: center;
}

.cta-1-content.is-form {
  grid-row-gap: 1.1em;
  width: 100%;
  max-width: 46em;
  padding: 2em 2.2em 1.8em;
  cursor: default;
  color: #075f86;
  background-color: rgba(255, 255, 255, .28);
  border-color: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.cta-1-content.is-form:hover {
  transform: none;
  box-shadow: 35px 35px 70px -30px #2d271966;
}

.cta-1-form-intro {
  display: flex;
  flex-direction: column;
  gap: .4em;
  width: 100%;
}

.cta-1-content.is-form .heading.is-cta-1-title {
  font-size: 3.3em;
  line-height: 1.15em;
  margin: 0;
  color: #024275;
}

.cta-1-form-text {
  margin: 0;
  max-width: 28em;
  font-size: 1.4em;
  line-height: 1.5em;
  opacity: 1;
  color: #075f86;
}

.cta-1-form-block {
  width: 100%;
  margin: 0;
}

.cta-1-form {
  display: flex;
  flex-direction: column;
  gap: .75em;
  width: 100%;
}

.cta-1-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85em;
  width: 100%;
}

/* First name / surname sit side by side; they collapse on very small screens. */
.cta-1-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85em;
}

/* Phone row: a compact country-code box on the left, number filling the rest.
   It stays side by side on every screen size. */
.cta-1-form-row.is-phone {
  grid-template-columns: auto 1fr;
  align-items: stretch;
}

.cta-1-form-row.is-phone .form-field {
  min-width: 0;
}

/* Tighten the country-code box so it takes as little width as possible. */
.cta-1-form-grid .form-field.is-country-code {
  padding-left: 1.5em;
  padding-right: 1.5em;
}

.cta-1-form-grid .form-field.is-country-code select.text-field {
  padding-right: 1.5em;
}

@media screen and (max-width: 479px) {
  .cta-1-form-row:not(.is-phone) {
    grid-template-columns: 1fr;
  }
}

/* Contact form phone row spans the full width, then splits into code + number. */
.contact-phone-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-column-gap: 1.5em;
  align-items: stretch;
}

.contact-phone-row .form-field {
  min-width: 0;
}

.contact-phone-row .form-field.is-country-code {
  padding-left: 1.5em;
  padding-right: 1.5em;
}

.cta-1-form-grid .form-field {
  padding: 1.4em 1.5em 1em;
  min-height: 0;
  border-radius: 8px;
  border-color: rgba(255, 255, 255, .55);
  background-color: rgba(255, 255, 255, .38);
}

.cta-1-form-grid .form-field:hover {
  border-color: #075f86;
  background-color: rgba(255, 255, 255, .55);
}

.cta-1-form-grid .field-label {
  top: .7em;
  font-size: 1.4em;
  color: #075f86;
}

.cta-1-form-grid .field-label-required {
  bottom: auto;
  top: .75em;
  right: 1.2em;
  font-size: 1.3em;
  opacity: 1;
  color: #075f86;
}

.cta-1-form-grid .text-field {
  height: auto;
  min-height: 2.6em;
  margin: 0;
  padding: 1.15em 4.2em .15em 0;
  font-size: 1.8em;
  line-height: 1.3em;
  color: #024275;
  background-color: transparent;
  border-radius: 0;
  border-bottom-color: rgba(7, 95, 134, .35);
}

.cta-1-form-grid .text-field.is-typing {
  border-bottom-color: #075f86;
}

.cta-1-form-grid .text-field::placeholder {
  color: #075f86;
  opacity: .55;
}

.cta-1-form-grid select.text-field {
  appearance: none;
  cursor: pointer;
  padding-right: 2.2em;
  color: #024275;
  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='%23075f86' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .2em center;
  background-size: .7em;
}

.cta-1-form-grid select.text-field option {
  color: #024275;
  background-color: #fff;
}

.cta-1-form-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .9em;
  align-items: center;
  width: 100%;
}

.cta-1-form-footer .checkbox-field {
  margin: 0;
  padding-left: 1.5em;
  align-items: flex-start;
}

.cta-1-form-footer .checkbox {
  width: 1.55em;
  height: 1.55em;
  margin: .1em .85em 0 -1.5em;
  border-width: 2px;
}

.cta-1-form-footer .checkbox.w--redirected-checked {
  background-size: 1.1em;
}

.cta-1-form-footer .checkbox-label {
  font-size: 1.4em;
  line-height: 1.4em;
  margin: 0;
  color: #9D884F;
}

.cta-1-form-footer .checkbox-field-link {
  color: #9D884F;
}

.cta-1-submit {
  z-index: 10;
  border: 1px solid #9D884F;
  background-color: #9D884F;
  color: #fff;
  border-radius: 8px;
  padding: .9em 1.5em;
  font-size: 1.6em;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
  cursor: pointer;
}

.cta-1-submit:hover {
  background-color: #756437;
  border-color: #756437;
  color: #fff;
}

.cta-1-form-status {
  margin-top: .35em;
  padding: .9em 1.1em !important;
  border-radius: 8px;
  overflow: visible;
}

.cta-1-form-status.success-message {
  position: relative;
  inset: auto;
  z-index: 1;
  background-color: var(--alt-color-6);
  color: var(--alt-color-13);
}

.cta-1-form-status.error-message {
  font-size: 1em;
  text-align: left;
}

.cta-1-form-status .success-message-text,
.cta-1-form-status .error-message-text {
  font-size: 1.4em;
  line-height: 1.4em;
}

@media screen and (max-width: 991px) {
  .cta-1:has(.cta-1-content.is-form) {
    padding: 6em 4em;
  }

  .cta-1-content.is-form {
    max-width: 40em;
    padding: 1.8em;
  }

  .cta-1-content.is-form .heading.is-cta-1-title {
    font-size: 2.4em;
  }
}

@media screen and (max-width: 767px) {
  .cta-1:has(.cta-1-content.is-form) {
    padding: 4em 1.5em;
  }

  .cta-1-content.is-form {
    max-width: none;
    padding: 1.4em;
  }

  .cta-1-form-footer {
    grid-template-columns: 1fr;
  }

  .cta-1-submit {
    width: 100%;
  }
}

/* Contact page interactive 360 street view — matches site card style */
.contact-360-view {
  position: relative;
  width: 100%;
  border: 1px solid var(--alt-color-40-opacity);
  border-radius: 5px;
  background-color: #fff;
  overflow: hidden;
}

.contact-360-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-column-gap: 1em;
  grid-row-gap: .5em;
  padding: 1.2em 1.5em;
  border-bottom: 1px solid var(--alt-color-40-opacity);
  background-color: var(--alt-color-10-opacity);
}

.contact-360-bar-title {
  display: flex;
  align-items: center;
  grid-column-gap: .6em;
  color: var(--alt-color-3);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .95em;
}

.contact-360-bar-icon {
  width: 1.3em;
  height: 1.3em;
}

.contact-360-bar-hint {
  display: flex;
  align-items: center;
  grid-column-gap: .5em;
  color: var(--alt-color-7);
  font-size: .85em;
}

.contact-360-dot {
  width: .5em;
  height: .5em;
  border-radius: 50%;
  background-color: var(--alt-color-8);
}

/* Collapsed (facade) height on desktop; expands to 16:9 when opened */
.contact-360-frame {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 26%;
  background-color: var(--alt-color-16);
  overflow: hidden;
  transition: padding-top .55s cubic-bezier(.4, 0, .2, 1);
}

.contact-360-view.is-active .contact-360-frame {
  padding-top: 56.25%;
}

.contact-360-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Click-to-load cover */
.contact-360-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  grid-row-gap: 1em;
}

.contact-360-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.contact-360-facade:hover .contact-360-cover {
  transform: scale(1.04);
}

.contact-360-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 95, 134, .25) 0%, rgba(26, 22, 10, .55) 100%);
}

.contact-360-play {
  position: relative;
  z-index: 1;
  width: 4.4em;
  height: 4.4em;
  border-radius: 50%;
  background-color: var(--color-6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
  transition: transform .2s ease, background-color .2s ease;
}

.contact-360-play svg {
  width: 1.8em;
  height: 1.8em;
  margin-left: .15em;
}

.contact-360-facade:hover .contact-360-play,
.contact-360-facade:focus-visible .contact-360-play {
  transform: scale(1.08);
  background-color: var(--color-4);
}

.contact-360-cta {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .9em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}

@media screen and (max-width: 767px) {
  /* Collapsed cover stays compact (4:3); expand taller once opened */
  .contact-360-frame {
    padding-top: 75%;
  }

  .contact-360-view.is-active .contact-360-frame {
    padding-top: 120%;
  }

  .contact-360-bar {
    padding: 1em 1.2em;
  }

  .contact-360-bar-title {
    font-size: .85em;
  }

  .contact-360-bar-hint {
    display: none;
  }
}

/* Header "360 Clinic Tour" secondary CTA */
.nav-cta-button.is-tour {
  grid-column-gap: .6em;
  background-color: transparent;
  border-color: var(--alt-color-11);
  color: var(--alt-color-14);
}

.nav-cta-button.is-tour:hover {
  background-color: var(--alt-color-20-opacity);
  border-color: var(--alt-color-11);
  color: var(--white);
}

.nav-cta-tour-icon {
  width: 1.2em;
  height: 1.2em;
  filter: brightness(0) invert(1);
}

/* --- Header responsiveness ----------------------------------------------
   Progressive collapse as the viewport narrows:
   1) >1200px  : both buttons full (icon + text)
   2) <=1200px : "360 Clinic Tour" drops its label and becomes an icon button
   3) <=991px  : burger menu takes over, both header CTAs go away. Both links
                 live on in the fullscreen menu (.fs-cta-link), so nothing is lost.
   ------------------------------------------------------------------------ */

@media screen and (max-width: 1200px) {
  .nav-cta-button {
    margin-left: .75em;
    padding: 1em 1.1em;
    font-size: .9em;
  }

  .nav-cta-button.is-tour {
    grid-column-gap: 0;
    padding: .9em;
  }

  .nav-cta-button.is-tour .nav-cta-tour-label {
    display: none;
  }

  .nav-cta-tour-icon {
    width: 1.5em;
    height: 1.5em;
  }

  /* The links row must be allowed to shrink, otherwise it pushes the CTAs
     past the right edge of the bar. */
  .nav-main-links,
  .nav-links {
    min-width: 0;
  }

  .fullscreen-menu-button {
    grid-column-gap: 1em;
    width: auto;
    padding-left: 1.25em;
    padding-right: 1.25em;
  }
}

@media screen and (max-width: 991px) {
  .nav-cta-button,
  .nav-cta-button.is-tour {
    display: none;
  }

  /* What is left (logo, language chip, contact icon, burger) still has to fit
     a phone, so trim the pieces that were sized for a desktop bar. */
  .nav-main {
    flex-wrap: nowrap;
    padding-left: 3vw;
    padding-right: 3vw;
  }

  .nav-main-links {
    min-width: 0;
  }

  .brand-with-locales {
    grid-column-gap: .75em;
    align-items: center;
    min-width: 0;
  }

  .logo-image-default {
    width: 12em;
    height: 3.4em;
  }

  .fullscreen-menu-button {
    grid-column-gap: 2vw;
    padding-left: 2.5vw;
    padding-right: 2.5vw;
  }
}

@media screen and (max-width: 479px) {
  .logo-image-default {
    width: 10em;
    height: 3em;
  }

  .lang-switch > summary {
    padding-left: .7em;
    padding-right: .7em;
  }

  .nav-search-button,
  .dropdown-toggle-icon {
    width: auto;
    padding-left: .9em;
    padding-right: .9em;
  }
}

/* Hospital hero: stack the two CTA buttons with spacing */
.hero-3-cta-button {
  grid-row-gap: .6em;
}
