
    :root {
    --navy:      #0a1f44;
    --navy-mid:  #1a3a70;
    --gold:      #c8922a;
    --gold-light:#e8b84b;
    --cream:     #fdf8f0;
    --white:     #ffffff;
    --gray-soft: #e8e4dc;
    --gray-text: #6b7280;
    --error:     #dc2626;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--cream);
    min-height: 100vh;
    padding: 2rem 1rem 4rem;
}

/* Background texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -5%, rgba(10,31,68,.07) 0%, transparent 70%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(200,146,42,.04) 40px,
            rgba(200,146,42,.04) 41px
        );
    pointer-events: none;
    z-index: 0;
}

/* Wrapper */
.page-wrap {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
}

/* Card */
.form-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow:
        0 2px 4px rgba(10,31,68,.06),
        0 12px 40px rgba(10,31,68,.12),
        0 0 0 1px rgba(200,146,42,.15);
    overflow: hidden;
    animation: fadeUp .5s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

/* HEADER */
.form-header {
    background: var(--navy);
    padding: 2rem 2rem 1.5rem;
    position: relative;
}

.form-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
}


.header-inner {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 16px);
}

/* LOGO BIGGER THAN TEXT */
.logo-box img {
    width: clamp(120px, 35vw, 160px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
    border-radius: 10px;
}

/* TEXT BLOCK */
.header-text {
    flex: 1;
}

/* MAIN BRAND */
.header-brand {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.8rem);
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1.1;
}

/* COLLEGE NAME */
.header-college {
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    color: rgba(255,255,255,0.9);
    margin-top: 2px;
}


.header-sub {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
}




/* FORM BODY */
.form-body {
    padding: 2rem;
}

/* SECTION */
.section-heading {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 1rem;
}

/* GRID */


.fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;   /* 🔥 reduced gap */
    margin-bottom: 1.2rem;
}

/* Field group compact */
.field-group {
    display: flex;
    flex-direction: column;
    gap: 3px;  /* 🔥 label-input gap reduce */
}

/* INPUT STYLE COMPACT */
.field-group input,
.field-group select,
.field-group textarea {
    padding: 8px 10px;   /* 🔥 smaller height */
    border-radius: 7px;
    font-size: 0.85rem;
}

.field-full {
    grid-column: 1 / -1;
}
.field-group input:focus,
.field-group select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(200,146,42,0.15);
}

.field-label {
    font-size: 0.8rem;
    color: var(--navy);
}

.field-label .req {
    color: var(--gold);
}

/* INPUT */
.field-group input,
.field-group select,
.field-group textarea {
    padding: 10px 12px;
    border-radius: 8px;
    border: 2px solid var(--gray-soft);
    background: var(--cream);
    font-size: 0.85rem;
}

.field-group input:focus,
.field-group select:focus {
    border-color: var(--gold);
    outline: none;
    background: var(--white);
}

/* SELECT ARROW */
.select-wrap {
    position: relative;
}

.select-wrap::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--gold);
}

.select-wrap select {
    appearance: none;
    padding-right: 30px;
}

/* BUTTON */
.btn-submit {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    color: white;
    font-weight: 500;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
}

/* FOOTER */
.form-footer {
    padding: 1rem 2rem;
    background: #f7f3ec;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-note {
    font-size: 0.75rem;
}

.secure-badge {
    font-size: 0.7rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .fields-grid {
        grid-template-columns: 1fr;
    }

    .form-body {
        padding: 1.5rem;
    }

    .form-header {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .header-text {
        text-align: center;
    }
}

/* Error Messages */
.field-error {
    color: var(--error); /* Red color */
    font-size: 0.8rem;
    margin-top: 3px;
}

