/* ==========================================================================
   WTD Application Form Stylesheet (Redesigned & Premium Polished)
   Workforce Training & Development
   ========================================================================== */

/* Form Page Main Container Constraint (Strict Centered 860px) */
.form-main-container {
    width: 100% !important;
    max-width: 860px !important;
    margin: 40px auto 60px auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

/* Hero Banner for Form Page */
.form-hero-section {
    padding: 20px 0 25px 0;
    text-align: center;
    max-width: 860px !important;
    margin: 0 auto !important;
}

.form-hero-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.form-hero-subtitle {
    font-size: 1.02rem;
    color: var(--wtd-text-muted);
    max-width: 780px;
    margin: 0 auto;
}

/* Help Text under field labels */
.field-help-text {
    font-size: 0.8rem;
    color: #a4adca;
    margin-top: 2px;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* 1 Column Layout for exact replica */
.form-grid-1col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Custom Premium File Upload Styling */
.custom-file-upload-wrapper {
    position: relative;
    width: 100%;
}

.wtd-file-input {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.custom-file-upload-label {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(253, 186, 84, 0.6);
    border-radius: 10px;
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.custom-file-upload-label:hover {
    background: rgba(253, 186, 84, 0.1);
    border-color: #FDBA54;
}

.custom-file-upload-label .file-btn {
    background: #FDBA54;
    color: #0b0f3e;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(253, 186, 84, 0.3);
    white-space: nowrap;
}

.custom-file-upload-label .file-name-text {
    color: #a4adca;
    font-size: 0.9rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Privacy & Terms Text Box */
.privacy-terms-text-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 22px;
    max-height: 280px;
    overflow-y: auto;
}

.category-filter-pills-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.category-pill-link {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-pill-link:hover {
    background: rgba(253, 186, 84, 0.2);
    border-color: #FDBA54;
    color: #FDBA54;
}

.category-pill-link.active {
    background: #FDBA54;
    color: #0b0f3e;
    border-color: #FDBA54;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(253, 186, 84, 0.3);
}


/* Main Form Card Container (Centered with 860px standard width) */
.form-card-wrapper {
    background: rgba(11, 15, 62, 0.95);
    border: 1px solid var(--wtd-border-gold);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    margin: 0 auto !important;
    max-width: 860px !important;
    width: 100% !important;
}




/* TOP FEATURE: Programme Selector Box */
.top-programme-selector-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(15, 20, 48, 0.9) 100%);
    border: 2px solid var(--wtd-gold);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 35px;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}

.programme-selector-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--wtd-gold-bright);
    margin-bottom: 12px;
}

.programme-selector-select {
    width: 100%;
    background: #0b0f28;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 14px 18px;
    border: 1.5px solid var(--wtd-gold);
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.programme-selector-select:focus {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    border-color: #ffffff;
}

/* Form Section Styling Cards */
.form-section-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 30px;
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 14px;
    margin-bottom: 22px;
}

.section-number-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--wtd-gold);
    color: #0b0f28;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--wtd-gold-bright);
}

.section-subtitle {
    font-size: 0.85rem;
    color: var(--wtd-text-muted);
}

/* Clean Single Column Form Grid (Matching Image 2 Layout) */
.form-grid-2col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.col-full {
    width: 100%;
}


.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
}

.required-asterisk {
    color: #ef4444;
    font-weight: bold;
}

/* Styled Input Controls */
.wtd-input {
    width: 100%;
    display: block;
    background: #0b0f28;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 11px 15px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: var(--transition);
    box-sizing: border-box;
}

.wtd-input:focus {
    outline: none;
    border-color: var(--wtd-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    background: #0d1233;
}

.wtd-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

select.wtd-input option {
    background: #0b0f28;
    color: #ffffff;
}

textarea.wtd-input {
    resize: vertical;
    min-height: 90px;
}

/* Radio Option Cards */
.radio-card-group {
    display: flex;
    gap: 15px;
}

.radio-card-option {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.radio-card-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-card-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0b0f28;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 12px;
    color: var(--wtd-text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.radio-card-option input[type="radio"]:checked + .radio-card-content {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--wtd-gold);
    color: var(--wtd-gold-bright);
}

/* Qualifications Repeater Table */
.qualifications-repeater-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.qualifications-repeater-table th {
    background: rgba(212, 175, 55, 0.1);
    color: var(--wtd-gold-bright);
    font-family: var(--font-heading);
    padding: 12px;
    text-align: left;
    font-size: 0.88rem;
}

.qualifications-repeater-table td {
    padding: 10px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-add-row {
    margin-top: 12px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--wtd-gold-bright);
    border: 1px dashed var(--wtd-gold);
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
}

.btn-add-row:hover {
    background: rgba(212, 175, 55, 0.25);
}

.btn-remove-row {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Declarations Box */
.declarations-box {
    background: #0b0f28;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--wtd-text-muted);
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--wtd-gold);
}

/* Submit Container & Premium Submit Button Design */
.submit-action-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    padding-top: 10px;
}

.wtd-main-submit-btn {
    width: 100%;
    max-width: 480px;
    background: linear-gradient(135deg, #FDBA54 0%, #e59b20 100%);
    color: #0b0f3e;
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 16px 40px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(253, 186, 84, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.wtd-main-submit-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(253, 186, 84, 0.6);
    background: linear-gradient(135deg, #ffc76c 0%, #FDBA54 100%);
}

.wtd-main-submit-btn:active {
    transform: translateY(1px) scale(0.99);
    box-shadow: 0 5px 15px rgba(253, 186, 84, 0.3);
}

.form-submit-container {
    text-align: center;
    margin-top: 30px;
}

.btn-submit-application {
    width: 100%;
    max-width: 450px;
    padding: 15px 30px;
    font-size: 1.15rem;
    border-radius: 50px;
}


/* Modal Popup - Hidden by Default */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex !important;
}

.modal-content-card {
    background: #0b0f28;
    border: 2px solid var(--wtd-gold);
    border-radius: 20px;
    padding: 40px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.modal-icon-success {
    font-size: 3.5rem;
    color: var(--wtd-gold);
    margin-bottom: 15px;
}

/* Responsive Grid */
@media (max-width: 768px) {
    .form-card-wrapper {
        padding: 20px 15px;
    }
    .form-grid-2col {
        grid-template-columns: 1fr;
    }
    .col-full {
        grid-column: span 1;
    }
    .radio-card-group {
        flex-direction: column;
    }
}
