:root {
    --primary: #002147;
    --secondary: #fdc800;
    --bg: #f0f4f8;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #5a6c7d;
    --border-color: #d1d9e6;
    --shadow: 0 10px 30px rgba(0, 33, 71, 0.1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(20px, 5vw, 60px) 15px; /* Dynamic Padding */
    color: var(--text-dark);
    line-height: 1.6;
}

.admission-wrapper {
    width: 100%;
    max-width: 1000px; /* Badi screens par width lock */
    margin: 0 auto;
}

.form-container {
    background: var(--white);
    padding: clamp(20px, 4vw, 50px);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

/* Header Styling */
.form-header {
    text-align: center;
    margin-bottom: clamp(30px, 5vw, 50px);
}

.logo {
    width: clamp(70px, 10vw, 100px);
    height: auto;
    margin-bottom: 15px;
    border-radius: 50%;
}

.form-header h2 {
    color: var(--primary);
    font-size: clamp(20px, 4vw, 32px); /* Badi screen par bada, mobile par chota */
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.form-header p {
    color: var(--text-light);
    font-weight: 500;
    font-size: clamp(13px, 2vw, 16px);
    margin-top: 8px;
}

.divider {
    width: 80px;
    height: 5px;
    background: var(--secondary);
    margin: 20px auto;
    border-radius: 10px;
}

/* Section Box Layout */
.section-box {
    background: #ffffff;
    padding: clamp(20px, 3vw, 35px);
    border-radius: 18px;
    border: 1px solid #edf2f7;
    border-left: 6px solid var(--primary);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.section-box h3 {
    margin-bottom: 25px;
    color: var(--primary);
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-box h3 i {
    color: var(--secondary);
    font-size: 0.9em;
}

/* Grid System - Full Responsive */
.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Automatically wraps */
    gap: clamp(15px, 3vw, 25px);
}

.field {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.field label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Inputs & Selects */
.field input,
.field select,
.field textarea {
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-dark);
    background: #f8fafc;
    transition: all 0.3s border;
    width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--primary);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 33, 71, 0.05);
}

/* File Upload Specifics */
.field input[type="file"] {
    padding: 10px;
    font-size: 13px;
    border: 2px dashed var(--border-color);
    background: #fff;
    cursor: pointer;
}

.field input[type="file"]::file-selector-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    margin-right: 10px;
    cursor: pointer;
}

/* Utilities */
.full-width {
    grid-column: 1 / -1; /* Hamesha poori line lega */
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 40px;
}

#submitBtn {
    background: var(--primary);
    color: white;
    padding: clamp(15px, 2vw, 20px) clamp(30px, 5vw, 80px);
    border: none;
    border-radius: 100px;
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(0, 33, 71, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

#submitBtn:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(253, 200, 0, 0.3);
}

#submitBtn:active {
    transform: translateY(-2px);
}

/* --- EXTRA RESPONSIVENESS --- */

/* Badi Tablet aur Desktop ke liye 2 col fixed */
@media (min-width: 1024px) {
    .input-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets (Portrait) */
@media (max-width: 768px) {
    .section-box {
        padding: 20px;
        border-left-width: 4px;
    }

    .input-grid {
        grid-template-columns: 1fr; /* Force single column on smaller tablets */
    }
}

/* Phablets & Large Phones */
@media (max-width: 600px) {
    body { padding: 15px 10px; }

    .form-container {
        padding: 25px 15px;
        border-radius: 20px;
    }
}

/* Small Phones (iPhone SE, etc.) */
@media (max-width: 375px) {
    .form-header h2 { font-size: 18px; }
    .section-box h3 { font-size: 15px; }
    .field label { font-size: 11px; }

    #submitBtn {
        width: 100%;
        padding: 15px;
    }
}