/* ========== GLOBAL ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.5;
    scroll-behavior: smooth;
}

/* ========== HEADER / NAVBAR ========== */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    padding: 0.8rem 0;
    border-bottom: 1px solid #eef2f0;
}

.navbar-brand img {
    transition: transform 0.2s ease;
}

.navbar-brand img:hover {
    transform: scale(1.02);
}

.nav-link {
    font-weight: 500;
    color: #2c3e4e;
    transition: 0.2s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #166b5c;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #166b5c;
    border-radius: 2px;
}

/* Social Nav Icons */
.social-nav-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-icon {
    color: #4a627a;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-icon:hover {
    color: #166b5c;
    transform: translateY(-2px);
}

/* Language Switcher */
.language-switcher .btn-outline-secondary {
    border-color: #cbd5e1;
    color: #2c3e4e;
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 40px;
}

.language-switcher .btn-outline-secondary:hover {
    background-color: #166b5c;
    border-color: #166b5c;
    color: white;
}

.dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #eef2f0;
    padding: 0.5rem 0;
}

.dropdown-item {
    font-size: 0.85rem;
    padding: 0.5rem 1.2rem;
    transition: 0.2s;
}

.dropdown-item:hover {
    background-color: #f0fdf4;
    color: #166b5c;
}

/* Sticky Header */
.sticky-top {
    top: 0;
    z-index: 1030;
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0b3b2f 0%, #166b5c 100%);
    padding: 4rem 0 5rem 0;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.1;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    letter-spacing: 0.3px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin: 1.5rem 0 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.hero-disclaimer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border-radius: 60px;
    padding: 0.75rem 1.5rem;
    display: inline-block;
    font-size: 0.9rem;
    color: #f8fafc;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: white;
    color: #0b3b2f;
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-outline-light:hover {
    background: white;
    color: #0b3b2f;
    transform: translateY(-2px);
}

/* ========== CARDS (Why, About, Progress) ========== */
.why-card {
    background: white;
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.15);
}

.why-icon {
    font-size: 4rem;
    color: #166b5c;
}

.why-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0b3b2f;
}

.why-text {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.5;
}

/* Progress Section Inner Cards */
.progress-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
    height: 100%;
    transition: all 0.2s ease;
}

.progress-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: #166b5c;
}

/* ========== TRUST STRIP ========== */
.trust-strip {
    background: white;
    border-radius: 2rem;
    padding: 2rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    border: 1px solid #ecfdf5;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0b3b2f;
}

.stat-label {
    font-size: 0.9rem;
    color: #4b6b7f;
}

/* ========== FORM CARDS ========== */
.form-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s;
    height: 100%;
    border: 1px solid #eef2ff;
}

.form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.1);
}

.form-icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.form-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.form-card p {
    color: #5b6e8c;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.form-card form p {
    margin-bottom: 1rem;
}

.form-card input,
.form-card select,
.form-card textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 60px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    background: #fafcff;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    outline: none;
    border-color: #166b5c;
    box-shadow: 0 0 0 3px rgba(22, 107, 92, 0.1);
}

.form-card textarea {
    border-radius: 1rem;
}

.form-card button {
    margin-top: 0.5rem;
    border-radius: 60px;
    font-weight: 600;
}

/* ========== CONTACT SECTION ========== */
.contact-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2ff;
    transition: transform 0.2s ease, box-shadow 0.2s;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
}

.contact-item {
    padding: 1rem;
    transition: all 0.2s ease;
    border-radius: 1rem;
}

.contact-item:hover {
    background: #f8fafc;
    transform: translateY(-3px);
}

.contact-item i {
    font-size: 1.8rem;
    color: #166b5c;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.contact-item h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.contact-item a {
    color: #166b5c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: #0b3b2f;
    text-decoration: underline;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.why-card,
.form-card,
.trust-strip,
.contact-card {
    animation: fadeInUp 0.6s ease-out;
}

/* ========== FOOTER ========== */
.footer {
    background: #0a1c1f;
    color: #cddfe6;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-brand {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0.8;
}

.footer-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 500;
}

.footer h5 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #b0c4d0;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.2s;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* Footer Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.social-footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #cddfe6;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-footer-icon:hover {
    transform: translateY(-3px);
    color: white;
}

.social-footer-icon[aria-label="Facebook"]:hover {
    background: #1877f2;
}

