*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: "Poppins", sans-serif;
}

body{
    background:#f5f7fa;
}

/* ---------------- TOP HEADER ---------------- */

.top-header{
    width:100%;
    background:#ffffff;
    padding:15px 30px;
    display:flex;
    align-items:center;
    gap:15px;
    box-shadow:0 4px 15px rgba(0,0,0,0.08);
    position:sticky;
    top:0;
    z-index:50;
}

.top-header img{
    height:55px;
    width:55px;
    object-fit:contain;
}

.top-header h1{
    font-size:24px;
    color:#1e3a8a;
    font-weight:600;
    letter-spacing:0.5px;
}

/* ---------------- MAIN LAYOUT ---------------- */

.main-container{
    display:flex;
    width:100%;
    min-height:100vh;
}

/* ---------------- LEFT SIDEBAR ---------------- */

.sidebar{
    width:320px;
    background:#024869;
    padding:25px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position:sticky;
    top:90px;
    height:calc(100vh - 90px);
    overflow-y:auto;
    border-right:3px solid #edf0f5;
}

.sidebar h2{
    font-size:20px;
    margin-bottom:20px;
    font-weight:600;
    color:#ffffff;
}

.sidebar .box{
    background:#ffffff;
    padding:15px;
    border-radius:12px;
    margin-bottom:25px;
    transition:.3s;
    border-left:5px solid #e9ac00;
}



label{
    font-size:15px;
    color:#333;
}

/* ---------------- FORM RIGHT SECTION ---------------- */
.form-section {
    display: none;
}

.form-section{
    flex:1;
    padding:40px;
}

.form-card{
    background:white;
    padding:25px;
    border-radius:15px;
    box-shadow:0 5px 20px rgba(0,0,0,0.1);
    margin-bottom:30px;
    transition:.3s;
}

.form-card:hover{
    transform:translateY(-3px);
}

.form-card h3{
    font-size:20px;
    margin-bottom:20px;
    color:#1e3a8a;
    font-weight:600;
}

input, select, textarea{
    width:100%;
    padding:12px;
    margin-bottom:18px;
    border:1px solid #d1d5db;
    border-radius:10px;
    transition:.3s;
    font-size:14px;
}

input:focus, select:focus, textarea:focus{
    border-color:#2563eb;
    box-shadow:0 0 8px rgba(37,99,235,0.3);
    outline:none;
}

button{
    background:#2563eb;
    border:none;
    padding:14px 30px;
    color:white;
    font-size:16px;
    border-radius:10px;
    cursor:pointer;
    transition:.3s;
    margin-top:10px;
}

button:hover{
    background:#1e40af;
    transform:scale(.98);
}

.class-list label{
    display:flex;
    align-items:center;
    margin-bottom:10px;
    gap:10px;
    cursor:pointer;
}

.class-list input{
    margin-top: 14px;
    width:auto;
}

.declaration-card {
    padding: 25px;
    border-radius: 15px;
    line-height: 1.6;
}

.declaration-text {
    font-size: 15px;
    margin-bottom: 20px;
    color: #444;
}

.declaration-item {
    background: #f8faff;
    padding: 15px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    border-left: 4px solid #2563eb;
}

.declaration-item p {
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
}

.declaration-item label {
    margin-right: 25px;
    font-size: 14px;
    color: #222;
    cursor: pointer;
}

.declaration-item input {
    margin-right: 6px;
}

.star {
    color: red;
    font-weight: bold;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 35px; /* space between Agree & Not Agree */
    margin-top: 5px;
}

.payment-card {
    margin-top: 25px;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 16px;
}

.proceed-btn {
    padding: 10px 25px;
    background: #2b2b2b;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-top: 15px;
}

.proceed-btn:hover {
    background: #000;
}



/* ---------------- MOBILE RESPONSIVE DESIGN ---------------- */

@media (max-width: 820px) {

    /* HEADER */
    .top-header {
        padding: 12px 18px;
        gap: 10px;
    }

    .top-header img {
        height: 45px;
        width: 45px;
    }

    .top-header h1 {
        font-size: 18px;
        line-height: 1.3;
    }

    /* MAIN CONTAINER – stack vertically */
    .main-container {
        flex-direction: column;
        padding: 0;
    }

    /* SIDEBAR */
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        padding: 18px;
        border-radius: 0;
        border-right: none;
        box-shadow: none;
        background: #01354d;
    }

    .sidebar h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .sidebar .box {
        padding: 14px;
        margin-bottom: 20px;
        border-radius: 12px;
        background: #fff;
    }

    .class-list label {
        font-size: 15px;
        padding: 10px 6px;
        border-radius: 10px;
        background: #fafafa;
        box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    }

    .class-list input {
        transform: scale(1.3);
    }

    #classMessage {
        font-size: 14px;
        margin-bottom: 10px;
    }

    /* FORM SECTION */
    .form-section {
        padding: 20px;
    }

    .form-card {
        padding: 18px;
        border-radius: 12px;
        box-shadow: 0 5px 18px rgba(0,0,0,0.1);
        margin-bottom: 23px;
    }

    .form-card h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    input, select, textarea {
        padding: 12px;
        font-size: 15px;
        border-radius: 10px;
    }

    /* OPTION ROW - radios */
    .option-row {
        flex-direction: row;
        gap: 20px;
    }

    .declaration-item {
        padding: 12px;
        border-radius: 10px;
    }

    .declaration-item p {
        font-size: 14px;
    }

    .declaration-item label {
        font-size: 14px;
    }

    /* BRANCH SECTION */
    #branchSection {
        margin-bottom: 25px;
    }

    /* Textarea */
    textarea {
        resize: vertical;
    }
}

/* ---------------- SMALL MOBILE (extra polish) ---------------- */
@media (max-width: 480px) {

    .top-header h1 {
        font-size: 16px;
    }

    .sidebar {
        padding: 15px;
    }

    .sidebar h2 {
        font-size: 16px;
    }

    .class-list label {
        font-size: 14px;
        padding: 9px;
    }

    .form-section {
        padding: 15px;
    }

    .form-card {
        padding: 15px;
    }

    input, select, textarea {
        font-size: 14px;
        padding: 10px;
    }

    .declaration-item p {
        font-size: 13px;
    }

    .option-row {
        gap: 15px;
    }

}
