*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: "Segoe UI", sans-serif;
}

body{
    background:#eef3f2;
    padding:25px;
}

/* HEADER */
.header{
	width:100%;
    max-width:1200px;
    margin:auto;
    background:linear-gradient(135deg,#167f78,#2f944d);
    border-radius:30px;
    padding:30px;
    color:white;
    display:flex;
    align-items:center;
    gap:25px;
    box-shadow:0 15px 40px rgba(0,0,0,0.15);
}

.logo-box{
    width:clamp(100px,20vw,180px);
    height:clamp(100px,20vw,180px);
    border-radius:25px;
    background:rgba(255,255,255,255);
    display:flex;
    justify-content:center;
    align-items:center;
    backdrop-filter:blur(5px);
    border:1px solid rgba(255,255,255,0.1);
}

.logo-box img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.school-info h1{
    /* font-size:52px; */
	font-size:clamp(26px,4vw,52px);
    font-weight:700;
    margin-bottom:10px;
}

.school-info h3{
    font-size:18px;
    font-weight:600;
    margin-bottom:15px;
}

.school-info p{
    font-size:14px;
}

/* MAIN */
.container{
	width:100%;
    max-width:1200px;
    margin:30px auto;
}

/* INTRO */
.intro{
    background:#fff;
    border-radius:30px;
    padding:35px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

.badge{
    display:inline-block;
    background:#e6f3ef;
    color:#0d766c;
    padding:10px 18px;
    border-radius:20px;
    font-weight:600;
    margin-bottom:15px;
}

.intro h2{
    /* font-size:42px; */
	font-size:clamp(24px,3vw,42px);
    color:#1b2e4b;
    margin-bottom:15px;
}

.intro p{
    color:#5e6879;
    font-size:20px;
}

/* CONTENT */
.content{
    margin-top:25px;
    display:grid;
    grid-template-columns:430px 1fr;
    gap:25px;
}

.card{
    background:#fff;
    border-radius:30px;
    padding:40px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

.card h3{
    font-size:34px;
    margin-bottom:25px;
    color:#1d2e4c;
}

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

label{
    display:block;
    margin-bottom:10px;
    font-weight:600;
    font-size:20px;
}

input{
    width:100%;
    padding:14px;
    border:1px solid #d7dde3;
    border-radius:8px;
    font-size:18px;
}

.button-group{
    display:flex;
    gap:12px;
    margin-top:15px;
}

.btn{
    border:none;
    padding:14px 30px;
    border-radius:30px;       /* Bo tròn nhiều hơn */
    font-size:18px;
    cursor:pointer;
    transition:all 0.3s ease; /* Hiệu ứng mượt */
    font-weight:600;
}

.btn-primary{
    background:#0f9d3d;
    color:white;
}

.btn-primary:hover{
    background:#0c8534;
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(15,157,61,0.35);
}

.btn-secondary{
    background:#f0f1f5;
}

.btn-danger{
    background:#e53935;
    color:white;
}

.btn-danger:hover{
    background:#c62828;
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(229,57,53,0.35);
}

.btn:hover{
    transform:translateY(-3px) scale(1.03);
}

/* INFO BOX */
.notice{
    background:#eef6f3;
    border:1px solid #c8e3d8;
    border-radius:18px;
    padding:25px;
    font-size:20px;
    color:#22324c;
    line-height:1.6;
}

#luaChonThamGia{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    flex-wrap:nowrap;
}

#luaChonThamGia .btn{
    min-width:160px;
    white-space:nowrap; /* Không cho xuống dòng */
    padding:12px 20px;
    border-radius:30px;
}

.success-icon{
    width:90px;
    height:90px;
    margin:0 auto 20px;
    border-radius:50%;
    background:linear-gradient(135deg,#00c853,#00e676);
    color:#fff;
    font-size:55px;
    font-weight:bold;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 10px 25px rgba(0,200,83,0.35);
    animation:
        successPop .6s ease,
        successPulse 2s infinite;
}

@keyframes successPulse{
    0%,100%{
        box-shadow:0 10px 25px rgba(0,200,83,0.35);
    }
    50%{
        box-shadow:0 10px 35px rgba(0,200,83,0.6);
    }
}
@keyframes pulseButton {
    0%{
        transform:scale(1);
    }
    50%{
        transform:scale(1.08);
    }
    100%{
        transform:scale(1);
    }
}

.pulse-button{
    animation:pulseButton 0.8s ease-in-out 2;
}

/* RESPONSIVE */
@media(max-width:992px){

    .header{
        flex-direction:column;
        text-align:center;
    }

    .school-info h1{
        font-size:34px;
    }

    .intro h2{
        font-size:30px;
    }

    .content{
        grid-template-columns:1fr;
    }
}
/* BẢNG ĐIỂM */
/* KẾT QUẢ TRA CỨU */

.result-card{
    animation:fadeIn .5s ease;
}

@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(15px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.result-title{
    text-align:center;
    font-size:32px;
    font-weight:700;
    color:#1d2e4c;
    margin-bottom:25px;
}

.student-info{
    display:grid;
    grid-template-columns:38% 62%;
    gap:8px;
    align-items:center;
}

.student-info div{
    font-size:16px;
    padding:5px 0;
    word-break:break-word;
}

.score-table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    overflow:hidden;
    border-radius:18px;
    margin:20px 0;
    box-shadow:0 8px 25px rgba(0,0,0,0.08);
}

.score-table thead th{
    background:linear-gradient(135deg,#167f78,#0f9d3d);
    color:white;
    padding:15px;
    font-size:18px;
}

.score-table tbody td{
    background:#fff;
    padding:18px;
    text-align:center;
    font-size:22px;
    font-weight:600;
    border-bottom:1px solid #eee;
}

.score-table tbody tr:hover td{
    background:#f8fffb;
}

.total-badge{
    display:inline-block;
    padding:10px 22px;
    border-radius:40px;
    background:linear-gradient(135deg,#00c853,#00e676);
    color:white;
    font-size:28px;
    font-weight:700;
    box-shadow:0 6px 15px rgba(0,200,83,0.35);
}

.result-section{
    text-align:center;
    margin-top:25px;
}

.result-label{
    font-size:18px;
    margin-bottom:12px;
}

.result-badge{
    display:inline-block;
    padding:12px 35px;
    border-radius:50px;
    color:white;
    font-size:24px;
    font-weight:700;
}

.result-pass{
    background:linear-gradient(135deg,#00c853,#00e676);
}

.result-fail{
    background:linear-gradient(135deg,#e53935,#ff5252);
}

.result-wait{
    background:linear-gradient(135deg,#ff9800,#ffb74d);
}

/* RESPONSIVE CHO ĐIỆN THOẠI VÀ MÁY TÍNH */
@media (max-width: 768px){

    body{
        padding:10px;
    }

    .header{
        flex-direction:column;
        text-align:center;
        padding:20px 15px;
        gap:15px;
    }

    .logo-box{
        width:120px;
        height:120px;
    }

    .school-info h1{
        font-size:28px;
        line-height:1.3;
    }

    .school-info h3{
        font-size:15px;
    }

    .container{
        margin:15px auto;
    }

    .intro{
        padding:20px;
    }

    .intro h2{
        font-size:26px;
    }

    .intro p{
        font-size:16px;
    }

    .content{
        grid-template-columns:1fr;
        gap:15px;
    }

    .card{
        padding:20px;
    }

    .card h3{
        font-size:26px;
    }

    label{
        font-size:18px;
    }

    input{
        font-size:16px;
        padding:12px;
    }

    .btn{
        width:100%;
        font-size:18px;
    }

    .button-group{
        flex-direction:column;
    }

    .notice{
        font-size:17px;
        padding:18px;
    }

    .result-title{
        font-size:26px;
    }

    .student-info{
        grid-template-columns:38% 62%;
        gap:8px;
        align-items:center;
    }

    .student-info div{
        font-size:16px;
        padding:4px 0;
        word-break:break-word;
    }

    .score-table{
        display:block;
        overflow-x:auto;
        white-space:nowrap;
    }

    .score-table thead th{
        font-size:15px;
        padding:10px;
    }

    .score-table tbody td{
        font-size:16px;
        padding:12px;
    }

    .total-badge{
        font-size:18px;
        padding:8px 16px;
    }

    .result-badge{
        font-size:18px;
        padding:10px 20px;
    }
	 #luaChonThamGia{
        display:flex;
        flex-direction:row;
        gap:8px;
    }

    #luaChonThamGia .btn{
        flex:1;
        min-width:0;
        white-space:nowrap;
        font-size:15px;
        padding:12px 10px;
    }
}
