/* DASA/JEE predictor page — aligns with OziTutors marketing UI */
:root {
    --navy: #1A2144;
    --teal: #2AA2A1;
    --yellow: #FFD166;
    --gray: #E4E4EA;
}
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', -apple-system, sans-serif;
    background: linear-gradient(135deg, #1A2144 0%, #1A2144 70%, rgba(42, 162, 161, 0.2) 100%);
    min-height: 100vh;
    color: var(--navy);
}

.header {
    background: #1A2144;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-brand-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    row-gap: 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.header-home-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.header-home-link:hover {
    color: var(--yellow);
}

.header-breadcrumb-sep {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
}

.header-page-title {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.logo {
    height: 48px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    background: #fff;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid #e5e9f2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-left: auto;
}

.btn {
    padding: 0.65rem 1.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
}

.btn-whatsapp { background: #25D366; color: white; }
.btn-whatsapp:hover { background: #1fb855; color: white; }
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: rgba(255, 209, 102, 0.92); color: var(--navy); }
.btn-secondary { background: var(--teal); color: white; }
.btn-secondary:hover { background: #248f8e; color: white; }
.btn-ghost-light {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}
.btn-ghost-light:hover { background: #e5e7eb; color: #1A2144; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.hero {
    text-align: center;
    margin-bottom: 2rem;
}

.badge {
    display: inline-block;
    padding: 0.45rem 1rem;
    background: rgba(42, 162, 161, 0.25);
    color: #7fd9d8;
    border-radius: 999px;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.15;
    font-weight: 700;
}

.hero p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.5;
}

.carousel-section {
    margin-bottom: 2rem;
}
/* Carousel moved below counselling CTA — add breathing room above */
.cta-section + .carousel-section {
    margin-top: 2rem;
}

#carousel {
    max-width: 100%;
    margin: 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.carousel-brand-badge {
    position: absolute;
    top: 42px;
    right: 14px;
    width: 110px;
    height: auto;
    z-index: 25;
    opacity: 0.95;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e9f2;
    border-radius: 10px;
    padding: 4px 6px;
    pointer-events: none;
}

.ozi-slide {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.ozi-slide.out { opacity: 0; transform: translateX(-2%); }
.ozi-slide.outr { opacity: 0; transform: translateX(2%); }

@keyframes pin {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}
.pin { animation: pin 2s ease-in-out infinite; }

.card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label, .form-grid > label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
}

.required, .form-grid > label span { color: var(--yellow); }

.form-control,
.form-grid input,
.form-grid select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
    font-family: inherit;
    width: 100%;
}

.form-grid input:focus,
.form-grid select:focus,
.form-control:focus {
    outline: none;
    border-color: var(--teal);
}

.form-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.5rem;
}

.advanced-toggle {
    color: var(--teal);
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    margin: 0.5rem 0 1rem;
    font-weight: 600;
    font-family: inherit;
}

.advanced-toggle:hover { color: var(--navy); }

.advanced-filters {
    display: none;
    padding: 1.25rem;
    background: #F9FAFB;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #eef0f6;
}

.advanced-filters.show {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.alert {
    padding: 1rem 1.25rem;
    background: #fff3f2;
    border: 1px solid #ffd1cc;
    color: #9b2318;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.section-block { margin-bottom: 2rem; }

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.results-header h2 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: white;
    font-weight: 700;
}

.results-header p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    max-width: 560px;
}

.result-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.3s;
}

.result-card:hover { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18); }

.result-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .result-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.result-header { display: flex; gap: 1rem; }

