/* Appointment page template */
.sfc-appointment-page {
  --sfc-appointment-blue: #173d5b;
  --sfc-appointment-red: #ff3326;
  --sfc-appointment-sky: #2096d3;
  --sfc-appointment-dark: #101e2a;
  --sfc-appointment-text: #0f2a43;
  --sfc-appointment-white: #ffffff;
  color: var(--sfc-appointment-text);
  overflow: hidden;
}

.sfc-appointment-page * { box-sizing: border-box; }

.sfc-appointment-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.sfc-appointment-bg-blue { background: var(--sfc-appointment-blue); }
.sfc-appointment-bg-sky { background: var(--sfc-appointment-sky); }
.sfc-appointment-bg-red { background: var(--sfc-appointment-red); }

.sfc-appointment-hero {
  position: relative;
  padding: clamp(46px, 7vw, 92px) 0 clamp(78px, 9vw, 130px);
  color: #fff;
}

.sfc-appointment-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: center;
}

.sfc-appointment-hero__media img {
  display: block;
  width: 100%;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
}

.sfc-appointment-hero__content {
  max-width: 640px;
}

.sfc-appointment-hero h1 {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.sfc-appointment-hero__text {
  color: rgba(255, 255, 255, .96);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 650;
}

.sfc-appointment-hero__text p,
.sfc-appointment-scheduler__intro p,
.sfc-appointment-lifestyle__intro p {
  margin: 0;
}

.sfc-appointment-hero__text p + p {
  margin-top: 22px;
}

.sfc-appointment-hero__text strong {
  color: var(--sfc-appointment-red);
  font-weight: 900;
}

.sfc-appointment-brush {
  position: absolute;
  left: -2vw;
  right: -2vw;
  bottom: -1px;
  height: 54px;
  pointer-events: none;
  z-index: 2;
  background: var(--sfc-appointment-sky);
  clip-path: polygon(0 48%, 6% 60%, 13% 49%, 21% 63%, 29% 48%, 37% 58%, 46% 45%, 55% 61%, 64% 48%, 73% 56%, 82% 46%, 90% 57%, 100% 48%, 100% 100%, 0 100%);
}

.sfc-appointment-brush--red {
  background: var(--sfc-appointment-red);
  clip-path: polygon(0 42%, 7% 52%, 15% 38%, 23% 55%, 32% 40%, 42% 51%, 51% 36%, 62% 55%, 72% 41%, 82% 51%, 91% 39%, 100% 47%, 100% 100%, 0 100%);
}

.sfc-appointment-scheduler {
  position: relative;
  padding: clamp(72px, 8vw, 110px) 0 clamp(88px, 9vw, 132px);
}

.sfc-appointment-scheduler__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sfc-appointment-scheduler__title {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.sfc-appointment-scheduler__intro {
  max-width: 720px;
  margin: 0 auto 28px;
  color: #fff;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.5;
  font-weight: 750;
}

.sfc-appointment-frame {
  width: min(820px, 100%);
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(8, 34, 56, .22);
}

.sfc-appointment-frame iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 620px;
  border: 0 !important;
  background: #fff;
}

.sfc-appointment-lifestyle {
  position: relative;
  padding: clamp(72px, 8vw, 108px) 0 0;
  color: #fff;
  text-align: center;
}

.sfc-appointment-lifestyle::after {
  content: "";
  display: block;
  height: clamp(92px, 10vw, 150px);
  background: #fff;
  margin-top: clamp(0px, 2vw, 20px);
}

.sfc-appointment-lifestyle__inner {
  position: relative;
  z-index: 2;
}

.sfc-appointment-lifestyle__logo {
  display: block;
  width: clamp(92px, 9vw, 132px);
  height: auto;
  margin: 0 auto 28px;
}

.sfc-appointment-lifestyle h2 {
  max-width: 850px;
  margin: 0 auto 24px;
  color: #fff;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.sfc-appointment-lifestyle__intro {
  max-width: 820px;
  margin: 0 auto 28px;
  color: #fff;
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.45;
  font-weight: 800;
}

.sfc-appointment-lifestyle .sfc-btn,
.sfc-appointment-lifestyle .sfc-btn--dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 15px 34px;
  border-radius: 5px;
  background: #101e2a;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: none;
}

