/* --- Reset & General Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f4f8; /* Soft off-white with a touch of blue */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* --- Form Container --- */
.registration-container {
    background-color: #ffffff; /* White background for the form card */
    width: 100%;
    max-width: 650px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border-top: 5px solid #ffcc00; /* Yellow Accent Top Border */
}

/* --- School Header Area --- */
.school-header {
    background-color: #003366; /* Deep Blue School Color */
    color: #ffffff;
    text-align: center;
    padding: 30px 20px;
}

.school-header h2 {
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.school-header p {
    font-size: 0.9rem;
    color: #ffcc00; /* Yellow motto text */
    font-style: italic;
    margin-bottom: 15px;
}

.school-header .form-title {
    background-color: rgba(255, 255, 255, 0.1);
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Form Design --- */
.registration-form {
    padding: 30px;
}

fieldset {
    border: none;
    margin-bottom: 25px;
}

legend {
    font-size: 1.1rem;
    font-weight: 600;
    color: #003366; /* Deep Blue for section headers */
    margin-bottom: 15px;
    border-bottom: 2px solid #ffcc00; /* Yellow underline accent */
    padding-bottom: 3px;
    width: 100%;
}

.form-group {
    margin-bottom: 15px;
    flex: 1;
}

.form-group-row {
    display: flex;
    gap: 15px;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 5px;
}

/* --- Inputs and Dropdowns --- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    border-color: #003366; /* Shifts to blue on focus */
}

/* --- Submit Button --- */
.submit-btn {
    background-color: #ffcc00; /* Vibrant Yellow */
    color: #003366; /* Contrast Blue Text */
    border: none;
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    text-transform: uppercase;
}

.submit-btn:hover {
    background-color: #e6b800; /* Slightly darker yellow on hover */
}

.submit-btn:active {
    transform: scale(0.99);
}

/* --- Responsive Layout for Mobile --- */
@media (max-width: 500px) {
    .form-group-row {
        flex-direction: column;
        gap: 0;
    }
    
    .registration-form {
        padding: 20px;
    }
}                                                                                                                                