/* 
 * TutorConnect Ranchi - Premium Design System
 * Based on TutorConnect reference design
 * Blue gradient CTAs, Teal accents, Clean mobile-first layout
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Primary Brand Colors */
    --primary: #0b66ff;
    --primary-dark: #0428a0;
    --secondary: #00c1c6;
    --accent: #ffc107;

    /* WhatsApp Green */
    --whatsapp-green: #25D366;
    --whatsapp-green-dark: #128C7E;

    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-soft: #f8f9fa;
    --bg-cream: #fcfcf9;
    --surface: rgba(255, 255, 255, 0.95);

    /* Text */
    --text-dark: #0f0f1a;
    --text-body: #4a5568;
    --text-muted: #718096;

    /* Shadows & Effects */
    --shadow-soft: 0 4px 15px rgba(11, 102, 255, 0.1);
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-btn: 0 10px 30px rgba(11, 102, 255, 0.3);
    --shadow-whatsapp: 0 4px 15px rgba(37, 211, 102, 0.4);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 50px;

    /* Layout */
    --max-width: 480px;
    --max-width-desktop: 600px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-cream);
    color: var(--text-body);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 80px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container {
        max-width: var(--max-width-desktop);
    }
}

/* ========================
   STICKY HEADER
   ======================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.brand-text {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
}

.header-call {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-green-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: var(--shadow-whatsapp);
    transition: transform 0.2s;
}

.header-call:active {
    transform: scale(0.92);
}

/* ========================
   MODE SWITCH - Short Labels
   ======================== */
.mode-switch-wrapper {
    padding: 12px 16px 8px;
    margin-top: 56px;
    background: var(--bg-white);
}

.mode-switch {
    display: flex;
    background: #f0f4f8;
    border-radius: var(--radius-pill);
    padding: 4px;
    position: relative;
}

.mode-option {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-pill);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 2;
    background: transparent;
}

.mode-option.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-btn);
}

/* ========================
   HERO SECTION
   ======================== */
.hero-section {
    text-align: center;
    padding: 20px 16px 24px;
    background: var(--bg-white);
}

.hero-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 0.9rem;
    color: var(--text-body);
    margin-bottom: 12px;
}

.hero-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Highlight Pills - Compact for mobile */
.highlight-pills {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(11, 102, 255, 0.1), rgba(0, 193, 198, 0.1));
    color: var(--primary);
    padding: 5px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.65rem;
    font-weight: 500;
    white-space: nowrap;
}

.pill i {
    font-size: 0.6rem;
    color: var(--secondary);
}

/* Primary CTA */
.btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 280px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-green-dark));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-whatsapp);
    transition: transform 0.2s;
}

.btn-main:active {
    transform: scale(0.98);
}

.btn-main i {
    font-size: 1.2rem;
}

/* Demo Badge with Bounce Animation */
.demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.15));
    color: #e67e00;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.demo-badge i {
    font-size: 1rem;
}

/* Bounce Animation */
.bounce {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Discount Note */
.discount-note {
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 500;
}

.discount-note i {
    margin-right: 4px;
}

/* Urdu Features */
.urdu-features {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 16px auto;
    max-width: 260px;
}

.urdu-features li {
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--text-body);
    display: flex;
    align-items: center;
    gap: 10px;
}

.urdu-features li i {
    color: var(--secondary);
    width: 18px;
    font-size: 0.9rem;
}

.urdu-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 8px 0;
}

/* Special Badge for Female Teachers */
.special-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(219, 39, 119, 0.1));
    color: #db2777;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 16px;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.btn-secondary-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 16px;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-secondary-outline:hover {
    background: var(--primary);
    color: white;
}

/* ========================
   FEATURES SECTION
   ======================== */
.features-section {
    background: linear-gradient(135deg, rgba(11, 102, 255, 0.05), rgba(0, 193, 198, 0.05));
    padding: 20px 16px;
    margin: 12px 0;
}

.features-section h3 {
    text-align: center;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--text-body);
    text-align: center;
}

.feature-item i {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 2px;
}

/* ========================
   FORM SECTION
   ======================== */
.form-section {
    padding: 16px;
}

.form-card {
    background: var(--surface);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-xl);
    padding: 20px 16px;
    box-shadow: var(--shadow-card);
}

.form-card h4 {
    text-align: center;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    background: var(--bg-white);
    color: var(--text-dark);
    appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'Poppins', sans-serif;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 102, 255, 0.1);
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234a5568' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 36px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-green-dark));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-whatsapp);
    transition: transform 0.15s ease;
    font-family: 'Poppins', sans-serif;
}

.submit-btn:active {
    transform: scale(0.98);
}

/* ========================
   TRUST GRID
   ======================== */
.trust-section {
    padding: 20px 16px;
}

.trust-section h3 {
    text-align: center;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.trust-card {
    background: var(--surface);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 14px 10px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.trust-icon {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 6px;
    display: block;
}

.trust-card strong {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.trust-card span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ========================
   HOW IT WORKS
   ======================== */
.steps-section {
    padding: 20px 16px;
    text-align: center;
}

.steps-section h3 {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.step-item {
    flex: 1;
    text-align: center;
}

.step-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-btn);
}

.step-item p {
    font-size: 0.75rem;
    color: var(--text-body);
    line-height: 1.3;
}

.promise-box {
    background: var(--surface);
    border-left: 4px solid var(--secondary);
    padding: 14px;
    margin: 16px 0;
    font-size: 0.8rem;
    color: var(--text-body);
    line-height: 1.5;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: var(--shadow-soft);
    text-align: left;
}

/* ========================
   POSTER SECTION
   ======================== */
.poster-section {
    padding: 16px;
}

.poster-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 10px;
    box-shadow: var(--shadow-card);
}

.poster-img {
    width: 100%;
    border-radius: var(--radius-md);
    display: block;
}

/* ========================
   FLOATING WHATSAPP
   ======================== */
.whatsapp-container {
    position: fixed;
    bottom: 20px;
    right: 16px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: row-reverse;
    text-decoration: none;
}

.whatsapp-float {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-green-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: var(--shadow-whatsapp);
    transition: transform 0.3s;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-label {
    background: #fff;
    color: #333;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.whatsapp-container:hover .whatsapp-label {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .whatsapp-label {
        display: block;
        opacity: 1;
        transform: translateX(0);
        animation: fadeOutLabel 4s forwards 3s;
    }
}

@keyframes fadeOutLabel {
    to {
        opacity: 0;
        transform: translateX(10px);
    }
}

/* ========================
   FOOTER
   ======================== */
footer {
    text-align: center;
    padding: 24px 16px 90px;
    color: var(--text-muted);
    font-size: 0.8rem;
    background: var(--bg-white);
    border-top: 1px solid #eee;
}

footer p {
    margin-bottom: 4px;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* ========================
   UTILITIES
   ======================== */
.hidden {
    display: none !important;
}

/* ========================
   DESKTOP CENTERING
   ======================== */
@media (min-width: 768px) {
    body {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .header {
        max-width: 650px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

    .mode-switch-wrapper,
    .hero-section,
    .features-section,
    .form-section,
    .trust-section,
    .steps-section,
    .poster-section,
    footer {
        max-width: 650px;
        width: 100%;
    }

    .form-card {
        max-width: 420px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}