/* application-form.css */
.apply-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.apply-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.apply-modal {
    background: #fff;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    border-radius: 12px;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.apply-modal-overlay.active .apply-modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

.modal-step {
    display: none;
}

.modal-step.active {
    display: block;
    animation: fadeIn 0.4s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.apply-modal h2 {
    font-size: 24px;
    color: #222;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #E60012;
    display: inline-block;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group label span.req {
    color: #E60012;
    font-size: 12px;
    margin-left: 5px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.form-control:focus {
    border-color: #E60012;
    outline: none;
}

.file-upload-wrapper {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    border-radius: 6px;
    background: #fafafa;
    cursor: pointer;
    margin-bottom: 10px;
}

.file-upload-wrapper input[type="file"] {
    display: none;
}

.file-name-display {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.btn-primary {
    background: #E60012;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #c5000f;
}

.btn-secondary {
    background: #eee;
    color: #333;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #ddd;
}

.policy-box {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 6px;
    height: 150px;
    overflow-y: scroll;
    margin-bottom: 20px;
    font-size: 14px;
    color: #555;
}

.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Preview Step */
.preview-item {
    margin-bottom: 15px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
}
.preview-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}
.preview-value {
    font-size: 16px;
    color: #222;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #E60012;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-icon {
    font-size: 60px;
    color: #4CAF50;
    margin-bottom: 20px;
}
