/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins', sans-serif;
}

body{
    background:#fff;
    color:#333;
}

/* HEADER */
header{
    background:#d90429;
    padding:15px 20px;
    color:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

header h2{
    font-size:20px;
}

/* CONTAINER */
.container{
    width:90%;
    max-width:1100px;
    margin:auto;
}

/* HERO */
/* HERO SECTION IMPROVED */
.hero{
    position: relative;
    background: url('CBT-TEST.jpeg') no-repeat center center/cover;
    color:#fff;
    text-align:center;
    padding:100px 20px;
}

/* DARK OVERLAY */
.hero::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.65); /* darkness for readability */
    z-index:1;
}

/* CONTENT ABOVE OVERLAY */
.hero .container{
    position:relative;
    z-index:2;
    max-width:800px;
}

/* TEXT STYLING */
.hero h1{
    font-size:36px;
    margin-bottom:15px;
    line-height:1.3;
}

.hero p{
    font-size:16px;
    margin-bottom:25px;
    line-height:1.6;
}

/* BUTTON */
.hero .btn{
    display:inline-block;
    padding:12px 25px;
    background:#d90429;
    color:#fff;
    border-radius:5px;
    text-decoration:none;
    font-weight:500;
}

.hero .btn:hover{
    background:#a6031f;
}

/* MOBILE OPTIMIZATION */
@media(max-width:768px){
    .hero{
        padding:80px 15px;
    }

    .hero h1{
        font-size:26px;
    }

    .hero p{
        font-size:14px;
    }
}

/* BUTTON */
/* BASE BUTTON */
.btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:14px 28px;
    background:#d90429;
    color:#fff;
    border-radius:8px;
    text-decoration:none;
    font-weight:600;
    transition:all 0.3s ease;
    box-shadow:0 6px 15px rgba(217,4,41,0.3);
}

/* HOVER EFFECT */
.btn:hover{
    transform:translateY(-3px) scale(1.03);
    box-shadow:0 10px 25px rgba(217,4,41,0.4);
    background:#a6031f;
}

.btn{
    position:relative;
    overflow:hidden;
}

.btn::after{
    content:"";
    position:absolute;
    top:0;
    left:-100%;
    width:100%;
    height:100%;
    background:linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
    transition:0.5s;
}

.btn:hover::after{
    left:100%;
}

/* CLICK EFFECT */
.btn:active{
    transform:scale(0.97);
}

/* SECTIONS */
.section{
    padding:60px 20px;
}

.section h2{
    text-align:center;
    margin-bottom:30px;
    color:#d90429;
}

/* FEATURES */
.features{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
    gap:20px;
}

.card{
    background:#fff;
    padding:20px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,0.05);
    text-align:center;
}

.card h3{
    margin-bottom:10px;
    color:#d90429;
}

/* STEPS */
.steps{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
    gap:20px;
}

.step{
    background:#fff5f7;
    padding:20px;
    border-radius:10px;
}

/* STEP HEADERS */
.step h3{
    color:#d90429;
    margin-bottom:10px;
}


/* NOTICE */
.notice{
    background:#ffe5e9;
    padding:25px;
    border-left:5px solid #d90429;
    margin-top:40px;
    border-radius:8px;
}

/* NOTICE HEADER */
.notice h3{
    color:#d90429;
    margin-bottom:10px;
}

/* CTA */ /* CTA - DIFFERENT FROM FOOTER */ /* CTA NOT FULL WIDTH */

/* CTA SECTION (WHITE BACKGROUND) */
.cta{
    padding:60px 20px;
    background:#fff; /* THIS is what removes the red */
}

.cta .container{
    background:linear-gradient(135deg, #ff4d6d, #d90429);
    color:#fff;
    text-align:center;
    padding:50px 25px;
    border-radius:12px;
}

/* BUTTON */
.cta .btn{
    background:#fff;
    color:#d90429;
    font-weight:600;
}

.cta .btn:hover{
    background:#000;
    color:#fff;
}

/* FOOTER */
footer{
    text-align:left;
    padding:20px;
    background:#111;
    color:#fff;
    font-size:14px;
}

/* ICON STYLE */
.card i{
    font-size:30px;
    color:#d90429;
    margin-bottom:15px;
}

/* CARD HOVER EFFECT */
.card{
    transition:all 0.3s ease;
}

.card:hover{
    transform:translateY(-8px);
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
}

/* FADE-IN ANIMATION */
.fade-in{
    opacity:0;
    transform:translateY(30px);
    transition:all 0.6s ease;
}

.fade-in.show{
    opacity:1;
    transform:translateY(0);
}

/* PULSE ANIMATION */
@keyframes pulseGlow{
    0%{
        box-shadow:0 0 0 0 rgba(217,4,41,0.6);
    }
    70%{
        box-shadow:0 0 0 12px rgba(217,4,41,0);
    }
    100%{
        box-shadow:0 0 0 0 rgba(217,4,41,0);
    }
}

/* APPLY TO CTA BUTTON */
.btn-pulse{
    animation:pulseGlow 2s infinite;
}


/* MODAL BACKDROP */
.modal{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
    justify-content:center;
    align-items:center;
    z-index:999;
}

/* MODAL BOX */
.modal-content{
    background:#fff;
    padding:25px;
    width:90%;
    max-width:450px;
    border-radius:12px;
    position:relative;
    animation:pop 0.3s ease;
}

/* ANIMATION */
@keyframes pop{
    from{transform:scale(0.8); opacity:0;}
    to{transform:scale(1); opacity:1;}
}

/* CLOSE BUTTON */
.close{
    position:absolute;
    top:10px;
    right:15px;
    font-size:22px;
    cursor:pointer;
}

/* FORM */
.modal-content form{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-top:15px;
}

.modal-content input,
.modal-content select{
    padding:10px;
    border:1px solid #ddd;
    border-radius:6px;
}

/* BUTTON */
.modal-content button{
    background:#d90429;
    color:#fff;
    padding:12px;
    border:none;
    border-radius:6px;
    font-weight:600;
    cursor:pointer;
}

.modal-content button:hover{
    background:#a6031f;
}


/* SUCCESS MESSAGE */
.success-box{
    display:none;
    text-align:center;
    padding:20px;
    background:#e6ffed;
    border-left:5px solid #28a745;
    border-radius:8px;
    margin-top:15px;
}

.success-box h3{
    color:#28a745;
    margin-bottom:10px;
}

/* HIDE FORM AFTER SUCCESS */
.hidden{
    display:none !important;
}