/* ===== QServe Main Stylesheet ===== */
:root {
    --primary: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-light: #4CAF50;
    --secondary: #795548;
    --secondary-dark: #5D4037;
    --secondary-light: #8D6E63;
    --accent: #FF9800;
    --bg: #f8f9fa;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 5px 25px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: var(--primary); }
img { max-width: 100%; height: auto; }

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}
.btn-secondary:hover {
    background: var(--secondary-dark);
    color: var(--white);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
}
.btn-accent:hover { background: #e68900; color: var(--white); }

.btn-danger { background: #dc3545; color: var(--white); }
.btn-danger:hover { background: #c82333; color: var(--white); }

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { display: block; width: 100%; }

/* ===== Navbar ===== */
.navbar {
    background: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.brand-icon {
    font-size: 26px;
    color: var(--primary);
}

.navbar-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 24px;
}

.navbar-menu a {
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}
.navbar-menu a:hover { color: var(--primary); }

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
}

/* ===== Hero Section ===== */
.hero {
    color: var(--white);
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #1B5E20;
}

.hero-slider .hero-slides {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active { opacity: 1; }

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(46,125,50,0.3), rgba(121,85,72,0.3));
    z-index: 1;
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active { background: var(--white); transform: scale(1.2); }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn-primary {
    background: var(--white);
    color: var(--primary);
    font-size: 16px;
    padding: 14px 32px;
}
.hero .btn-primary:hover {
    background: #f0f0f0;
    color: var(--primary-dark);
}

.hero .btn-outline {
    border-color: var(--white);
    color: var(--white);
    font-size: 16px;
    padding: 14px 32px;
}
.hero .btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* ===== Sections ===== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--text);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-light);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.section-alt { background: var(--white); }

/* ===== How It Works ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.step-card {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.step-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* ===== Pricing Section ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: 'Popular';
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 40px;
    font-size: 12px;
    transform: rotate(45deg);
}

.pricing-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}




.gif-card {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.gif-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.gif-card.featured::before {
    content: 'Popular';
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 40px;
    font-size: 12px;
    transform: rotate(45deg);
}

.gif-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}


/* ===== Tighten gaps: Steps → GIFs → Pricing ===== */
.steps-section.section { padding-bottom: 20px; }
.gif-section.section { padding-top: 0; padding-bottom: 20px; }
.pricing-section.section { padding-top: 20px; }

/* ===== GIF Grid (always side by side) ===== */
.gif-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* ===== Steps Mobile Slider ===== */
.steps-slider {
    overflow: visible;
}

/* -------------------------------------- */
.pricing-amount {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0;
}

.pricing-amount span { font-size: 16px; color: var(--text-light); }

.pricing-features {
    list-style: none;
    margin: 20px 0 30px;
    text-align: left;
}

.pricing-features li {
    padding: 8px 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li i { color: var(--primary); }

/* ===== Customization CTA ===== */
.customization-cta {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/banner3.png') center/cover no-repeat;
    color: var(--white);
    border-radius: 0;
    padding: 70px 20px;
    text-align: center;
    width: 100%;
    position: relative;
}

.customization-cta h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.customization-cta p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.customization-price {
    font-size: 36px;
    font-weight: 700;
    margin: 20px 0;
}

.customization-cta .btn {
    background: var(--white);
    color: var(--secondary);
    font-size: 16px;
    padding: 14px 32px;
}

/* ===== Trust Section ===== */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.trust-item h3 {
    font-size: 36px;
    color: var(--primary);
    font-weight: 700;
}

.trust-item p {
    color: var(--text-light);
    margin-top: 5px;
}

/* ===== Final CTA Section ===== */
.final-cta {
    background: linear-gradient(rgba(46,125,50,0.8), rgba(46,125,50,0.8)), url('../images/banner2.png') center/cover no-repeat;
    color: var(--white);
    padding: 80px 20px;
}

.final-cta h2 {
    color: var(--white);
}

.final-cta .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.final-cta .btn-primary:hover {
    background: #f0f0f0;
    color: var(--primary-dark);
}

/* ===== Password Input ===== */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control { padding-right: 44px; }

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: var(--transition);
}

.password-toggle:hover { color: var(--primary); }

/* Password strength indicator */
.pw-requirements {
    margin-top: 8px;
    font-size: 12px;
}

.pw-req {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    color: var(--text-muted);
    transition: var(--transition);
}

.pw-req i { font-size: 11px; width: 14px; text-align: center; }
.pw-req.valid { color: var(--primary); }
.pw-req.valid i { color: var(--primary); }
.pw-req.invalid { color: #dc3545; }

/* ===== Forms ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

select.form-control {
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 36px;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== Cards ===== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 { font-size: 18px; }
.card-body { padding: 24px; }

/* ===== Alerts ===== */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeaa7; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

.alert-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.5;
}

/* ===== Tables ===== */
.table-responsive { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

table th {
    background: var(--bg);
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

table tr:hover { background: #f5f5f5; }

/* ===== Badges ===== */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-info { background: #d1ecf1; color: #0c5460; }
.badge-primary { background: #e8f5e9; color: var(--primary); }

/* ===== Auth Pages ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
    padding: 40px 20px;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 460px;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 8px;
    color: var(--primary);
}

.auth-card .subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 14px;
}

.auth-card .brand {
    text-align: center;
    margin-bottom: 30px;
}

.auth-card .brand i { font-size: 40px; color: var(--primary); }
.auth-card .brand span { display: block; font-size: 24px; font-weight: 700; color: var(--primary); }

.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 60px 0 40px;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.page-header p {
    opacity: 0.9;
    font-size: 16px;
}

/* ===== Footer ===== */
.footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 15px;
}

.footer h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 15px;
}

.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: #ccc; transition: var(--transition); }
.footer ul a:hover { color: var(--primary-light); }

.footer p {
    margin-bottom: 8px;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.d-flex { display: flex; }
.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero h1 { font-size: 32px; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar-toggle { display: block; }
    .navbar-menu {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 0 20px;
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
    }
    .navbar-menu.active {
        padding: 20px;
    }
    .hero { padding: 60px 0 50px; }
    .hero h1 { font-size: 28px; }
    .section { padding: 50px 0; }

    /* Steps horizontal slider on mobile */
    .steps-slider {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
    }
    .steps-slider .steps-grid {
        display: flex;
        gap: 16px;
        min-width: max-content;
        grid-template-columns: unset;
    }
    .steps-slider .step-card {
        min-width: 260px;
        flex-shrink: 0;
        scroll-snap-align: start;
        background: var(--white);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow);
    }
    .steps-slider::-webkit-scrollbar { height: 4px; }
    .steps-slider::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }

    /* GIFs always side by side */
    .gif-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .features-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .pricing-card.featured { transform: none; }
}
