/* =====================================================
   FILE PATH: public/css/Application.css
   PURPOSE  : Application form page styling
===================================================== */

/* ── HERO ────────────────────────────────────────── */
.app-hero {
    background: linear-gradient(135deg, #7A1F1F 0%, #5a1414 100%);
    color: #fff;
    padding: 60px 0 50px;
    position: relative;
    text-align: center;
    overflow: hidden;
}
.app-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.app-hero .section-tag {
    display: inline-block;
    background: rgba(232, 150, 26, 0.20);
    color: #FFD700;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
    border: 1px solid rgba(232, 150, 26, 0.4);
}
.app-hero .section-title {
    font-family: 'Baloo 2', sans-serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    margin: 0 0 12px;
    color: #fff;
}
.app-hero .section-sub {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
}

/* ── FORM SECTION ────────────────────────────────── */
.app-form-section {
    background: #FFF6E5;
    padding: 50px 0 80px;
    min-height: 70vh;
}

/* ── Alert boxes ─────────────────────────────────── */
.alert-success-box,
.alert-error-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    animation: slide-down 0.4s ease;
}
.alert-success-box {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.alert-error-box {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.alert-success-box i,
.alert-error-box i {
    font-size: 22px;
    flex-shrink: 0;
}
@keyframes slide-down {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── FORM CARD ───────────────────────────────────── */
.app-form-card {
    background: #fff;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(122, 31, 31, 0.08),
                0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(232, 150, 26, 0.15);
}

/* ── Section Headers in form ─────────────────────── */
.form-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0 14px;
    border-bottom: 2px solid rgba(232, 150, 26, 0.20);
    margin-bottom: 20px;
    font-family: 'Baloo 2', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #7A1F1F;
}
.form-section-header i {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #E8961A, #C8520A);
    color: #fff;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* ── Inputs ──────────────────────────────────────── */
.form-label {
    font-weight: 700;
    color: #7A1F1F;
    margin-bottom: 6px;
    font-size: 14px;
}
.form-label .req {
    color: #dc3545;
    font-weight: 800;
}
.app-form .form-control {
    border: 2px solid #e8e0d0;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fafafa;
}
.app-form .form-control:focus {
    border-color: #E8961A;
    box-shadow: 0 0 0 4px rgba(232, 150, 26, 0.15);
    background: #fff;
    outline: none;
}
.form-control-disabled {
    background: #f0e8d8 !important;
    color: #7A1F1F;
    font-weight: 600;
    cursor: not-allowed;
}
.form-hint {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 4px;
}

/* ── COURSE RADIO CARDS ──────────────────────────── */
.course-radio-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 10px;
}
.course-radio {
    cursor: pointer;
    margin: 0;
}
.course-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.course-radio-card {
    background: #fafafa;
    border: 2px solid #e8e0d0;
    border-radius: 14px;
    padding: 18px 16px;
    text-align: center;
    transition: all 0.25s ease;
    position: relative;
    height: 100%;
}
.course-radio-card:hover {
    border-color: #E8961A;
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(232, 150, 26, 0.15);
}
.course-radio input:checked + .course-radio-card {
    border-color: #7A1F1F;
    background: linear-gradient(135deg, #FFF6E5, #FFE8C8);
    box-shadow: 0 8px 28px rgba(122, 31, 31, 0.20);
}
.course-radio input:checked + .course-radio-card .course-check {
    opacity: 1;
    transform: scale(1);
}
.course-radio-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, #E8961A, #C8520A);
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.course-radio-content h5 {
    font-family: 'Baloo 2', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #7A1F1F;
    margin: 0 0 4px;
}
.course-radio-content p {
    font-size: 12px;
    color: #555;
    margin: 0 0 8px;
    line-height: 1.4;
}
.course-tag {
    display: inline-block;
    background: rgba(232, 150, 26, 0.15);
    color: #C8520A;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
}
.course-check {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #28a745;
    font-size: 22px;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* ── RESUME UPLOAD ───────────────────────────────── */
.resume-upload-area {
    position: relative;
    border: 2px dashed #E8961A;
    border-radius: 16px;
    background: #fffaf0;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}
.resume-upload-area:hover,
.resume-upload-area.drag-over {
    background: #fff3dc;
    border-color: #C8520A;
}
.resume-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.resume-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}
.resume-upload-icon {
    font-size: 48px;
    color: #E8961A;
    margin-bottom: 10px;
}
.resume-upload-content h5 {
    font-family: 'Baloo 2', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #7A1F1F;
    margin: 0 0 4px;
}
.resume-upload-content p {
    font-size: 13px;
    color: #888;
    margin: 0 0 6px;
}
.resume-upload-content small {
    font-size: 12px;
    color: #aaa;
}

/* Selected file display */
.resume-selected {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 6px 6px 0;
    text-align: left;
}
.resume-selected-icon {
    font-size: 36px;
    color: #28a745;
    flex-shrink: 0;
}
.resume-selected-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.resume-selected-info strong {
    color: #7A1F1F;
    font-size: 15px;
    word-break: break-word;
}
.resume-selected-info span {
    font-size: 12px;
    color: #888;
}
.resume-remove {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 24px;
    cursor: pointer;
    pointer-events: auto;
    z-index: 2;
    position: relative;
    transition: transform 0.2s ease;
}
.resume-remove:hover {
    transform: scale(1.15);
}

/* ── SUBMIT BUTTON ───────────────────────────────── */
.form-submit-row {
    margin-top: 32px;
    text-align: center;
    border-top: 2px solid rgba(232, 150, 26, 0.15);
    padding-top: 28px;
}
.btn-submit-app {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #7A1F1F, #C8520A);
    color: #fff;
    border: none;
    padding: 14px 38px;
    border-radius: 50px;
    font-family: 'Baloo 2', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(122, 31, 31, 0.25);
    transition: all 0.2s ease;
}
.btn-submit-app:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(122, 31, 31, 0.35);
    color: #fff;
}
.form-note {
    font-size: 12px;
    color: #888;
    margin: 14px 0 0;
}
.form-note i {
    color: #28a745;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
    .app-form-card {
        padding: 26px 20px;
        border-radius: 16px;
    }
    .course-radio-group {
        grid-template-columns: 1fr;
    }
    .resume-upload-area {
        padding: 22px 14px;
    }
    .resume-upload-icon {
        font-size: 38px;
    }
    .btn-submit-app {
        width: 100%;
        justify-content: center;
    }
}
