:root{
    --primary:#004466;
    --primary-dark:#00334d;
    --secondary:#0b5f8a;
    --light:#f4f7fa;
    --white:#ffffff;
    --text:#1e293b;
    --border:#e5e7eb;
    --success:#10b981;
    --danger:#ef4444;
    --shadow:0 10px 35px rgba(0,0,0,0.08);
    --radius:18px;
}

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

html{
    scroll-behavior:smooth;
}

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

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
}

.container{
    max-width:900px;
    margin:auto;
    padding:15px;
}

/* ===========================
   HERO
=========================== */

.hero{
    background:linear-gradient(135deg,#004466,#005f8d);
    color:#fff;
    border-radius:25px;
    padding:30px 25px;
    text-align:center;
    margin-bottom:20px;
    box-shadow:0 15px 40px rgba(0,68,102,.25);
}

.logo-box{
    width:140px;
    margin:0 auto 20px;
}

.logo-box img{
    width:100%;
}

.hero h1{
    font-size:32px;
    line-height:1.3;
    font-weight:700;
    margin-bottom:15px;
}

.subtitle{
    font-size:18px;
    font-weight:600;
    margin-bottom:10px;
}

.description{
    max-width:700px;
    margin:auto;
    opacity:.95;
}

/* ===========================
   CARD
=========================== */

.card{
    background:#fff;
    border-radius:20px;
    padding:25px;
    margin-bottom:20px;
    box-shadow:var(--shadow);
}

.card h2{
    color:var(--primary);
    font-size:22px;
    margin-bottom:20px;
}

/* ===========================
   SERVICES
=========================== */

.services{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
}

.service-item{
    background:#f8fafc;
    border:1px solid #dbe5ef;
    padding:15px;
    border-radius:14px;
    font-size:14px;
    font-weight:500;
}

/* ===========================
   INFO BOXES
=========================== */

.info-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px;
}

.info-box{
    text-align:center;
    padding:20px;
    background:#f8fafc;
    border-radius:16px;
    border:1px solid #dbe5ef;
}

.info-box span{
    font-size:30px;
    display:block;
    margin-bottom:10px;
}

.info-box h4{
    margin-bottom:5px;
    color:var(--primary);
}

/* ===========================
   DATE SELECTOR
=========================== */

.date-selector{
    display:flex;
    gap:15px;
}

.date-btn{
    flex:1;
    border:none;
    background:#f5f7fa;
    border:2px solid #dbe5ef;
    padding:16px;
    border-radius:15px;
    cursor:pointer;
    font-size:15px;
    font-weight:600;
    transition:.3s;
}

.date-btn:hover{
    border-color:var(--primary);
}

.date-btn.active{
    background:var(--primary);
    color:#fff;
    border-color:var(--primary);
}

/* ===========================
   SLOT SECTION
=========================== */

.slot-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

#slotCount{
    background:#e6f7ed;
    color:#059669;
    padding:8px 14px;
    border-radius:50px;
    font-size:13px;
    font-weight:600;
}

.slot-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
}

.slot{
    padding:15px;
    text-align:center;
    border-radius:14px;
    border:2px solid #dbe5ef;
    cursor:pointer;
    transition:.3s;
    background:#fff;
}

.slot:hover{
    transform:translateY(-3px);
    border-color:var(--primary);
}

.slot.selected{
    background:#22c55e;
    color:#22c55e;
    border-color:#22c55e;
}

.slot.booked{
    background:#fee2e2;
    border-color:#ef4444;
    color:#991b1b;
    cursor:not-allowed;
}

.slot.available{
    background:#f0fdf4;
    border-color:#22c55e;
}

.slot-time{
    font-weight:600;
    font-size:14px;
}

.slot-status{
    margin-top:6px;
    font-size:12px;
}

/* ===========================
   FORM
=========================== */

.form-group{
    margin-bottom:18px;
}

.form-group label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
}

.form-group input,
.form-group select,
.form-group textarea{
    width:100%;
    border:1px solid #dbe5ef;
    border-radius:14px;
    padding:14px;
    font-size:15px;
    outline:none;
    transition:.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 4px rgba(0,68,102,.08);
}

textarea{
    resize:vertical;
}

/* ===========================
   BUTTON
=========================== */

.submit-btn{
    width:100%;
    border:none;
    background:linear-gradient(135deg,#004466,#006699);
    color:#fff;
    padding:16px;
    border-radius:15px;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.submit-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 25px rgba(0,68,102,.2);
}

/* ===========================
   FOOTER
=========================== */

footer{
    background:#004466;
    color:#fff;
    text-align:center;
    padding:35px 20px;
    border-radius:25px 25px 0 0;
    margin-top:30px;
}

footer img{
    width:120px;
    margin:0 auto 15px;
}

footer h3{
    margin-bottom:10px;
}

footer p{
    opacity:.9;
    margin-bottom:20px;
}

.footer-contact{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.footer-contact a{
    color:#fff;
}

.footer-copy{
    margin-top:20px;
    opacity:.7;
    font-size:13px;
}

/* ===========================
   LOADING
=========================== */

.loading{
    text-align:center;
    padding:30px;
    color:#64748b;
}

.no-slots{
    text-align:center;
    padding:25px;
    background:#fff7ed;
    border-radius:14px;
    color:#c2410c;
}

/* ===========================
   MOBILE
=========================== */

@media(max-width:768px){

    .hero{
        padding:25px 20px;
    }

    .hero h1{
        font-size:24px;
    }

    .services{
        grid-template-columns:1fr;
    }

    .info-grid{
        grid-template-columns:1fr;
    }

    .slot-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .date-selector{
        flex-direction:column;
    }

    .card{
        padding:20px;
    }
}

@media(max-width:480px){

    .container{
        padding:10px;
    }

    .hero h1{
        font-size:21px;
    }

    .subtitle{
        font-size:16px;
    }

    .slot-grid{
        grid-template-columns:1fr;
    }

    .slot-header{
        flex-direction:column;
        gap:10px;
        align-items:flex-start;
    }

    .card h2{
        font-size:20px;
    }
}