/* ============================================
   CAREERS PAGE - Samsri Innovations
   Premium Multi-Step Application Form
   ============================================ */

:root {
    --primary-blue: #0B3D91;
    --primary-orange: #FF9900;
}

/* Hero Section */
.careers-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 0 4rem;
    overflow: hidden;
    background: linear-gradient(135deg, #0B3D91 0%, #1a237e 40%, #311b92 70%, #6B23B8 100%);
}

.careers-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 153, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(107, 35, 184, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    animation: heroShimmer 8s ease-in-out infinite alternate;
}

@keyframes heroShimmer {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.careers-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.careers-hero-badge {
    display: inline-block;
    background: rgba(255, 153, 0, 0.2);
    border: 1px solid rgba(255, 153, 0, 0.4);
    color: #FFD24A;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.careers-hero h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(90deg, #FF9900, #FFD24A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.careers-hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .careers-hero {
        min-height: 500px;
    }
    .careers-hero h1 {
        font-size: 3.5rem;
    }
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: var(--light-bg);
    transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.benefit-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.benefit-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--primary-blue);
}

.benefit-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Job Cards */
.job-cards-grid {
    gap: 1.5rem !important;
}

.job-card {
    position: relative;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.job-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(11, 61, 145, 0.12);
}

.job-card:hover::before {
    transform: scaleX(1);
}