.social-footer-icon[aria-label="Instagram"]:hover {
    background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-footer-icon[aria-label="YouTube"]:hover {
    background: #ff0000;
}

.social-footer-icon[aria-label="X (Twitter)"]:hover {
    background: #000000;
}

.social-footer-icon[aria-label="LinkedIn"]:hover {
    background: #0a66c2;
}

.social-footer-icon[aria-label="Email"]:hover {
    background: #166b5c;
}

.footer-address {
    font-size: 0.8rem;
    line-height: 1.4;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: 0.7rem;
    opacity: 0.7;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .social-nav-icons {
        justify-content: center;
        margin: 1rem 0;
    }

    .language-switcher {
        text-align: center;
        margin: 0.5rem 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-outline-light {
        width: 80%;
    }

    .why-title {
        font-size: 1.4rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .footer .row>div {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

/* Survey CTA Card */
.survey-cta-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 2rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border: 1px solid #eef2ff;
}

.btn-survey {
    background: #166b5c;
    color: white;
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.btn-survey:hover {
    background: #0b3b2f;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    color: white;
}

/* Progress Section Icons */
.progress-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 1rem;
    height: 100%;
    transition: all 0.2s ease;
}

.progress-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    background: white;
}

.progress-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-top: 0.2rem;
}

.progress-icon.completed {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.progress-icon.in-progress {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* Language-specific visibility */
body.lang-en .fr-only {
    display: none;
}

body.lang-fr .en-only {
    display: none;
}

body.lang-en .en-only {
    display: inline-block;
}

body.lang-fr .fr-only {
    display: inline-block;
}

body.lang-en .btn-outline-light .en-only,
body.lang-fr .btn-outline-light .fr-only {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}



.trust-strip {
    align-items: stretch;
    padding: 2rem 1rem;
}

.trust-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
}

.stat-number {
    font-size: clamp(1.6rem, 2.2vw, 2.2rem);
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

.stat-label {
    font-size: 0.95rem;
    line-height: 1.35;
    margin-top: 0.5rem;
}



/* ========== Waitlist Button ========== */
.btn-waitlist {
    background: linear-gradient(135deg, #1a5632, #2e7d32);
    color: #ffffff;
    border: 2px solid transparent;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    animation: pulse-waitlist 2s infinite;
}

.btn-waitlist:hover {
    background: linear-gradient(135deg, #1b5e20, #388e3c);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.4);
}

.btn-waitlist:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

/* Subtle pulse animation to draw attention */
@keyframes pulse-waitlist {
    0% {
        box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
    }
    50% {
        box-shadow: 0 2px 20px rgba(46, 125, 50, 0.5);
    }
    100% {
        box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
    }
}

/* Mobile responsive */
@media (max-width: 991.98px) {
    .btn-waitlist {
        margin: 0.5rem 0;
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
}




/* ========== Takaful Waitlist Page ========== */

/* Form labels with required asterisk */
.form-label.required:after {
    content: " *";
    color: #e53e3e;
    font-weight: bold;
}

/* Style Django form error messages */
.text-danger.small {
    font-size: 0.8rem;
}

/* Form card icon styling */
.form-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Why-card as form container */
.why-card .form-control,
.why-card .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.why-card .form-control:focus,
.why-card .form-select:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

/* Match the waitlist button to your brand */
.btn-primary[style*="background"] {
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.btn-primary[style*="background"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.3);
}

/* Success message styling */
#successMessage {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* ========== Admin Button ========== */
.btn-admin {
    background: linear-gradient(135deg, #1a365d, #2d4a7a);
    color: #ffffff;
    border: 2px solid transparent;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.btn-admin:hover {
    background: linear-gradient(135deg, #0f2440, #1a365d);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26, 54, 93, 0.4);
}

.btn-admin:active {
    transform: translateY(0);
}



/* ========== BLOG / INSIGHTS CARDS ========== */
.blog-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.blog-preview-card .btn-outline-primary:hover {
    background-color: #166b5c;
    color: white;
}

/* ========== VALUE ITEMS ========== */
.value-item {
    transition: all 0.2s ease;
    border-radius: 1rem;
}

.value-item:hover {
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.value-item h5 {
    color: #0b3b2f;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .blog-preview-card {
        margin-bottom: 1rem;
    }
}