body {
    background-color: #f0f4f8;
    margin: 0;
    padding: 0; /* Removed padding to let container hit edges on mobile */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.apply-container {
    max-width: 100%; /* Makes it full width */
    min-height: 100vh;
    margin: 0;
    background: #fff;
    padding: 40px 10%; /* Adds breathing room on sides for desktop */
    box-sizing: border-box;
}

/* On smaller screens, reduce side padding to use more width */
@media (max-width: 1024px) {
    .apply-container {
        padding: 30px 5%;
    }
}

@media (max-width: 768px) {
    .apply-container {
        padding: 20px 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .file-grid {
        grid-template-columns: 1fr;
    }
}

/* Styling the headers to match your branding */
.form-header h1 {
    color: #1e3a8a; /* Your primary blue */
    font-size: 2rem;
    margin-bottom: 10px;
    margin-top: 50px;
}

.form-section h3 {
    color: #1e3a8a;
    font-size: 18px;
    border-left: 5px solid #fbbf24; /* Your primary yellow */
    padding-left: 15px;
    margin-top: 30px;
    border-left: 4px solid #fbbf24;
    margin-bottom: 20px;
}
.form-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

.form-section {
    margin-bottom: 30px;
}


@media (max-width: 400px) {
    .form-header h1 {
        font-size: 1.5rem !important; /* Shrink text slightly so it doesn't wrap awkwardly */
        line-height: 1.2;
    }
    .apply-container {
        padding-top: 65px !important; /* Pushes the whole content down from the top of the screen */
    }
}

.form-group { margin-bottom: 20px; }
.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }

label { display: block; margin-bottom: 8px; font-weight: 600; color: #333; }

input[type="text"], input[type="tel"], input[type="date"], select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
}

textarea { height: 80px; resize: none; }

.file-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.file-box {
    background: #f8fafc;
    padding: 15px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}

.submit-btn {
    background-color: #fbbf24;
    color: #000;
    border: none;
    padding: 18px;
    width: 100%;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover { background-color: #f59e0b; transform: translateY(-2px); }

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #64748b;
    text-decoration: none;
}

@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 0; }
    .file-grid { grid-template-columns: 1fr; }
    .apply-container { padding: 20px; }
}