/* OpenSmile app-pages design system — built from the client template's tokens
   (post-5.css Elementor kit). Backs the pages the template doesn't include:
   booking wizard, results, appointments, receipts, auth, breadcrumb banner. */

:root {
    --os-primary: #052A44;   /* navy */
    --os-secondary: #23CFC9; /* teal */
    --os-blue: #2D8EE9;
    --os-accent: #FDE877;    /* yellow */
    --os-text: #5c5e5e;
    --os-heading: #052A44;
    --os-muted: #8a9099;
    --os-line: #e8ecf1;
    --os-bg: #F6F7FB;
    --os-bg-soft: #EBF5FF;
    --os-teal-soft: #E3FBFA;
    --os-radius: 14px;
    --os-shadow: 0 10px 30px rgba(5, 42, 68, 0.07);
    --os-grad: linear-gradient(90.08deg, #23CFC9 0.09%, #2D8EE9 70.28%);

    /* Drives the bespoke app pages (booking wizard, results, appointments,
       receipts, confirmation), whose --*-accent vars fall back to --primary. */
    --primary: #2D8EE9;
    --orange: #e0742f;
    --dark: #052A44;
}

/* ---- Minimal grid / utility shim for the app pages (template ships no
   Bootstrap). Deliberately small: only the classes those pages actually use. --- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.row > [class^="col"], .row > .col { padding: 0 12px; }
.col { flex: 1 0 0%; }
.text-muted { color: var(--os-muted) !important; }
.text-success { color: #0a7a49 !important; }
.mt-2 { margin-top: .5rem !important; }

/* Lightweight modal (used by the results page guest auth-gate). Shown by
   adding .is-open; no Bootstrap JS required (os-custom.js handles toggling). */
.modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(5,42,68,.55); }
.modal.is-open { display: flex; }
.modal-dialog { width: 100%; max-width: 460px; }
.modal-content { background: #fff; border-radius: var(--os-radius); box-shadow: 0 24px 60px rgba(5,42,68,.3); padding: 28px; }

/* Scope app-page helpers under .os-page so template pages are never affected.
   Font is intentionally inherited from the template kit (.elementor-kit-5),
   so app pages match the client template's actual typography exactly. */
.os-page { color: var(--os-text); background: var(--os-bg); }
.os-page h1, .os-page h2, .os-page h3, .os-page h4, .os-page h5, .os-page h6 { color: var(--os-heading); font-weight: 800; }
.os-section { padding: 64px 0; }
.os-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.os-narrow { max-width: 860px; }

/* ---- Inner-page banner (breadcrumb) — light "Privacy" hero style ---- */
.os-banner {
    background: linear-gradient(180deg, var(--os-bg-soft) 0%, #FFFFFF 100%);
    padding: 72px 0 46px;
    text-align: center;
    color: var(--os-heading);
    position: relative;
    overflow: hidden;
}
.os-banner h1 { color: var(--os-heading); font-size: clamp(28px, 4vw, 44px); margin: 0 0 10px; font-weight: 800; }
.os-banner .os-crumb { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--os-muted); }
.os-banner .os-crumb a { color: var(--os-muted); text-decoration: none; }
.os-banner .os-crumb a:hover { color: var(--os-secondary); }
.os-banner .os-crumb .sep { opacity: .5; }
.os-banner .os-crumb .current { color: var(--os-secondary); }

/* ---- Buttons ---- */
.os-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
    border: 2px solid transparent; cursor: pointer; text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.os-btn-primary { background: var(--os-grad); color: #fff; }
.os-btn-primary:hover { color: #fff; box-shadow: 0 10px 24px rgba(45,142,233,.32); transform: translateY(-1px); }
.os-btn-dark { background: var(--os-primary); color: #fff; }
.os-btn-dark:hover { color: #fff; background: #0a3f65; }
.os-btn-ghost { background: #fff; color: var(--os-primary); border-color: var(--os-line); }
.os-btn-ghost:hover { border-color: var(--os-secondary); color: var(--os-secondary); }
.os-btn-block { width: 100%; }
.os-btn[disabled], .os-btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* ---- Cards ---- */
.os-card { background: #fff; border: 1px solid var(--os-line); border-radius: var(--os-radius); box-shadow: var(--os-shadow); padding: 26px; }

/* ---- Forms ---- */
.os-field { margin-bottom: 18px; }
.os-label { display: block; font-weight: 700; color: var(--os-heading); margin-bottom: 8px; font-size: 14px; }
.os-page .os-input, .os-page .os-textarea, .os-page .os-select {
    width: 100%; padding: 13px 16px; border: 1.5px solid var(--os-line); border-radius: 12px;
    font-family: inherit; font-size: 15px; color: var(--os-heading); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.os-page .os-input:focus, .os-page .os-textarea:focus, .os-page .os-select:focus { outline: none; border-color: var(--os-secondary); box-shadow: 0 0 0 4px rgba(35,207,201,.12); }
.os-textarea { min-height: 130px; resize: vertical; }
.os-error { color: #d33; font-size: 13px; margin-top: 6px; }
.os-alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; }
.os-alert-success { background: #e9f9f1; color: #0a7a49; border: 1px solid #bfe9d3; }
.os-alert-danger { background: #fdecec; color: #b3261e; border: 1px solid #f5c6c6; }
.os-alert ul { margin: 6px 0 0; padding-left: 18px; }

/* ---- Auth pages ---- */
.os-auth { min-height: 70vh; display: flex; align-items: center; padding: 60px 0; background: #fff; }
.os-auth .os-container { width: 100%; }
.os-auth-card { max-width: 480px; margin: 0 auto; padding: 40px; }
.os-auth-head { text-align: center; margin-bottom: 26px; }
.os-auth-logo { height: 60px; width: auto; margin-bottom: 18px; }
.os-auth-head h1 { font-size: 26px; margin: 0 0 6px; }
.os-auth-head p { color: var(--os-muted); margin: 0; }
.os-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.os-auth-row label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; color: var(--os-heading); }
.os-auth-alt { text-align: center; margin: 22px 0 0; color: var(--os-muted); }
.os-link { color: var(--os-blue); font-weight: 700; text-decoration: none; }
.os-link:hover { text-decoration: underline; }

/* ---- Feature grid (how-it-works / about) ---- */
.os-grid { display: grid; gap: 24px; }
.os-grid-2 { grid-template-columns: repeat(2, 1fr); }
.os-grid-3 { grid-template-columns: repeat(3, 1fr); }
.os-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991px) { .os-grid-3, .os-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .os-grid-2, .os-grid-3, .os-grid-4 { grid-template-columns: 1fr; } }
.os-feature { background: #fff; border: 1px solid var(--os-line); border-radius: var(--os-radius); box-shadow: var(--os-shadow); padding: 30px 26px; position: relative; }
.os-feature-icon { width: 60px; height: 60px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; background: var(--os-grad); margin-bottom: 18px; }
.os-feature h3 { font-size: 19px; margin: 0 0 8px; }
.os-feature p { margin: 0; }
.os-feature-num { position: absolute; top: 22px; right: 26px; font-size: 30px; font-weight: 800; color: var(--os-line); }
.os-section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.os-section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 8px 0 12px; }
.os-section-head p { color: var(--os-muted); margin: 0; }
.os-stat { text-align: center; }
.os-stat .num { font-size: clamp(30px, 4vw, 46px); font-weight: 800; color: var(--os-secondary); }
.os-stat .lbl { color: var(--os-muted); font-weight: 600; }

/* ---- FAQ (native details, no JS) ---- */
.os-faq { max-width: 820px; margin: 0 auto; }
.os-faq details { background: #fff; border: 1px solid var(--os-line); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.os-faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--os-heading); display: flex; justify-content: space-between; align-items: center; }
.os-faq summary::-webkit-details-marker { display: none; }
.os-faq summary::after { content: "\002B"; font-size: 22px; color: var(--os-secondary); font-weight: 400; }
.os-faq details[open] summary::after { content: "\2212"; }
.os-faq .os-faq-body { padding: 0 22px 20px; color: var(--os-text); }

/* ---- Utility ---- */
.os-eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--os-secondary); margin-bottom: 10px; }
.os-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .03em; }
.os-badge-pending { background: #fff4d6; color: #a8791a; }
.os-badge-confirmed { background: #e3fbfa; color: #158b86; }
.os-badge-cancelled { background: #f1f3f6; color: #8a9099; }

/* ---- Terms / policy text content (privacy & similar text-heavy pages) ---- */
.terms-section { padding: 48px 0 64px; }
.terms-text { margin-bottom: 26px; }
.terms-text h6 { font-size: 20px; font-weight: 800; color: var(--os-heading); margin: 0 0 12px; }
.terms-text p { color: var(--os-text); line-height: 1.75; margin: 0 0 12px; font-size: 16px; }
.terms-list ul { margin: 0; padding-left: 20px; }
.terms-list li { color: var(--os-text); line-height: 1.75; margin-bottom: 8px; }
