@charset "UTF-8";

/**
 * FIORICET GENERIC - Main Stylesheet
 * Project: Telemedicine Referral Platform
 * Updated: May 2026 - Full Responsive & Navigation Fix
 */

/* --- 1. GLOBAL VARIABLES & BASE --- */
:root {
    --brand-navy: #001e32;
    --brand-blue: #004a7c;
    --brand-green: #2ecc71;
    --electric-glow: #00ff88;
    --white: #ffffff;
    --soft-blue: #f0f7ff;
    --warning-red: #e74c3c;
    --text-dark: #333333;
    --text-light: #777777;
    --border-light: #d0e1f0;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden; /* Critical for mobile stability */
}

/* --- 2. HEADER & NAVIGATION --- */
header {
    background: var(--brand-navy);
    border-bottom: 4px solid var(--brand-green);
    padding: 10px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.phone-link {
    color: var(--electric-glow);
    font-weight: 800;
    text-decoration: none;
    font-size: 1.0rem;
    letter-spacing: 1px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
    text-decoration: none;
}

.logo span { color: var(--brand-green); }

.nav-links a {
    color: var(--white);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--brand-green); }

/* --- 3. MOBILE NAVIGATION DRAWER & TOGGLE --- */
.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: 0.3s;
}

.nav-overlay {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden */
    width: 80%;
    height: 100%;
    background: var(--brand-navy);
    display: flex;
    flex-direction: column;
    padding: 100px 10%;
    transition: 0.4s ease-in-out;
    z-index: 999;
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
}

.nav-overlay.active { right: 0; }

.nav-overlay a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Target the phone link specifically inside the mobile overlay */
.nav-overlay .phone-link {
    font-size: 0.7rem !important; /* Added !important to force override */
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    display: block !important; 
}

/* --- 4. HERO SECTIONS --- */
.hero {
    width: 100%;
    min-height: 500px;
    background-color: var(--brand-navy);
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/images/hero.webp'); 
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding: 60px 5%;
}

.hero h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.1; }

