/* ============================================
   FIX YOUR INSULIN — Shared Styles
   ============================================ */

/* --- Variables --- */
:root {
    --primary-orange: #E8943A;
    --primary-burgundy: #8B2942;
    --dark-charcoal: #2D2D2D;
    --light-cream: #FFF8E7;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
}

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Base Typography — system fonts as fallback, Google Fonts swap in via display=swap --- */
body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-charcoal);
    background-color: var(--white);
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* --- Submit button loading state --- */
.btn--loading {
    pointer-events: none;
    opacity: 0.85;
}
.btn--loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
    vertical-align: middle;
}
@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Top Bar (legal/utility pages) --- */
.top-bar {
    background-color: var(--primary-burgundy);
    padding: 14px 20px;
    text-align: center;
}

.top-bar a {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.top-bar span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 18px 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background-color: var(--primary-burgundy);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(139, 41, 66, 0.3);
}

.btn:hover {
    background-color: #6d2035;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 41, 66, 0.4);
}

/* --- Email Capture Section --- */
.email-capture {
    padding: 70px 0;
    text-align: center;
}

.email-form-container {
    max-width: 550px;
    margin: 0 auto;
}

.email-form-container h2 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 15px;
}

.email-form-container > p {
    color: var(--white);
    margin-bottom: 30px;
    font-size: 1.05rem;
    opacity: 0.9;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.email-form input[type="text"],
.email-form input[type="email"] {
    flex: 1;
    padding: 15px 18px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
}

.email-form input:focus {
    outline: 3px solid var(--primary-orange);
}

.form-disclaimer {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 8px;
    line-height: 1.5;
}

/* --- Footer --- */
footer {
    background-color: var(--dark-charcoal);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 12px;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    padding: 6px 0;
}

.footer-links a:hover {
    color: var(--primary-orange);
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 700px;
    margin: 15px auto 0;
    line-height: 1.5;
}

.copyright {
    margin-top: 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Shared Mobile --- */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }

    .btn {
        padding: 16px 30px;
        font-size: 14px;
        width: 100%;
    }

    .email-form-container h2 {
        font-size: 1.5rem;
    }
}
