/* ===================================================================
   Mind Power University — Scholarship Form
   Professional Institutional Design v3
   =================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    background: #0a1628;
    min-height: 100vh;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    padding: 0;
}

/* ── Main Wrapper ── */
.main-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 20px;
    min-height: 100vh;
}

.container {
    display: flex;
    max-width: 1100px;
    width: 100%;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}


/* ===================================================================
   LEFT PANEL
   =================================================================== */
.image-section {
    width: 42%;
    min-height: 720px;
    position: relative;
    background-image:
        linear-gradient(180deg,
            rgba(10, 22, 40, 0.35) 0%,
            rgba(10, 22, 40, 0.55) 40%,
            rgba(10, 22, 40, 0.85) 100%),
        url('mpu_scholarship.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
}

/* Gold accent bar at top */
.image-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #b8860b, #daa520, #b8860b);
    z-index: 2;
}

/* University logo in top-left corner of image section */
.university-logo {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 70px;
    height: 70px;
    background-image: url('mpu_logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    z-index: 2;
}

/* Scholarship info box */
.scholarship-box {
    position: relative;
    z-index: 2;
    padding: 36px 30px 32px;
    background: linear-gradient(180deg, rgba(10,22,40,0) 0%, rgba(10,22,40,0.3) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.scholarship-box h1 {
    font-family: 'DM Serif Display', Georgia, serif;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.35;
    margin-bottom: 10px;
}

.scholarship-box p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 6px;
    font-weight: 300;
}

.feature-list {
    list-style: none;
    margin-top: 18px;
    padding: 0;
}

.feature-list li {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.84rem;
    font-weight: 400;
    padding: 6px 0;
    padding-left: 28px;
    position: relative;
    line-height: 1.4;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid #daa520;
    color: #daa520;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 18px;
}


/* ===================================================================
   RIGHT PANEL — Form
   =================================================================== */
.form-section {
    width: 58%;
    padding: 36px 36px 28px;
    background: #ffffff;
    overflow-y: auto;
    max-height: 96vh;
}

.form-section::-webkit-scrollbar { width: 4px; }
.form-section::-webkit-scrollbar-track { background: transparent; }
.form-section::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

/* ── Form Header ── */
.form-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.form-header-logo {
    width: 160px;
    height: 70px;
    margin: 0 auto 12px;
    background-image: url('mpu_logo.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.form-header h1 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #142e54;
    margin-bottom: 8px;
}

.form-header h2 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #142e54;
}

.form-header p {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto;
}

/* Gold decorative line under header */
.form-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #b8860b, #daa520);
    border-radius: 2px;
}

/* ── Form Fields ── */
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
}

.form-group {
    flex: 1;
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.optional-tag {
    font-size: 0.68rem;
    font-weight: 400;
    color: #94a3b8;
    text-transform: none;
    letter-spacing: 0;
}

/* ── Inputs & Selects ── */
.form-control {
    width: 100%;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control::placeholder {
    color: #94a3b8;
    font-weight: 300;
    font-size: 0.85rem;
}

.form-control:hover {
    border-color: #cbd5e1;
}

.form-control:focus {
    border-color: #2a6cb8;
    box-shadow: 0 0 0 3px rgba(42, 108, 184, 0.12);
}

select.form-control {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* ── Radio Buttons ── */
.radio-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.radio-option {
    flex: 1;
    min-width: 90px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.radio-option:hover {
    border-color: #2a6cb8;
    background: #f0f5ff;
}

.radio-option input[type="radio"] {
    accent-color: #1a3d6e;
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.radio-option label {
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: 0;
}

/* ── Fees Notice ── */
.fees-notice {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-left: 4px solid #dc2626;
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    margin: 16px 0;
}

.fees-notice h3 {
    color: #b91c1c;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 3px;
    font-family: 'DM Sans', sans-serif;
}

.fees-notice p {
    color: #991b1b;
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.5;
    opacity: 0.85;
}

/* ── Submit Button ── */
.btn {
    width: 100%;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    background: #142e54;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.btn:hover {
    background: #b8860b;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.35);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* Payment Button */
.payment-btn {
    max-width: 320px;
    margin: 24px auto;
    display: block;
}

/* ── Thank You / Payment Section ── */
#thankYouSection {
    text-align: center;
    padding: 70px 48px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

#thankYouSection h2 {
    font-family: 'DM Serif Display', Georgia, serif;
    color: #16a34a;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 8px;
}

#thankYouSection p {
    color: #64748b;
    font-size: 0.95rem;
}

#thankYouSection a {
    text-decoration: none;
}

/* ── Country group hidden by default ── */
#countryGroup {
    display: none;
}


/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
        border-radius: 14px;
    }
    .image-section,
    .form-section {
        width: 100%;
    }
    .image-section {
        min-height: 340px;
    }
    .form-section {
        max-height: none;
        padding: 28px 24px;
    }
    .university-logo {
        top: 20px;
        left: 20px;
        width: 56px;
        height: 56px;
    }
    .scholarship-box {
        padding: 28px 24px 24px;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 12px;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .image-section {
        min-height: 280px;
    }
    .scholarship-box h1 {
        font-size: 1.35rem;
    }
    .form-section {
        padding: 24px 18px;
    }
    .form-header h1 {
        font-size: 1.25rem;
    }
    .form-header-logo {
        width: 130px;
        height: 55px;
    }
    .radio-group {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 8px;
    }
    .container {
        border-radius: 10px;
    }
    .image-section {
        min-height: 240px;
    }
    .form-section {
        padding: 20px 14px;
    }
    .scholarship-box {
        padding: 20px 16px 20px;
    }
    .scholarship-box h1 {
        font-size: 1.2rem;
    }
    .btn {
        padding: 12px 20px;
        font-size: 0.88rem;
    }
}