/* ============================================
   SLIMRCHAT GLP-1 GUIDE — PAGE STYLES
   Brand: ClashDisplay (headings), Inter (body)
   Primary: #004559 | Accent: #00c9a7
   CTA gradient: linear-gradient(180deg, #a1f1fd, #a8fecb)
   ============================================ */

/* ── Accessibility ────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Page-Level Reset ─────────────────────────────────── */
body.guide-page {
    background-color: #fff;
}

body.guide-page *,
body.guide-page *::before,
body.guide-page *::after {
    box-sizing: border-box;
}

#guide-content {
    overflow-x: clip;
}

body.guide-page .wrap,
body.guide-page .container,
body.guide-page .pageWrap,
body.guide-page .bigContainer,
body.guide-page .flex,
body.guide-page .main {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

/* ── Shared Container ─────────────────────────────────── */
.guide-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* ── Live Bar Override ────────────────────────────────── */
/* header-styles.css hides .header-live at ≤991px.
   On the guide page we want it visible at all sizes. */
body.guide-page .header-live {
    display: block !important;
}

/* ── Hero Section ─────────────────────────────────────── */
.guide-hero {
    background-color: #e8f4f6;
    padding: 60px 0 50px;
    text-align: center;
}

.guide-badge {
    display: inline-block;
    background: linear-gradient(180deg, #a1f1fd 0%, #a8fecb 100%);
    color: #004559;
    font-family: "Inter", sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.guide-hero h1 {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-weight: 600;
    font-size: 42px;
    line-height: 1.15;
    color: #004559;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.guide-subtitle {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: #004559;
    margin: 0 0 24px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.guide-intro {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
    color: #3a5f6b;
    margin: 0 0 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.guide-intro:last-child {
    margin-bottom: 0;
}

/* ── Contents Grid ────────────────────────────────────── */
.guide-contents {
    padding: 50px 0;
    background-color: #fff;
}

.guide-contents h2 {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-weight: 500;
    font-size: 28px;
    color: #004559;
    text-align: center;
    margin: 0 0 32px;
}

.contents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.contents-card {
    background: #f7fbfc;
    border: 1px solid #e0eef2;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contents-card:hover {
    border-color: #a1f1fd;
    box-shadow: 0 4px 16px rgba(0, 69, 89, 0.06);
}

.contents-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    background: #e8f4f6;
    border-radius: 50%;
}

.contents-icon svg {
    width: 22px;
    height: 22px;
}

.contents-card h3 {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.45;
    color: #004559;
    margin: 0;
}

/* ── Flipbook Reader ──────────────────────────────────── */
.guide-reader {
    padding: 50px 0 40px;
    background-color: #f7fbfc;
}

.guide-reader h2 {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-weight: 500;
    font-size: 28px;
    color: #004559;
    text-align: center;
    margin: 0 0 12px;
}

.reader-intro {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    color: #3a5f6b;
    text-align: center;
    margin: 0 0 32px;
}

.flipbook-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 69, 89, 0.08);
    min-height: 500px;
}

/* DearFlip overrides for brand consistency */
.flipbook-wrapper ._df_book-wrapper {
    border-radius: 12px;
}

/* ── Download Section ─────────────────────────────────── */
.guide-download {
    padding: 50px 0;
    background-color: #fff;
    text-align: center;
}

.guide-download h2 {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-weight: 500;
    font-size: 28px;
    color: #004559;
    margin: 0 0 12px;
}

.guide-download p {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    color: #3a5f6b;
    margin: 0 0 28px;
}

.guide-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, #a1f1fd 0%, #a8fecb 100%);
    color: #004559;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 16px 36px;
    border-radius: 30px;
    text-decoration: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.guide-download-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.guide-download-btn:active {
    transform: translateY(0);
}

.guide-download-btn:focus-visible {
    outline: 2px solid #004559;
    outline-offset: 3px;
}

/* ── Email Delivery Section ───────────────────────────── */
.guide-email {
    padding: 50px 0;
    background-color: #e8f4f6;
}

.guide-email-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 520px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 69, 89, 0.06);
}

.guide-email-card h2 {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-weight: 500;
    font-size: 24px;
    color: #004559;
    margin: 0 0 8px;
    text-align: center;
}

.guide-email-card > p {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.5;
    color: #3a5f6b;
    text-align: center;
    margin: 0 0 28px;
}

/* Form */
.guide-email-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field {
    position: relative;
}

.form-field input[type="email"] {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d6dfe2;
    border-radius: 10px;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #004559;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-field input[type="email"]::placeholder {
    color: #8ca3ab;
}

.form-field input[type="email"]:focus {
    border-color: #00c9a7;
}

.form-field input[type="email"][aria-invalid="true"] {
    border-color: #e74c3c;
}

.form-error {
    display: none;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #e74c3c;
    margin-top: 6px;
}

.form-error.visible {
    display: block;
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-checkbox input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 2px solid #b0c4cb;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-checkbox input[type="checkbox"]:hover {
    border-color: #004559;
}

.form-checkbox input[type="checkbox"]:checked {
    background-color: #004559;
    border-color: #004559;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.form-checkbox input[type="checkbox"]:focus-visible {
    outline: 2px solid #a1f1fd;
    outline-offset: 2px;
}

