@import url('https://fonts.googleapis.com/css2?family=Khmer&family=Noto+Sans+Khmer:wght@100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Noto Sans Khmer", sans-serif;
}

body {
    width: 100%;
    min-height: 100vh;
    background-color: #fff;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}



.form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 400px;
    border-radius: 6px;
    box-shadow: 1px 1px 10px gray;
    padding: 20px;
    background: white;
}

header{
    padding-bottom: 20px;
}
header div img {
    width: 100%;
    max-width: 250px;
    display: block;
}

p{
    font-size: 22px;
    padding-bottom: 10px;
    color: #2c61a5;
    font-size: bold;
}
#redio{
    padding: 10px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.choose-student{
    width: 100%;
    border-bottom: 2px solid #2c61a5;
    border-top: 2px solid #2c61a5;
    padding: 10px;
    margin-bottom: 15px; 
    display: flex;
    justify-content: center;
    align-items: center;
}
.form-check{
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
}
.form-check input{
    width: 20px;
    height: 20px;
}
.form-check p{
    font-size: 18px;
}





nav {
    padding-top: 20px;
    border-top: 2px solid #2c61a5;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

nav div {
    padding: 8px 0 ;
    margin: 10px 0;
    width: 100%;
    text-align: center;
}

a {
    text-decoration: none;
    color: #fff;
    display: block;
    width: 100%;
}

h3 {
    background-color: #2c61a5;
    padding: 25px;
    border-radius: 6px;
    text-align: center;
    font-size: 20px;
}

h3:hover {
    background-color: #10458b;
}



.error-message {
    color: red;
    display: none; /* លាក់សារដំបូង */
    font-size: 16px;
}


/*-------btn-------*/
.btn-next{
    background-color: #2c61a5;
    color: white;
    padding: 8px 40px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 15px;
}
.btn-back{
    background-color: #2c61a5;
    color: white;
    padding: 8px 40px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.for-old-student, .for-new-student{
    display: none;
}






/* Responsive Design for Mobile */
@media screen and (max-width: 480px) {
    body {
        padding: 10px;
    }

    .form {
        width: 90%;
        padding: 15px;
    }

    nav div {
        margin: 8px 0;
    }

    h3 {
        font-size: 16px;
        padding: 12px;
    }
}
