body {
    font-family: 'Roboto', sans-serif;
    background-color: #e5e5e5;
    margin: 0;
    padding: 0;
}

.form-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

h2 {
    text-align: center;
    color: #333;
    font-size: 2em;
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    margin-top: 20px;
    color: #333;
    font-size: 1em;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

input[type="file"] {
    margin-top: 10px;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: #4CAF50;
    outline: none;
}

.required {
    color: #FF5733;
    font-size: 0.9em;
}

.submit-button {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #45a049;
}

button[type="button"] {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

button[type="button"]:hover {
    background-color: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-container {
        padding: 20px;
    }

    h2 {
        font-size: 1.8em;
    }

    label {
        font-size: 1em;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="date"],
    select,
    .submit-button {
        font-size: 1em;
    }

    .submit-button {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 15px;
    }

    h2 {
        font-size: 1.6em;
    }

    label {
        font-size: 0.95em;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="date"],
    select,
    .submit-button {
        font-size: 0.9em;
    }

    .submit-button {
        padding: 12px;
    }

    button[type="button"] {
        width: 100%;
        padding: 12px;
    }
}
.submit-button {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    box-sizing: border-box;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.submit-button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

.quaylai-button {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 20px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 100%;
}

.quaylai-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Modal Điều Khoản */
.modal {
    display: block; /* Hiện form mặc định */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); /* Nền tối */
    overflow: auto;
}

/* Nội dung modal */
.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Nút đóng */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: red;
    text-decoration: none;
}

/* Nút đồng ý và hủy bỏ */
button {
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 16px;
}

#agreeButton {
    background-color: green;
    color: white;
}

#closeButton {
    background-color: red;
    color: white;
}