/* s06-chapter — Exact lavadental.lv RevealBlock + .about-apply-box */
#chapter-doctor.ws-reveal-section {
  --rev-whole: 1290px;
  --rev-pad-x: clamp(1.5rem, 1.3636rem + 0.6061vw, 1.875rem);
  --rev-gutter: clamp(1rem, 0.6818rem + 1.4141vw, 1.875rem);
  position: relative;
  z-index: 6;
  background-color: #ddefde;
  color: #031c14;
}

#chapter-doctor .ws-reveal-container {
  width: min(var(--rev-whole), calc(100% - var(--rev-pad-x) * 2));
  margin-inline: auto;
}

#chapter-doctor .ws-reveal-track {
  position: relative;
}

@media screen and (min-width: 720px) {
  #chapter-doctor .ws-reveal-track {
    height: 220vh;
  }
}

#chapter-doctor .ws-reveal-sticky {
  position: relative;
}

@media screen and (min-width: 720px) {
  #chapter-doctor .ws-reveal-sticky {
    position: sticky;
    top: 0;
    min-height: 100svh;
    overflow: hidden;
  }
}

#chapter-doctor .ws-reveal-intro {
  background-color: #ddefde;
  color: #031c14;
  padding: clamp(5rem, 8vw, 9rem) 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media screen and (min-width: 720px) {
  #chapter-doctor .ws-reveal-intro {
    position: absolute;
    inset: 0;
    min-height: 100svh;
  }
}

#chapter-doctor .ws-reveal-title {
  margin: 0 auto;
  max-width: 820px;
  font-family: 'Josefin Sans', 'Jost', sans-serif;
  font-size: clamp(2.4414rem, 1.894rem + 2.4327vw, 3.9467rem);
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
}

#chapter-doctor .ws-reveal-title--bg {
  color: #779e91;
}

#chapter-doctor .ws-reveal-dark {
  position: relative;
  background-color: #031c14;
  color: #ddefde;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  will-change: clip-path;
}

#chapter-doctor .ws-reveal-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

#chapter-doctor .ws-contour-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#chapter-doctor .ws-reveal-main-wrap {
  position: relative;
  z-index: 2;
  padding: clamp(5.5rem, 8vw, 9rem) 0;
  min-height: 90svh;
  display: grid;
  align-items: center;
}

@media screen and (min-width: 720px) {
  #chapter-doctor .ws-reveal-main-wrap {
    min-height: 100svh;
  }
}

#chapter-doctor .ws-apply-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 var(--rev-gutter);
}

#chapter-doctor .ws-apply-box {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 var(--rev-gutter);
  background-color: #ddefde;
  color: #031c14;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.35);
}

@media screen and (min-width: 480px) {
  #chapter-doctor .ws-apply-box {
    grid-column: 3 / span 8;
  }
}

@media screen and (min-width: 640px) {
  #chapter-doctor .ws-apply-box {
    grid-template-columns: subgrid;
  }

  #chapter-doctor .ws-apply-aside {
    grid-column: 1 / span 3;
  }

  #chapter-doctor .ws-apply-body {
    grid-column: 4 / span 5;
  }
}

#chapter-doctor .ws-apply-preview {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 290px;
  background: #031c14;
}

#chapter-doctor .ws-apply-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

#chapter-doctor .ws-apply-play-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(3, 28, 20, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#chapter-doctor .ws-apply-play-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ddefde;
  color: #031c14;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.45s cubic-bezier(0.1, 0.75, 0.25, 1);
}

#chapter-doctor .ws-apply-play-btn:hover .ws-apply-play-circle {
  transform: scale(1.1);
}

#chapter-doctor .ws-apply-body {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

@media screen and (min-width: 640px) {
  #chapter-doctor .ws-apply-body {
    padding-left: 0;
  }
}

#chapter-doctor .ws-apply-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #355447;
}

#chapter-doctor .ws-apply-heading {
  margin: 0;
  font-family: 'Josefin Sans', 'Jost', sans-serif;
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.85rem);
  font-weight: 500;
  line-height: 1.2;
  color: #031c14;
}

#chapter-doctor .ws-apply-sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(3, 28, 20, 0.82);
}

#chapter-doctor .ws-apply-actions {
  margin-top: auto;
  padding-top: 8px;
}

#chapter-doctor .ws-apply-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 40px;
  background-color: #031c14;
  color: #ddefde;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.45s cubic-bezier(0.1, 0.75, 0.25, 1);
}

#chapter-doctor .ws-apply-cta-btn:hover {
  transform: scale(1.02);
}

/* Native Dialog */
#chapter-doctor .ws-apply-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(460px, 92vw);
  width: 100%;
  margin: auto;
}

#chapter-doctor .ws-apply-dialog::backdrop {
  background: rgba(3, 28, 20, 0.86);
  backdrop-filter: blur(8px);
}

#chapter-doctor .ws-apply-dialog-body {
  position: relative;
  background: #031c14;
  padding: 10px;
  border-radius: 12px;
}

#chapter-doctor .ws-apply-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: #031c14;
  color: #ddefde;
  cursor: pointer;
}

#chapter-doctor .ws-apply-dialog-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 82svh;
  display: block;
  border-radius: 8px;
  background: #000;
}
