/**
 * Fullscreen “coming soon” overlay (front end, non‑admins).
 * Loaded only when the feature is active.
 */

:root {
  --templateTheme-comingSoon-z: 2147483645;
}

#template-theme-coming-soon {
  display: none;
}

html.template-theme-coming-soon-html #template-theme-coming-soon {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  z-index: var(--templateTheme-comingSoon-z);
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
}

html.template-theme-coming-soon-html,
html.template-theme-coming-soon-html body.template-theme-coming-soon-active {
  height: auto;
}

html.template-theme-coming-soon-html body.template-theme-coming-soon-active {
  overflow: hidden !important;
  touch-action: none;
}

#template-theme-coming-soon * {
  box-sizing: border-box;
}

.template-theme-coming-soon__backdrop {
  position: absolute;
  inset: 0;
  background: #232323;
  pointer-events: auto;
}

.template-theme-coming-soon__scroll {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: clamp(28px, 5vw, 56px) clamp(18px, 4vw, 40px)
    calc(env(safe-area-inset-bottom, 0px) + clamp(28px, 5vw, 56px));
  padding-top: calc(env(safe-area-inset-top, 0px) + clamp(28px, 5vw, 56px));
  pointer-events: auto;
}

.template-theme-coming-soon__panel {
  margin: 0 auto;
  max-width: min(560px, 100%);
  color: #fff;
}

.template-theme-coming-soon__hero {
  text-align: center;
  margin: 0 0 clamp(20px, 3vw, 28px);
}

.template-theme-coming-soon__mark-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 clamp(16px, 2.5vw, 22px);
}

.template-theme-coming-soon__mark {
  display: block;
  width: clamp(72px, 18vw, 96px);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.12));
}

@media (prefers-reduced-motion: no-preference) {
  .template-theme-coming-soon__mark {
    animation: template-theme-coming-soon-float 5s ease-in-out infinite;
  }
}

@keyframes template-theme-coming-soon-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.template-theme-coming-soon__heading {
  margin: 0;
  margin-left: auto;
  margin-right: auto;
  margin-top: 50px;
  font-size: clamp(1.55rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
  color: #fff;
  position: relative;
  padding-bottom: clamp(18px, 3vw, 24px);
}

.template-theme-coming-soon__heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(120px, 40%);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    #dbfa9c 24%,
    #dbfa9c 76%,
    transparent
  );
  box-shadow: 0 1px 0 rgba(35, 35, 35, 0.08);
}

.template-theme-coming-soon__text {
  margin: 0 0 clamp(22px, 3vw, 32px);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  color: #fff;
}

.template-theme-coming-soon__text p {
  margin: 0 0 12px;
}

.template-theme-coming-soon__text p:last-child {
  margin-bottom: 0;
}

.template-theme-coming-soon__text a {
  color: #fff;
  text-decoration: underline;
}

.template-theme-coming-soon__text a:hover,
.template-theme-coming-soon__text a:focus-visible {
  text-decoration: none;
}

.template-theme-coming-soon__form {
  padding-top: 4px;
}

/* CF7 basics inside overlay (narrow form) */
.template-theme-coming-soon__form .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vw, 22px);
  width: 100%;
  margin: 0;
  color: #fff;
}

.template-theme-coming-soon__form .wpcf7-form > p {
  margin: 0;
}

.template-theme-coming-soon__form .wpcf7-form > p > label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 17px;
  font-weight: 400;
}

.template-theme-coming-soon__form .wpcf7-form input.wpcf7-text,
.template-theme-coming-soon__form .wpcf7-form input.wpcf7-email,
.template-theme-coming-soon__form .wpcf7-form input.wpcf7-tel,
.template-theme-coming-soon__form .wpcf7-form textarea.wpcf7-textarea,
.template-theme-coming-soon__form .wpcf7-form select.wpcf7-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(35, 35, 35, 0.25);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: #000;
}

.template-theme-coming-soon__form .wpcf7-form textarea.wpcf7-textarea {
  min-height: 120px;
  resize: vertical;
}

.template-theme-coming-soon__form .wpcf7-form .wpcf7-submit {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 12px 24px;
  border: 0;
  border-radius: 6px;
  background: #dbfa9c;
  color: #000;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  width: auto;
}

#template-theme-coming-soon,
#template-theme-coming-soon .wpcf7-spinner {
  visibility: hidden;
}

.template-theme-coming-soon__form .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 14px;
  color: #8f1f1f;
}

.template-theme-coming-soon__form .wpcf7-response-output {
  margin-top: 12px;
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .template-theme-coming-soon__mark {
    animation: none;
  }

  .template-theme-coming-soon__panel {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
  }
}