/* --- 5. GRID SYSTEM & PRODUCT CARDS --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.price-text {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--brand-navy);
    margin: 20px 0;
}

/* --- 6. PHYSICIAN COMMITMENT (THE FIX) --- */
.physician-wrap {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.physician-img {
    flex: 0 0 400px;
    height: 500px;
    background-color: var(--soft-blue);
    background-image: url('/images/about-physician.jpeg');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    box-shadow: 20px 20px 0px var(--soft-blue);
    display: block; /* Added to ensure visibility for empty div */
}

.physician-text { flex: 1; }

/* --- 7. SECTION UTILITIES --- */
.section-white { padding: 80px 5%; background: var(--white); }
.section-navy { padding: 80px 5%; background: var(--brand-navy); color: var(--white); }

.btn-pill {
    display: inline-block;
    background: var(--brand-green);
    color: var(--brand-navy);
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-pill:hover { transform: translateY(-3px); background: var(--electric-glow); }

.icon-box { text-align: center; }
.icon-large { font-size: 3rem; margin-bottom: 20px; }

/* --- 8. FOOTER --- */
footer { background: #000c14; color: var(--white); padding: 80px 5% 40px; }
.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- 9. MOBILE RESPONSIVE (THE TOTAL FIX) --- */
@media (max-width: 992px) {
    .physician-wrap { flex-direction: column; text-align: center; gap: 40px; }
    .physician-img { flex: 0 0 350px; width: 100%; max-width: 450px; height: 350px; }
}

@media (max-width: 768px) {
    /* Navigation Fix */
    .nav-links { display: none; }
    .menu-toggle { display: flex; }
    
    .top-row { flex-direction: column; gap: 10px; text-align: center; }
    
    /* Layout Fixes */
    .hero h1 { font-size: 2.2rem; }
    .hero { min-height: 400px; }
    
    .grid-3 { grid-template-columns: 1fr; }
    
    .section-white, .section-navy { padding: 50px 20px; }
    
    /* Image scaling fix */
    .physician-img {
        height: 300px;
        box-shadow: 10px 10px 0px var(--soft-blue);
    }
}

/* --- 10. FAQ PAGE STYLES --- */
.hero-faq {
    height: 350px !important;
    background-image: linear-gradient(rgba(0,30,50,0.85), rgba(0,30,50,0.85)), url('/images/FAQs.webp') !important;
}

.faq-section {
    padding: 80px 5%;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-container {
    margin-top: 40px;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    padding: 25px;
    background: var(--soft-blue);
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--brand-navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #e1efff;
}

.faq-question::after {
    content: '+';
    color: var(--brand-green);
    font-size: 1.5rem;
    font-weight: 900;
}

.faq-item.active {
    border-color: var(--brand-green);
    box-shadow: 0 10px 20px rgba(0,74,124,0.05);
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--white);
}

.faq-answer-inner {
    padding: 30px;
    border-top: 1px solid var(--border-light);
    font-size: 1.05rem;
    color: var(--text-dark);
}

.faq-answer-inner p { margin-bottom: 15px; }
.faq-answer-inner p:last-child { margin-bottom: 0; }

/* Responsive FAQ */
@media (max-width: 768px) {
    .hero-faq { height: 250px !important; }
    .hero-faq h1 { font-size: 2.2rem; }
    .faq-question { padding: 20px; font-size: 1rem; }
}

/* --- 11. ORDER PAGE SPECIFIC STYLES --- */

/* Order Hero Adjustment */
.order-hero {
    background: var(--brand-navy);
    color: var(--white);
    padding: 60px 5% 100px;
    text-align: center;
}

.main-content {
    max-width: 900px;
    margin: -60px auto 80px;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

/* Process Steps Summary */
.process-summary {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-around;
    text-align: center;
    border-bottom: 3px solid var(--soft-blue);
}

.mini-step { flex: 1; padding: 0 10px; }
.mini-step strong { color: var(--brand-blue); display: block; font-size: 0.9rem; margin-bottom: 5px; }
.mini-step p { font-size: 0.8rem; margin: 0; color: var(--text-light); }

/* Product Rows & Pricing */
.product-list {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.product-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid var(--border-light);
}

.product-row:last-child { border-bottom: none; }

.product-info h2 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 1.5rem;
}

.product-info p {
    margin: 5px 0 0;
    color: var(--brand-blue);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Call to Action Button */
.order-btn {
    background: var(--brand-green);
    color: var(--brand-navy);
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.2);
}

.order-btn:hover {
    background: var(--electric-glow);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4);
}

/* Medical Information Blocks */
.medical-info {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.info-block { margin-bottom: 25px; }
.info-block h3 { color: var(--brand-blue); font-size: 1.1rem; margin-bottom: 8px; display: flex; align-items: center; }
.info-block p { margin: 0; color: #555; font-size: 0.95rem; }

.warning-box {
    background: #fff8f8;
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid var(--warning-red);
    margin-bottom: 25px;
}

/* --- 12. ORDER PAGE RESPONSIVE --- */
@media (max-width: 768px) {
    .process-summary { flex-direction: column; gap: 20px; }
    .product-row { flex-direction: column; text-align: center; gap: 20px; }
    .product-list { padding: 25px 15px; }
    .medical-info { padding: 25px 20px; }
}

/* --- 13. CONSULTATION PROCESS PAGE STYLES --- */

.process-hero {
    background: var(--brand-navy);
    color: var(--white);
    padding: 80px 5%;
    text-align: center;
}

.process-container {
    max-width: 800px;
    margin: -50px auto 80px;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    z-index: 5;
}

.step-card {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.step-number {
    background: var(--brand-green);
    color: var(--brand-navy);
    font-weight: 900;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3);
}

.step-content h3 {
    margin: 0 0 10px 0;
    color: var(--brand-navy);
    font-size: 1.4rem;
}

.step-content p {
    margin: 0;
    color: #555;
}

.cta-section {
    text-align: center;
    padding: 40px 0;
    border-top: 2px solid var(--soft-blue);
    margin-top: 20px;
}

/* Footer & Legal Badge Enhancements */
.secure-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--brand-green);
}

/* --- 14. CONSULTATION PAGE RESPONSIVE --- */
@media (max-width: 768px) {
    .step-card { 
        flex-direction: column; 
        text-align: center; 
        align-items: center; 
        gap: 15px;
    }
    .process-container { 
        margin: 20px; 
        padding: 30px 20px; 
    }
    .process-hero h1 {
        font-size: 2rem;
    }
}

/* --- 15. CONTACT PAGE STYLES --- */

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-card {
    background: var(--soft-blue);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
}

.contact-info-card h2 {
    color: var(--brand-navy);
    margin-top: 0;
    border-bottom: 3px solid var(--brand-green);
    display: inline-block;
    margin-bottom: 25px;
}

.info-item {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-icon {
    font-size: 24px;
    background: var(--brand-navy);
    color: var(--white);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.info-text strong {
    display: block;
    color: var(--brand-blue);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.info-text p, .info-text a {
    font-size: 1.2rem;
    margin: 5px 0 0;
    font-weight: 700;
    color: var(--brand-navy);
    text-decoration: none;
}

/* Contact Form Specifics */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, 
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(0, 74, 124, 0.1);
}

/* --- 16. CONTACT PAGE RESPONSIVE --- */
@media (max-width: 768px) {
    .contact-container {
        padding: 40px 20px;
        grid-template-columns: 1fr;
    }
    
    .contact-info-card {
        padding: 30px 20px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    .info-text p, .info-text a {
        font-size: 1rem;
    }
}

/* --- 17. LEGAL & TERMS PAGE STYLES --- */

.legal-header {
    background: var(--brand-navy);
    color: var(--white);
    padding: 60px 5%;
    text-align: center;
}

.legal-header h1 {
    margin: 0;
    font-size: 2.5rem;
    letter-spacing: -1px;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px 100px;
    color: #444;
}

.last-updated {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 40px;
    font-style: italic;
}

.disclosure-box {
    background: #fffbef; /* Light warning yellow */
    border: 1px solid #ffeeba;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 50px;
    line-height: 1.6;
}

.legal-container h2 {
    color: var(--brand-navy);
    font-size: 1.6rem;
    margin: 40px 0 20px;
    border-bottom: 2px solid var(--soft-blue);
    padding-bottom: 10px;
}

.legal-container p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* --- 18. LEGAL PAGE RESPONSIVE --- */
@media (max-width: 768px) {
    .legal-header {
        padding: 40px 20px;
    }
    
    .legal-header h1 {
        font-size: 1.8rem;
    }
    
    .legal-container {
        padding-top: 40px;
    }
    
    .disclosure-box {
        padding: 20px;
        font-size: 0.95rem;
    }
}

/* --- 19. THANK YOU / SUCCESS PAGE STYLES --- */

.thank-you-body {
    background: var(--soft-blue); /* Matches your brand's light blue */
}

.thank-you-wrapper {
    display: flex;
    justify-content: center; /* Horizontal Center */
    align-items: center;     /* Vertical Center */
    min-height: 75vh;        /* Height relative to the screen */
    padding: 60px 20px;
}

.card {
    background: var(--white);
    max-width: 550px;
    width: 100%;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 74, 124, 0.1);
    border: 1px solid var(--border-light);
}

.success-icon {
    font-size: 64px;
    color: var(--brand-green);
    margin-bottom: 25px;
    display: block;
}

.card h1 {
    color: var(--brand-navy);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.card p {
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.btn-return {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 40px;
    background: var(--brand-navy);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px; /* Pill style to match your brand */
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-return:hover {
    background: var(--brand-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- 20. THANK YOU RESPONSIVE --- */
@media (max-width: 480px) {
    .thank-you-wrapper {
        min-height: 60vh;
        padding: 40px 20px;
    }
    .card {
        padding: 40px 25px;
    }
    .card h1 {
        font-size: 1.8rem;
    }
}