﻿/* Applicant Form Styles */
:root {
    --primary-blue: #2563eb;
    --primary-red: #dc2626;
    --border-light: #e2e8f0;
    --bg-light: #f8fafc;
}

* {
    font-family: 'Hind Siliguri', sans-serif;
}

.application-body {
    background: linear-gradient(135deg, #f0f4ff 0%, #fef2f2 100%);
    min-height: 100vh;
    color: #1e293b;
    padding-top: 20px;
}

.program-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    color: white;
    padding: 1.5rem 1rem;
    text-align: center;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.3);
    margin-bottom: 2rem;
}

.header-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.header-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.info-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary-blue);
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    line-height: 1.6;
}

.form-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-blue), #1e40af);
    color: white;
    padding: 1.25rem 2rem;
    border-bottom: none;
}

    .card-header h3 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 600;
    }

.form-section {
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

    .form-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 5px;
        height: 100%;
        background: linear-gradient(to bottom, var(--primary-blue), var(--primary-red));
    }

    .form-section h5 {
        color: #1e293b;
        margin-bottom: 1.5rem;
        font-weight: 600;
        font-size: 1.25rem;
    }

.form-group {
    margin-bottom: 1rem;
}

.form-control-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    display: block;
}

    .form-control-label.required::after {
        content: " *";
        color: var(--primary-red);
        font-weight: 700;
    }

.form-control, .form-select {
    border: 2px solid var(--border-light) !important;
    border-radius: 12px !important;
    padding: 0.65rem 1rem !important;
    background: var(--bg-light) !important;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 0.75rem center !important;
    background-repeat: no-repeat !important;
    background-size: 16px 12px !important;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--primary-blue) !important;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
        background: white !important;
        outline: none;
    }

.age-display {
    position: relative;
}

.age-suffix {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
    font-weight: 600;
    background: white;
    padding: 0 5px;
    z-index: 5;
    pointer-events: none;
}

.file-upload-wrapper {
    position: relative;
    margin-bottom: 0.5rem;
}

.modern-file-input {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.file-upload-label {
    display: block;
    padding: 0.85rem;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    text-align: center;
    background: var(--bg-light);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
    font-size: 0.9rem;
}

    .file-upload-label:hover {
        border-color: var(--primary-blue);
        background: #dbeafe;
        color: var(--primary-blue);
    }

.file-requirements {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 1rem;
}

    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
        color: white;
    }

.btn-danger {
    background: #dc3545;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
}

    .btn-danger:hover {
        background: #c82333;
        transform: translateY(-1px);
    }

.text-danger {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    color: #dc3545;
}

.field-validation-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.input-validation-error {
    border-color: #dc3545 !important;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.nepali-date-picker {
    cursor: pointer;
    background-color: white !important;
}

/* Confirmation Modal Styles */
.confirmation-details {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid var(--primary-blue);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-blue), #1e40af);
    color: white;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    border: none;
}

/* Enhanced Nepali Input Styling */
.unicode-nepali-input {
    font-family: 'Mangal', 'Preeti', 'Nirmala UI', 'Arial Unicode MS', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.5;
    direction: ltr;
    text-transform: none !important;
    letter-spacing: 0.5px;
}

/* Alert Styles */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5, #ecfdf5);
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2, #fef2f2);
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7, #fffbeb);
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

/* Form Check */
.form-check-input {
    margin-right: 0.5rem;
}

.form-check-label {
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .program-header {
        padding: 1rem;
    }

    .header-title {
        font-size: 1.5rem;
    }

    .header-subtitle {
        font-size: 1rem;
    }

    .form-section {
        padding: 1rem;
    }

    .btn-submit {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .unicode-nepali-input {
        font-size: 14px !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .form-card {
        border-radius: 12px;
    }

    .card-header {
        padding: 1rem;
    }

        .card-header h3 {
            font-size: 1.25rem;
        }
}

/* Grid System Enhancements */
.row.g-3 {
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

    .row.g-3 > [class*="col-"] {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

/* Icon Styles */
.fas, .fa {
    margin-right: 0.5rem;
}

/* Print Styles */
@media print {
    .btn-submit, .btn-danger, .card-header {
        display: none !important;
    }

    .form-section {
        box-shadow: none !important;
        border: 1px solid #000 !important;
        page-break-inside: avoid;
    }
}





/* Nepali Transliteration Styles */
.nepali-transliteration-active {
    border-left: 4px solid #28a745 !important;
    background-color: #f8fff9 !important;
    font-family: "Mangal", "Preeti", "Nirmala UI", sans-serif !important;
    transition: all 0.3s ease;
}

.transliteration-active {
    border-left: 4px solid #28a745 !important;
    background-color: #f8fff9 !important;
}

.input-hint {
    font-size: 0.75rem;
    color: #6c757d;
}

.transliteration-status {
    font-size: 0.875em;
}

/* Fallback styling */
.direct-nepali-input {
    border-left: 4px solid #ffc107 !important;
    background-color: #fffbf0 !important;
    font-family: "Mangal", "Preeti", "Nirmala UI", sans-serif !important;
}
