/* shared/shared.css — Calendly wrapper styles for GoDigitalVantage
 *
 * Scope: only the shell/container we own.
 * Calendly widget internals (iframe contents) cannot be styled here —
 * use URL params (background_color, text_color, primary_color,
 * hide_landing_page_details=1) to theme the widget itself.
 */

/* ── Inline widget container ─────────────────────────────────────────── */
.calendly-inline-wrap {
  width: 100%;
  min-width: 0;
  min-height: 720px;
}

.calendly-inline-host {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 720px;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.calendly-inline-host iframe {
  display: block;
  width: 100%;
  min-height: 720px;
  border: 0;
}

.calendly-inline-host[data-calendly-loading='true'] {
  position: relative;
}

.calendly-inline-host[data-calendly-loading='true']::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(248, 249, 251, 0.98) 100%
    );
}

.calendly-inline-host[data-calendly-loading='true']::after {
  content: 'Loading scheduler...';
  position: absolute;
  left: 24px;
  right: 24px;
  top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: rgba(11, 13, 18, 0.56);
}

/* ── Inline fallback (shown when script fails to load) ───────────────── */
.calendly-inline-fallback {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(200, 255, 0, 0.2);
  border-radius: 18px;
  background: rgba(200, 255, 0, 0.08);
  color: var(--text-secondary);
}

.calendly-inline-fallback p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.7;
}

.calendly-inline-fallback a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--lime);
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .calendly-inline-wrap,
  .calendly-inline-host,
  .calendly-inline-host iframe {
    min-height: 640px;
  }
}

@media (max-width: 640px) {
  .calendly-inline-wrap,
  .calendly-inline-host,
  .calendly-inline-host iframe {
    min-height: 700px;
  }

  .calendly-inline-host[data-calendly-loading='true']::after {
    left: 20px;
    right: 20px;
    top: 20px;
  }
}