.sfc-appointment-lifestyle__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  max-width: 1020px;
  margin: clamp(56px, 7vw, 84px) auto calc(clamp(92px, 10vw, 150px) * -1);
  align-items: stretch;
}

.sfc-appointment-lifestyle-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(300px, 28vw, 390px);
  overflow: hidden;
  border-radius: 8px;
  text-align: left;
  background-image: linear-gradient(180deg, rgba(6, 18, 29, .04) 0%, rgba(5, 15, 24, .62) 43%, rgba(5, 15, 24, .96) 100%), var(--sfc-card-bg);
  background-size: cover;
  background-position: center;
  box-shadow: 0 22px 45px rgba(0, 0, 0, .24);
}

.sfc-appointment-lifestyle-card__body {
  width: 100%;
  padding: clamp(24px, 3vw, 34px);
}

.sfc-appointment-lifestyle-card h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(23px, 2.2vw, 32px);
  line-height: 1;
}

.sfc-appointment-lifestyle-card p {
  min-height: 5.2em;
  margin: 0 0 24px;
  color: #fff;
  font-size: 16px;
  line-height: 1.28;
  font-weight: 700;
}

.sfc-appointment-lifestyle-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .32);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.sfc-appointment-lifestyle-card__link i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fff;
  color: #10233a;
  font-size: 26px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

@media (max-width: 1024px) {
  .sfc-appointment-hero__grid {
    grid-template-columns: 1fr;
  }

  .sfc-appointment-hero__content {
    max-width: none;
  }

  .sfc-appointment-lifestyle__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 860px) {
  .sfc-appointment-lifestyle__cards {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .sfc-appointment-lifestyle::after {
    height: 70px;
  }

  .sfc-appointment-lifestyle__cards {
    margin-bottom: -70px;
  }
}

@media (max-width: 640px) {
  .sfc-appointment-container {
    width: min(100% - 28px, 1180px);
  }

  .sfc-appointment-hero {
    padding-top: 36px;
  }

  .sfc-appointment-hero__grid {
    gap: 26px;
  }

  .sfc-appointment-hero h1,
  .sfc-appointment-lifestyle h2 {
    font-size: 34px;
  }

  .sfc-appointment-scheduler {
    padding-top: 58px;
  }

  .sfc-appointment-frame {
    border-radius: 8px;
  }

  .sfc-appointment-frame iframe {
    min-height: 680px;
  }
}

/* Appointment iframe visibility fix */
.sfc-appointment-scheduler .sfc-appointment-frame {
  display: block !important;
  width: min(820px, 100%) !important;
  min-height: var(--sfc-frame-height, 800px);
}

.sfc-appointment-frame__iframe {
  display: block !important;
  width: 100% !important;
  height: var(--sfc-frame-height, 800px) !important;
  min-height: 680px !important;
  border: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: #fff !important;
}

@media (max-width: 640px) {
  .sfc-appointment-scheduler .sfc-appointment-frame,
  .sfc-appointment-frame__iframe {
    min-height: 720px !important;
  }
}


/* Direct appointment iframe hardening: keep scheduler visible even with lazy-load/cache plugins. */
.sfc-appointment-page .sfc-appointment-frame {
  display: block !important;
  width: min(860px, 100%) !important;
  height: var(--sfc-frame-height, 800px) !important;
  min-height: var(--sfc-frame-height, 800px) !important;
  margin: 28px auto 0 !important;
  overflow: hidden !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 24px 60px rgba(8, 34, 56, .22) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.sfc-appointment-page .sfc-appointment-frame iframe,
.sfc-appointment-page iframe.sfc-appointment-frame__iframe {
  display: block !important;
  width: 100% !important;
  height: var(--sfc-frame-height, 800px) !important;
  min-height: var(--sfc-frame-height, 800px) !important;
  max-height: none !important;
  border: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: #fff !important;
}

@media (max-width: 640px) {
  .sfc-appointment-page .sfc-appointment-frame,
  .sfc-appointment-page .sfc-appointment-frame iframe,
  .sfc-appointment-page iframe.sfc-appointment-frame__iframe {
    height: 760px !important;
    min-height: 760px !important;
  }
}
