/* ============================================
   CAREERS PAGE STYLES
   Shadow Protective Services Inc
   Dark green theme matching main site
   ============================================ */

:root {
    --primary-green: #11302e;
    --accent-teal: #2d6a65;
    --dark-bg: #0a1f1e;
    --light-green: #3d8a82;
    --gold-accent: #d4af37;
    --text-light: #e8f4f3;
    --text-muted: #a0b3b0;
    --header-height: 200px; /* Header height including brand and menu for fixed navbar (initial) */
    --header-height-scrolled: 90px; /* Header height when scrolled and compressed */
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* Offset for fixed header when scrolling to sections */
section[id] {
    scroll-margin-top: calc(var(--header-height-scrolled) + 20px);
}

/* Open Positions 섹션은 축소된 헤더 바로 아래로 */
#open-positions {
    scroll-margin-top: calc(var(--header-height-scrolled) + 10px);
}

/* ============================================
   CAREERS LANDING PAGE
   ============================================ */

.careers-hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-bg) 100%);
    padding-top: var(--header-height);
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 0;
}

.careers-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect fill="rgba(255,255,255,0.02)" width="50" height="50"/></svg>');
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.careers-hero .container {
    position: relative;
    z-index: 1;
}

.careers-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.careers-hero-subtitle {
    font-size: 1.5rem;
    color: var(--gold-accent);
    margin-bottom: 1rem;
    font-weight: 500;
}

.careers-hero-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.btn-apply {
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--light-green) 100%);
    color: white;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 106, 101, 0.4);
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 106, 101, 0.6);
    color: white;
}

.btn-apply-small {
    background: var(--accent-teal);
    color: white;
    padding: 10px 30px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-apply-small:hover {
    background: var(--light-green);
    transform: translateY(-2px);
    color: white;
}

/* Why Join Us Section */
.why-join-section {
    background: var(--dark-bg);
    color: var(--text-light);
    margin-top: 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.benefit-card {
    background: rgba(17, 48, 46, 0.5);
    border: 1px solid var(--accent-teal);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--light-green);
    background: rgba(17, 48, 46, 0.8);
    box-shadow: 0 10px 30px rgba(45, 106, 101, 0.3);
}

.benefit-icon {
    font-size: 3rem;
    color: var(--gold-accent);
    margin-bottom: 1.5rem;
}

.benefit-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Open Positions Section */
.positions-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-bg) 100%);
    color: var(--text-light);
}

.position-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent-teal);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

.position-card:hover {
    border-color: var(--light-green);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.position-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-accent);
    margin-bottom: 1rem;
}

.position-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.position-meta span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.position-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.position-requirements {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.position-requirements li {
    color: var(--text-muted);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.position-requirements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--light-green);
    font-weight: bold;
}

/* EEO Section */
.eeo-section {
    background: var(--dark-bg);
    color: var(--text-light);
}

.eeo-box {
    background: rgba(17, 48, 46, 0.5);
    border: 2px solid var(--accent-teal);
    border-radius: 15px;
    padding: 3rem;
}

.eeo-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-accent);
    margin-bottom: 1.5rem;
}

.eeo-text {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Application Process Section */
.process-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-bg) 100%);
    color: var(--text-light);
}

.process-step {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent-teal);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.process-step:hover {
    transform: translateY(-5px);
    border-color: var(--light-green);
    background: rgba(255, 255, 255, 0.08);
}

.process-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--light-green) 100%);
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.process-step h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold-accent);
    margin-bottom: 1rem;
}

.process-step p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   APPLICATION FORM STYLES
   ============================================ */

.application-section {
    background: var(--dark-bg);
    min-height: 100vh;
    color: var(--text-light);
    padding-top: var(--header-height);
    padding-bottom: 3rem;
    margin-top: 0;
}

.application-header {
    background: rgba(17, 48, 46, 0.5);
    border: 2px solid var(--accent-teal);
    border-radius: 15px;
    padding: 2rem;
}

.application-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-accent);
    margin-bottom: 1rem;
}

.application-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Progress Bar */
.progress-container {
    background: rgba(17, 48, 46, 0.5);
    border: 1px solid var(--accent-teal);
    border-radius: 15px;
    padding: 2rem;
}

.progress-bar-custom {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-teal) 0%, var(--light-green) 100%);
    border-radius: 10px;
    transition: width 0.4s ease;
    width: 0%;
}

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

.progress-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--text-muted);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--light-green) 100%);
    border-color: var(--light-green);
    color: white;
}

.progress-step.active .step-label {
    color: var(--text-light);
    font-weight: 600;
}

.progress-step.completed .step-number {
    background: var(--light-green);
    border-color: var(--light-green);
    color: white;
}

.progress-step.completed .step-number::after {
    content: '✓';
}

