/* Training Apply Page Styles - Based on Career Apply */

/* Training Apply Page Styles - Based on Career Apply */

/* Form Section */
.apply-form-section {
    padding: 4rem 0;
    background-color: var(--bg-secondary);
    min-height: 60vh;
}

.form-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 3rem;
    max-width: 800px;
    margin: -6rem auto 0;
    /* Overlap hero */
    position: relative;
    z-index: 10;
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-header h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-secondary);
}

/* Form Styles */
.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 78, 137, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-help-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Session Selector */
.session-info-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
    border: 1px solid var(--border-color);
}

.session-info-card p {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.session-info-card p:last-child {
    margin-bottom: 0;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

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

.file-upload-visual {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.file-input:hover+.file-upload-visual,
.file-input:focus+.file-upload-visual {
    border-color: var(--primary-color);
    background: rgba(0, 78, 137, 0.02);
}

.file-upload-visual i {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.file-name {
    font-weight: 500;
    color: var(--text-primary);
}

.file-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.file-upload-visual.has-file {
    border-style: solid;
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
}

.file-upload-visual.has-file i {
    color: var(--success-color);
}

/* Footer & Submit */
.form-footer {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-check-input {
    margin-top: 0.25rem;
}

.btn-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 78, 137, 0.3);
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 78, 137, 0.4);
}

/* Validation */
.validation-summary {
    background: #fdf2f2;
    color: #dc2626;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #fee2e2;
}

.text-danger {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .form-card {
        padding: 2rem;
        margin-top: -4rem;
        border-radius: 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}