.result-icon {
    width: 48px;
    height: 48px;
    background: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.result-icon svg { width: 24px; height: 24px; fill: var(--yellow); }

.result-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--navy);
    font-weight: 700;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.meta-item { display: flex; align-items: center; gap: 0.35rem; color: #6B7280; }
.meta-item svg { width: 14px; height: 14px; flex-shrink: 0; }

.quota-badge {
    padding: 0.2rem 0.65rem;
    background: #DBEAFE;
    color: #1E40AF;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.result-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.88rem;
}

.stat-label { color: #6B7280; }
.stat-value { color: var(--navy); font-weight: 600; }

.result-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .result-footer { align-items: flex-end; text-align: right; }
}

.probability-badge {
    padding: 0.45rem 0.9rem;
    border: 2px solid;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.probability-high, .probability-safe { background: #D1FAE5; color: #065F46; border-color: #6EE7B7; }
.probability-medium, .probability-moderate { background: #FEF3C7; color: #92400E; border-color: #FCD34D; }
.probability-dream { background: #e8f1ff; color: #1d58a7; border-color: #93c5fd; }
.probability-low { background: #f4f4f5; color: #555; border-color: #d1d5db; }
.probability-ambitious { background: #e8f1ff; color: #1d58a7; border-color: #93c5fd; }

.result-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }

.download-card .section-title h2 { color: var(--navy); font-size: 1.35rem; margin-bottom: 0.35rem; }
.download-card .section-title p { color: #6B7280; font-size: 0.9rem; }

.section-title { margin-bottom: 1rem; }

.session-chip {
    display: inline-flex;
    margin-left: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ecfbf5;
    color: #0e8a6a;
    font-size: 11px;
    font-weight: 700;
}

.cta-section {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.cta-section h2 { font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--navy); font-weight: 700; }

.cta-section > p {
    font-size: 1rem;
    color: #6B7280;
    margin-bottom: 1.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    max-width: 560px;
    margin: 0 auto 1.5rem;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    color: #6B7280;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.contact-item:hover { color: var(--teal); }
.contact-item svg { width: 18px; height: 18px; }

.empty-state {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.site-footer {
    margin-top: 2rem;
    padding: 2rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.footer-disclaimer {
    margin: 0 auto 1.25rem;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-powered {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 10px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 999px;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.footer-brand-link:hover .footer-brand-name {
    text-decoration: underline;
}

.footer-logo {
    height: 32px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.footer-brand-name { font-weight: 800; color: var(--navy); }

/* Modal */
.hidden { display: none !important; }
.modal-overlay.hidden { display: none !important; }
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}
.modal-card {
    width: min(720px, 100%);
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e9f2;
    box-shadow: 0 18px 45px rgba(26, 33, 68, 0.2);
    padding: 24px;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
    align-items: start;
}
/* Full-width rows so the 2-column grid is not thrown off by alerts / CAPTCHA */
.modal-form #download-modal-feedback,
.modal-form #download-recaptcha-wrap {
    grid-column: 1 / -1;
}
.modal-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    font-size: 13px;
    color: #303b52;
}
.modal-form .modal-label-text {
    display: block;
    font-weight: 700;
    line-height: 1.35;
    color: #303b52;
}
.modal-form .modal-label-text .required {
    color: #dc2626;
    font-weight: 700;
    margin-left: 2px;
}
.modal-form .download-phone-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 0;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}
.modal-form .download-phone-row select {
    flex: 0 1 9rem;
    min-width: 0;
    max-width: 10rem;
}
.modal-form .download-phone-row input[type="tel"] {
    flex: 1;
    min-width: 0;
}
.modal-form input,
.modal-form select {
    margin-top: 0;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 2px solid var(--gray);
    border-radius: 0.5rem;
    font-family: inherit;
}
.modal-form .download-phone-row select,
.modal-form .download-phone-row input[type="tel"] {
    margin-top: 0;
}
.modal-form .form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

@media (max-width: 640px) {
    .btn-whatsapp span.hide-mobile { display: none; }
    .modal-form { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
}

/* Download modal validation + CAPTCHA feedback */
.download-modal-feedback {
    display: none;
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 600;
}
.download-modal-feedback--show { display: block; }
.modal-form .download-field-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.2);
}
#download-recaptcha-wrap {
    overflow-x: auto;
}
#download-recaptcha-wrap.download-field-invalid {
    padding: 4px;
    border-radius: 8px;
    outline: 2px solid #dc2626;
}
