/* --- ADMISSION FORM STYLING --- */
.admission-section {
    background: #f0f4f8;
    padding: 80px 0;
    font-family: 'Poppins', sans-serif;
}

.form-container {
    max-width: 950px;
    width: 95%;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(9, 34, 63, 0.1);
}

.form-header {
    background: #09223f;
    color: #fff;
    padding: 40px;
    text-align: center;
}

.form-logo { width: 80px; margin-bottom: 15px; }
.form-header h2 { font-weight: 800; letter-spacing: 1px; margin: 0; font-size: 1.8rem; }
.form-sub { color: #258d40; font-weight: 600; margin-top: 10px; font-size: 0.9rem; }

.form-card {
    padding: 35px;
    border-bottom: 1px solid #edf2f7;
    width: 100%;
    box-sizing: border-box;
}

.section-heading {
    color: #09223f;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-heading i { color: #258d40; }

/* PROFESSIONAL GRID STYLE */
.input-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 30px;
    width: 100%;
    box-sizing: border-box;
}

/* This ensures full-width items take up both columns */
.full-width { 
    grid-column: span 2; 
}

.dual-input {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 15px;
}

/* THE PROFESSIONAL COLUMN STYLE */
.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
}

.input-group input, 
.input-group textarea, 
.input-group select {
    width: 100%;
    max-width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    color: #09223f;
    background-color: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    display: block;
    font-family: inherit; /* Ensures font matches inputs */
}

/* Specific styling for the big Address box */
.input-group textarea {
    resize: vertical; /* Allows user to pull it down but not wide */
    min-height: 80px;
    line-height: 1.5;
}

.input-group input:focus, 
.input-group textarea:focus, 
.input-group select:focus {
    border-color: #258d40;
    background-color: #fafffb;
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 141, 64, 0.1);
    transform: translateY(-1px);
}

/* FIXING THE SCHOOL HISTORY TABLE */
.table-container-wrapper {
    overflow-x: auto; 
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    margin-top: 10px;
    width: 100%;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px; 
}

.history-table th {
    background: #f8fafc;
    padding: 15px;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 700;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}

.history-table td {
    padding: 10px;
    border-bottom: 1px solid #edf2f7;
}

.history-table input {
    border: 1px solid transparent !important;
    padding: 10px !important;
    background: transparent !important;
}

.history-table input:focus {
    background: #f1f5f9 !important;
    border-radius: 6px;
}

/* DECLARATION & SUBMIT */
.declaration-box {
    background: #fffbeb;
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid #fbbf24;
    margin-top: 30px;
    color: #92400e;
    line-height: 1.6;
}

.submit-btn {
    display: block;
    width: calc(100% - 70px);
    margin: 40px 35px;
    padding: 22px;
    background: #258d40;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.4s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover { 
    background: #09223f; 
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(9, 34, 63, 0.2);
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .input-grid, .dual-input { 
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    .full-width { grid-column: span 1; }
    .form-card { padding: 25px; }
    .form-header { padding: 30px 20px; }
    .form-header h2 { font-size: 1.4rem; }
    .submit-btn { width: calc(100% - 50px); margin: 30px 25px; font-size: 1rem; }
}
