/* Apply Page Specific Styles */

body {
    background-color: #f5f5f5;
    /* Light bg for form focus */
}

.apply-container {
    max-width: 800px;
    margin: 40px auto;
    background-color: white;
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* Header */
.apply-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    position: relative;
}

.apply-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.job-meta-tags {
    display: flex;
    gap: 8px;
}

.tag {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.close-btn {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 32px;
    text-decoration: none;
    color: #999;
    line-height: 1;
}

.close-btn:hover {
    color: #333;
}

/* Form Sections */
.form-section {
    margin-bottom: 48px;
}

.form-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color-dark);
}

.required {
    color: #e53935;
    font-weight: normal;
    margin-left: 2px;
}

.optional {
    color: #999;
    font-weight: normal;
    font-size: 14px;
    margin-left: 4px;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

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

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"] {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: #333;
}

/* Radio & Checkbox */
.radio-group {
    display: flex;
    gap: 24px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #fafafa;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: #9b4dff;
    background-color: #f8f0ff;
}

.upload-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.upload-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.file-name {
    font-size: 14px;
    font-weight: 600;
    color: #9b4dff;
    margin-top: 8px;
    min-height: 20px;
}

.help-text {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
}

/* Radio Grid (Chips) */
.radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.radio-chip {
    position: relative;
}

.radio-chip input {
    position: absolute;
    opacity: 0;
}

.radio-chip span {
    display: block;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    color: #666;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-chip input:checked+span {
    border-color: #333;
    background-color: #333;
    color: white;
}

/* Consent */
.consent-section {
    background-color: #f9f9f9;
    padding: 24px;
    border-radius: 8px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.main-check span {
    font-weight: 600;
    font-size: 16px;
}

.sub-check span {
    font-size: 14px;
    color: #555;
}

.divider {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 8px 0;
}

/* Submit Button */
.form-actions {
    margin-top: 60px;
}

.submit-btn {
    width: 100%;
    height: 56px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.submit-btn:hover {
    opacity: 0.9;
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .apply-container {
        padding: 30px 20px;
        margin: 20px;
    }

    .radio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Thank You Screen */
.thank-you-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.thank-you-screen.hidden {
    display: none;
}

.thank-you-content {
    text-align: center;
    padding: 40px;
    max-width: 500px;
}

.thank-you-icon {
    font-size: 72px;
    margin-bottom: 24px;
}

.thank-you-content h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111;
}

.thank-you-content p {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.thank-you-content .sub-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 32px;
}

.thank-you-btn {
    padding: 16px 40px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.thank-you-btn:hover {
    opacity: 0.9;
}