.form-checkbox label {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #3a5f6b;
    cursor: pointer;
}

/* Submit Button */
.guide-email-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    background: #004559;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.guide-email-btn:hover {
    background: #005a73;
}

.guide-email-btn:focus-visible {
    outline: 2px solid #a1f1fd;
    outline-offset: 2px;
}

.guide-email-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.guide-email-btn .btn-loading {
    display: none;
}

.guide-email-btn.is-loading .btn-text {
    display: none;
}

.guide-email-btn.is-loading .btn-loading {
    display: flex;
}

/* Disclaimer */
.form-disclaimer {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.5;
    color: #8ca3ab;
    text-align: center;
    margin: 0;
}

.form-disclaimer a {
    color: #004559;
    text-decoration: underline;
}

.form-disclaimer a:hover {
    color: #00c9a7;
}

/* Success State */
.form-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: #f0faf7;
    border-radius: 10px;
    margin-top: 16px;
}

.form-success[hidden] {
    display: none;
}

.form-success p {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #004559;
    margin: 0;
}

/* ── Newsletter Section ───────────────────────────────── */
.guide-newsletter {
    padding: 50px 0;
    background-color: #004559;
    text-align: center;
}

.guide-newsletter h2 {
    font-family: "ClashDisplay-Variable", sans-serif;
    font-weight: 400;
    font-size: 22px;
    color: #fff;
    margin: 0 0 8px;
}

.guide-newsletter > .guide-container > p {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 24px;
}

.newsletter-form-wrap {
    max-width: 380px;
    margin: 0 auto;
}

.newsletter-inline-form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 30px;
    padding: 3px;
}

.newsletter-inline-form input[type="email"] {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: #555;
    outline: none;
    padding: 8px 15px;
}

.newsletter-inline-form input[type="email"]::placeholder {
    color: #999;
}

.newsletter-inline-form button {
    background: linear-gradient(180deg, #a1f1fd 0%, #a8fecb 100%);
    border: none;
    border-radius: 25px;
    padding: 10px 22px;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #004559;
    cursor: pointer;
    transition: opacity 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.newsletter-inline-form button:hover {
    opacity: 0.85;
}

/* ── Disclaimer Section ───────────────────────────────── */
.guide-disclaimer {
    padding: 30px 0;
    background: #f7fbfc;
    text-align: center;
}

.guide-disclaimer p {
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
    color: #6b8a94;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* ============================================
   RESPONSIVE BREAKPOINTS
   Matched to existing SlimrChat header-styles.css
   ============================================ */

/* Desktop (max-width: 1399px) */
@media (max-width: 1399px) {
    .guide-container {
        max-width: 720px;
    }
}

/* Tablet Landscape (max-width: 1199px) */
@media (max-width: 1199px) {
    .guide-container {
        padding: 0 30px;
    }
}

/* Tablet Portrait (max-width: 991px) */
@media (max-width: 991px) {
    .guide-hero {
        padding: 45px 0 40px;
    }

    .guide-hero h1 {
        font-size: 34px;
    }

    .guide-subtitle {
        font-size: 17px;
    }

    .contents-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .guide-email-card {
        padding: 32px 28px;
    }

    .flipbook-wrapper {
        min-height: 400px;
    }
}

/* Mobile Landscape (max-width: 767px) */
@media (max-width: 767px) {
    .guide-container {
        padding: 0 20px;
    }

    .guide-hero {
        padding: 36px 0 32px;
    }

    .guide-hero h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .guide-subtitle {
        font-size: 16px;
    }

    .guide-intro {
        font-size: 15px;
    }

    .contents-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contents-card {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 18px 20px;
        gap: 14px;
    }

    .contents-icon {
        margin: 0;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .contents-card h3 {
        font-size: 14px;
    }

    .guide-contents,
    .guide-reader,
    .guide-download,
    .guide-email,
    .guide-newsletter {
        padding: 36px 0;
    }

    .guide-contents h2,
    .guide-reader h2,
    .guide-download h2 {
        font-size: 24px;
    }

    .guide-email-card h2 {
        font-size: 21px;
    }

    .flipbook-wrapper {
        min-height: 350px;
        border-radius: 8px;
    }

    .guide-download-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 28px;
        box-sizing: border-box;
    }

    .guide-email-card {
        padding: 28px 22px;
        border-radius: 12px;
    }
}

/* Mobile Portrait (max-width: 575px) */
@media (max-width: 575px) {
    .guide-container {
        padding: 0 15px;
    }

    .guide-hero {
        padding: 28px 0 24px;
    }

    .guide-hero h1 {
        font-size: 24px;
    }

    .guide-badge {
        font-size: 10px;
        padding: 5px 14px;
    }

    .guide-subtitle {
        font-size: 15px;
    }

    .guide-intro {
        font-size: 14px;
    }

    .guide-contents h2,
    .guide-reader h2,
    .guide-download h2 {
        font-size: 22px;
    }

    .guide-email-card {
        padding: 24px 18px;
    }

    .guide-email-card h2 {
        font-size: 20px;
    }

    .flipbook-wrapper {
        min-height: 300px;
    }

    .guide-newsletter h2 {
        font-size: 20px;
    }
}

/* ── Reduced Motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .guide-download-btn,
    .contents-card,
    .guide-email-btn {
        transition: none;
    }
}