/* Application Form */
.application-form {
    background: rgba(17, 48, 46, 0.5);
    border: 1px solid var(--accent-teal);
    border-radius: 15px;
    padding: 3rem;
}

.form-step {
    display: none;
}

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

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

.step-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-accent);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-teal);
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--light-green);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

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

.form-label.required::after {
    content: ' *';
    color: #ff6b6b;
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent-teal);
    color: var(--text-light);
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--light-green);
    color: var(--text-light);
    box-shadow: 0 0 0 0.2rem rgba(61, 138, 130, 0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-teal);
}

.form-check-input:checked {
    background-color: var(--light-green);
    border-color: var(--light-green);
}

.form-check-label {
    color: var(--text-light);
    margin-left: 0.5rem;
}

.btn-group .btn-outline-success,
.btn-group .btn-outline-danger,
.btn-group .btn-outline-secondary {
    color: var(--text-light);
}

.btn-group .btn-outline-success {
    border-color: var(--light-green);
}

.btn-group .btn-outline-success:hover,
.btn-group .btn-check:checked + .btn-outline-success {
    background-color: var(--light-green);
    border-color: var(--light-green);
    color: white;
}

.btn-group .btn-outline-danger {
    border-color: #ff6b6b;
}

.btn-group .btn-outline-danger:hover,
.btn-group .btn-check:checked + .btn-outline-danger {
    background-color: #ff6b6b;
    border-color: #ff6b6b;
    color: white;
}

.btn-group .btn-outline-secondary {
    border-color: var(--text-muted);
}

.btn-group .btn-outline-secondary:hover,
.btn-group .btn-check:checked + .btn-outline-secondary {
    background-color: var(--text-muted);
    border-color: var(--text-muted);
    color: var(--dark-bg);
}

/* Employment Record Cards */
.employment-record,
.reference-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--accent-teal);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.record-title,
.reference-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light-green);
    margin-bottom: 1rem;
}

/* Attestation Box */
.attestation-box {
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--gold-accent);
    border-radius: 10px;
    padding: 2rem;
}

.attestation-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-accent);
    margin-bottom: 1rem;
}

.attestation-text {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.attestation-check {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
}

.attestation-check .form-check-label {
    font-size: 1.05rem;
}

/* Next Steps Box */
.next-steps-box {
    background: rgba(45, 106, 101, 0.2);
    border: 1px solid var(--accent-teal);
    border-radius: 10px;
    padding: 2rem;
}

.next-steps-box h4 {
    color: var(--gold-accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.next-steps-box p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 2px solid var(--accent-teal);
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-prev {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-teal);
}

.btn-prev:hover {
    background: var(--accent-teal);
    transform: translateX(-3px);
}

.btn-next {
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--light-green) 100%);
    border: none;
}

.btn-next:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(45, 106, 101, 0.4);
}

.btn-submit {
    background: linear-gradient(135deg, var(--light-green) 0%, var(--accent-teal) 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(61, 138, 130, 0.4);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 138, 130, 0.6);
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: 1px solid;
}

.alert-info {
    background: rgba(61, 138, 130, 0.2);
    border-color: var(--light-green);
    color: var(--text-light);
}

.alert-warning {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold-accent);
    color: var(--text-light);
}

.alert-success {
    background: rgba(61, 138, 130, 0.3);
    border-color: var(--light-green);
    color: white;
}

.alert-danger {
    background: rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
    color: white;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 991px) {
    :root {
        --header-height: 180px;
        --header-height-scrolled: 80px;
    }

    .careers-hero {
        padding-top: var(--header-height);
    }

    .careers-hero-title {
        font-size: 2.5rem;
    }

    .careers-hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .application-section {
        padding-top: var(--header-height);
    }

    .progress-steps {
        flex-wrap: wrap;
    }

    .progress-step {
        flex-basis: calc(33.333% - 1rem);
    }

    .step-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 767px) {
    :root {
        --header-height: 160px;
        --header-height-scrolled: 70px;
    }

    .careers-hero {
        padding-top: var(--header-height);
        padding-bottom: 60px;
    }

    .careers-hero-title {
        font-size: 2rem;
    }

    .application-section {
        padding-top: var(--header-height);
    }

    .application-form {
        padding: 1.5rem;
    }

    .step-title {
        font-size: 1.5rem;
    }

    .form-navigation {
        flex-direction: column;
    }

    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100%;
    }

    .progress-step {
        flex-basis: calc(50% - 0.5rem);
    }

    .step-label {
        font-size: 0.7rem;
    }

    .position-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 140px;
        --header-height-scrolled: 60px;
    }

    .careers-hero {
        padding-top: var(--header-height);
    }

    .careers-hero-title {
        font-size: 1.75rem;
    }

    .application-section {
        padding-top: var(--header-height);
    }

    .btn-apply {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .progress-container {
        padding: 1rem;
    }
}