.job-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(11, 61, 145, 0.08);
    color: var(--primary-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.job-card-badge.office-wfh {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}

.job-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.job-card h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.job-location {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.job-desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.job-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.job-skills span {
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.08), rgba(11, 61, 145, 0.08));
    color: var(--primary-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.btn-apply {
    align-self: flex-start;
}

/* Form Section */
.careers-form-section {
    background: linear-gradient(180deg, #f0f4ff 0%, #f5f7fa 100%);
}

.form-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

@media (max-width: 600px) {
    .form-wrapper {
        padding: 1.25rem;
        border-radius: 14px;
    }
}

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

.form-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #666;
    font-size: 0.95rem;
}

/* Progress Bar */
.form-progress {
    margin-bottom: 2.5rem;
}

.progress-track {
    height: 6px;
    background: #e6e9ef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-blue));
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
}

.progress-step span {
    font-size: 0.7rem;
    color: #aaa;
    font-weight: 500;
    text-align: center;
    transition: color 0.3s;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e6e9ef;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, var(--primary-orange), #e68a00);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.progress-step.completed .step-circle {
    background: linear-gradient(135deg, var(--primary-blue), #1a5cbd);
    color: white;
    box-shadow: 0 4px 12px rgba(11, 61, 145, 0.3);
}

.progress-step.active span,
.progress-step.completed span {
    color: var(--primary-blue);
}

@media (max-width: 500px) {
    .progress-step span {
        font-size: 0.6rem;
    }
    .step-circle {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeInUp 0.5s ease;
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f2f5;
}

.step-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.step-title h3 {
    margin-bottom: 0.25rem;
    font-size: 1.4rem;
}

.step-title p {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

/* Form Inputs */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.required {
    color: #e53935;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #e6e9ef;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #333;
    background: #fafbfd;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(11, 61, 145, 0.08);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e53935;
    background: #fff5f5;
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.06);
}

.field-error {
    font-size: 0.8rem;
    color: #e53935;
    margin-top: 0.3rem;
    min-height: 1.2em;
}

/* Quiz / Assessment Questions */
.quiz-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.06), rgba(11, 61, 145, 0.06));
    border: 1px solid rgba(255, 153, 0, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.quiz-info-banner.role-banner {
    background: linear-gradient(135deg, rgba(107, 35, 184, 0.06), rgba(11, 61, 145, 0.06));
    border-color: rgba(107, 35, 184, 0.15);
}

.quiz-info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.quiz-info-banner p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.quiz-question {
    background: #fafbfd;
    border: 1px solid #e6e9ef;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.quiz-question:hover {
    border-color: rgba(11, 61, 145, 0.2);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.question-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.q-badge {
    background: linear-gradient(135deg, var(--primary-blue), #1a5cbd);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.q-category {
    background: rgba(255, 153, 0, 0.1);
    color: #c77700;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.q-text {
    font-weight: 600;
    color: #222;
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.quiz-options {
    display: grid;
    gap: 0.6rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 2px solid #e6e9ef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.92rem;
    background: white;
    user-select: none;
}

.quiz-option:hover {
    border-color: var(--primary-blue);
    background: rgba(11, 61, 145, 0.02);
}

.quiz-option input[type="radio"],
.quiz-option input[type="checkbox"] {
    display: none;
}

.option-mark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ccc;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.checkbox-mark {
    border-radius: 5px;
}

.quiz-option input[type="radio"]:checked ~ .option-mark,
.quiz-option input[type="checkbox"]:checked ~ .option-mark {
    border-color: #0B3D91;
    background: white;
}

.quiz-option input[type="radio"]:checked ~ .option-mark::after,
.quiz-option input[type="checkbox"]:checked ~ .option-mark::after {
    content: '✓';
    color: #0B3D91;
    font-size: 0.85rem;
    font-weight: 900;
}

.quiz-option:has(input:checked) {
    border-color: #0B3D91;
    background: rgba(11, 61, 145, 0.04);
    box-shadow: 0 0 0 2px rgba(11, 61, 145, 0.06);
}

/* Form Actions / Buttons */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f2f5;
    gap: 1rem;
}

.btn-next,
.btn-submit {
    padding: 0.9rem 2rem;
    font-size: 1rem;
}

.btn-secondary-outline {
    background: transparent;
    border: 2px solid #ddd;
    color: #666;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-secondary-outline:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: rgba(11, 61, 145, 0.03);
}

.btn-submit {
    background: linear-gradient(135deg, #0B3D91, #1a5cbd);
    border: none;
    color: white;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #1a5cbd, #0B3D91);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 61, 145, 0.3);
}

@media (max-width: 500px) {
    .form-actions {
        flex-direction: column-reverse;
    }
    .form-actions button {
        width: 100%;
    }
}

/* Review Section */
.review-section {
    display: grid;
    gap: 1.25rem;
}

.review-card {
    background: #fafbfd;
    border: 1px solid #e6e9ef;
    border-radius: 14px;
    padding: 1.5rem;
}

.review-card h4 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e6e9ef;
}

.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 500px) {
    .review-grid {
        grid-template-columns: 1fr;
    }
}

.review-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.review-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    font-weight: 600;
}

.review-item .value {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.review-score-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.review-score-bar {
    flex: 1;
    height: 10px;
    background: #e6e9ef;
    border-radius: 10px;
    overflow: hidden;
}

.review-score-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s ease;
}

.review-score-fill.good {
    background: linear-gradient(90deg, #43a047, #66bb6a);
}

.review-score-fill.average {
    background: linear-gradient(90deg, #ff9800, #ffb74d);
}

.review-score-fill.poor {
    background: linear-gradient(90deg, #e53935, #ef5350);
}

.review-score-text {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-blue);
    white-space: nowrap;
}

/* Thank You Card */
.thank-you-card {
    text-align: center;
    padding: 3rem 2rem;
    animation: fadeInUp 0.5s ease;
}

.thank-you-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounceIn .8s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.thank-you-card h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.thank-you-card p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

/* Score Display */
.score-card {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(11, 61, 145, 0.03), rgba(255, 153, 0, 0.03));
    border-radius: 16px;
    border: 1px solid rgba(11, 61, 145, 0.08);
}

.score-card h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

.score-ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.score-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.score-message {
    font-weight: 600;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Loading spinner on submit */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Checkbox option style */
.checkbox-option {
    background: white;
    border: 2px solid #e6e9ef;
    border-radius: 10px;
    padding: 1rem;
}

.checkbox-option:has(input:checked) {
    border-color: var(--primary-blue);
    background: rgba(11, 61, 145, 0.02);
}

/* Responsive adjustments for quiz */
@media (max-width: 600px) {
    .quiz-question {
        padding: 1rem;
    }
    .quiz-option {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }
    .step-title {
        flex-direction: column;
        gap: 0.5rem;
    }
    .step-number {
        font-size: 1.5rem;
    }
}

/* Resume Upload Area */
.resume-upload-area {
    border: 2px dashed #c5cdd8;
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fafbfd;
    position: relative;
}

.resume-upload-area:hover,
.resume-upload-area.dragover {
    border-color: var(--primary-blue);
    background: rgba(11, 61, 145, 0.03);
    box-shadow: 0 0 0 4px rgba(11, 61, 145, 0.06);
}

.resume-upload-area.has-file {
    border-color: #43a047;
    border-style: solid;
    background: rgba(67, 160, 71, 0.04);
}

.resume-upload-icon {
    font-size: 2.5rem;
    color: #aab4c2;
    margin-bottom: 0.75rem;
    transition: color 0.3s, transform 0.3s;
}

.resume-upload-area:hover .resume-upload-icon {
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.resume-upload-text {
    font-size: 0.95rem;
    color: #555;
    margin: 0 0 0.4rem;
}

.resume-browse-link {
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.resume-upload-hint {
    font-size: 0.8rem;
    color: #999;
    margin: 0;
}

.resume-file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    padding: 1rem 1.25rem;
    background: rgba(67, 160, 71, 0.06);
    border-radius: 10px;
    margin-top: 1rem;
    animation: fadeInUp 0.3s ease;
}

.resume-file-info i {
    font-size: 1.3rem;
    color: #43a047;
}

.resume-file-info span {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.resume-remove-btn {
    background: rgba(229, 57, 53, 0.1);
    color: #e53935;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.resume-remove-btn:hover {
    background: #e53935;
    color: white;
}

/* Auto-Shortlisted Banner Animation */
@keyframes bannerPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 153, 0, 0.3);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 20px 4px rgba(11, 61, 145, 0.2);
        transform: scale(1.01);
    }
}
