/**
 * Apply Page Styles
 *
 * Styles specific to the job application page.
 * Extracted from apply.php inline styles.
 */

/* ========================================
   Application Container
   ======================================== */

.application-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

/* ========================================
   Application Header
   ======================================== */

.application-header {
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
    border-bottom: 3px solid #e0e0e0;
}

.application-header::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    background-color: #e63946;
    position: absolute;
    bottom: -3px;
    left: 0;
}

.application-title {
    color: #14264A;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.application-subtitle {
    color: #4a5568;
    font-size: 1.25rem;
}

/* ========================================
   File Upload
   ======================================== */

.custom-file-upload {
    border: 1px dashed #cbd5e0;
    border-radius: 4px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    margin-bottom: 1rem;
    position: relative;
    transition: all 0.3s;
}

.custom-file-upload:hover {
    border-color: #4299e1;
    background-color: #f7fafc;
}

.custom-file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    font-size: 2rem;
    color: #718096;
    margin-bottom: 0.5rem;
}

.upload-text {
    font-size: 1rem;
    color: #4a5568;
    font-weight: 600;
}

.upload-subtext {
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.5rem;
}

/* ========================================
   File Preview
   ======================================== */

.file-preview {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 0.75rem;
    background-color: #f8fafc;
    margin-bottom: 1rem;
}

.file-preview-icon {
    margin-right: 0.75rem;
    font-size: 1.5rem;
    color: #3182ce;
}

.file-preview-name {
    flex: 1;
    font-size: 0.875rem;
    color: #4a5568;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-preview-size {
    font-size: 0.75rem;
    color: #718096;
}

.file-preview-remove {
    margin-left: 0.75rem;
    color: #e53e3e;
    cursor: pointer;
    font-size: 1rem;
}

/* ========================================
   Resume Options
   ======================================== */

.resume-options {
    margin: 1.5rem 0;
}

.resume-option {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.resume-option:hover {
    background-color: #f7fafc;
}

.resume-option-radio {
    margin-right: 1rem;
}

.resume-option-details {
    flex: 1;
}

.resume-option-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.resume-option-meta {
    font-size: 0.75rem;
    color: #718096;
}

/* ========================================
   Profile Info Section
   ======================================== */

.profile-info {
    background-color: #f8fafc;
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.profile-row {
    display: flex;
    margin-bottom: 1rem;
}

.profile-row:last-child {
    margin-bottom: 0;
}

.profile-label {
    width: 150px;
    font-weight: 600;
    color: #4a5568;
    flex-shrink: 0;
}

.profile-value {
    flex: 1;
    color: #2d3748;
}

.profile-edit-link {
    color: #4299e1;
    font-size: 0.875rem;
    margin-left: 0.5rem;
    text-decoration: none;
}

.profile-edit-link:hover {
    text-decoration: underline;
}

/* ========================================
   Login Required Section
   ======================================== */

.login-required {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #f8fafc;
    border-radius: 4px;
    margin: 2rem 0;
}

.login-heading {
    font-size: 1.5rem;
    color: #14264A;
    margin-bottom: 1rem;
}

.login-text {
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.login-button {
    display: inline-block;
    background-color: #e63946;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color: #c1121f;
    color: white;
    text-decoration: none;
}

/* ========================================
   Submit Button
   ======================================== */

.submit-button {
    background-color: #e63946;
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
    min-width: 200px;
    margin-top: 1.5rem;
}

.submit-button:hover {
    background-color: #c1121f;
}

.submit-button:disabled {
    background-color: #cbd5e0;
    cursor: not-allowed;
}

/* ========================================
   Back Button
   ======================================== */

.back-button {
    display: inline-block;
    background-color: #14264A;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #0d1b33;
    color: white;
    text-decoration: none;
}

/* ========================================
   Step Navigation
   ======================================== */

.step-container {
    display: none;
}

.step-container.active {
    display: block;
}

.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.step-buttons.center {
    justify-content: center;
}

.step-button {
    background-color: #14264A;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
    text-decoration: none;
}

.step-button:hover {
    background-color: #0d1b33;
    color: white;
    text-decoration: none;
}

.step-button.next {
    background-color: #e63946;
}

.step-button.next:hover {
    background-color: #c1121f;
}

/* ========================================
   Step Indicator
   ======================================== */

.step-indicator {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #cbd5e0;
    margin: 0 4px;
}

.step-dot.active {
    background-color: #e63946;
}

/* ========================================
   Duplicate Application Error
   ======================================== */

#duplicateErrorContainer {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #f0f7ff;
    border-radius: 4px;
    margin: 2rem 0;
    border: 1px solid #c2ddff;
    display: none;
}

#duplicateErrorContainer .error-icon {
    font-size: 4rem;
    color: #3182ce;
    margin-bottom: 1.5rem;
}

#duplicateErrorContainer .error-title {
    font-size: 2rem;
    color: #14264A;
    margin-bottom: 1rem;
}

#duplicateErrorContainer .error-message {
    color: #2d3748;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

#duplicateErrorContainer .step-buttons.center {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 767.98px) {
    .profile-row {
        flex-direction: column;
    }

    .profile-label {
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .step-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .step-button {
        width: 100%;
    }

    .application-title {
        font-size: 1.75rem;
    }

    .application-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    #duplicateErrorContainer .step-buttons.center {
        flex-direction: column;
    }

    #duplicateErrorContainer .step-button {
        width: 100%;
        margin-left: 0 !important;
    }
}
