/* ==================== Hero Section ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: calc(-1 * var(--header-height));
}

.hero-short {
    min-height: 50vh;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 24px;
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s ease forwards 0.3s;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s ease forwards 0.6s;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s ease forwards 0.9s;
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--white);
    opacity: 0.6;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@media (max-width: 768px) {
    .hero {
        min-height: 600px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 500px;
    }
    .hero-title {
        font-size: 2rem;
    }
}

/* ==================== Benefits Section ==================== */
.benefits-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.benefit-card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius-lg);
    padding: 40px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: default;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 0 0 2px 2px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.benefit-card:hover::before {
    width: 60px;
}

.benefit-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: var(--off-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
    background: rgba(var(--primary-rgb), 0.08);
}

.benefit-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.benefit-card h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .benefits-section {
        padding: var(--section-padding-sm);
    }
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .benefit-card {
        padding: 32px 24px;
    }
}

/* ==================== Open Positions Section ==================== */
.positions-section {
    padding: var(--section-padding);
    background-color: var(--off-white);
}

.positions-filters {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 10px 16px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-dark);
    background-color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    min-width: 180px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.job-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    border: 1px solid var(--gray-light);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.job-card:hover::before {
    transform: scaleX(1);
}

.job-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.job-card h3 {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

.job-badge {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
}

.job-badge.full_time { background: rgba(34, 139, 34, 0.1); color: #228B22; }
.job-badge.part_time { background: rgba(70, 130, 180, 0.1); color: #4682B4; }
.job-badge.contract { background: rgba(255, 165, 0, 0.1); color: #cc8400; }
.job-badge.temporary { background: rgba(148, 103, 189, 0.1); color: #7b2d8e; }

.job-card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-light);
}

.job-meta-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.job-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.job-deadline {
    font-size: 0.82rem;
    color: var(--text-light);
}

.job-deadline strong {
    color: var(--primary-color);
}

.job-view-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
}

.job-view-link:hover {
    gap: 8px;
}

.job-view-link svg {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

/* Empty state */
.positions-empty {
    text-align: center;
    padding: 80px 24px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-light);
    box-shadow: var(--shadow);
}

.positions-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--off-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--gray-medium);
}

.positions-empty-icon svg {
    width: 36px;
    height: 36px;
    color: var(--gray-medium);
}

.positions-empty h3 {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.positions-empty p {
    font-size: 0.95rem;
    color: var(--text-light);
    max-width: 480px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

/* ---------- Talent Pool ---------- */
.talent-pool-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.talent-pool-cta {
    text-align: center;
    margin-top: 8px;
}

/* ---------- Talent Pool Intro ---------- */
.talent-pool-intro {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-light);
    padding: 20px 24px;
    margin-bottom: 24px;
    font-size: 0.92rem;
    color: var(--text-medium);
    line-height: 1.7;
}

/* ---------- Privacy Notice ---------- */
.privacy-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: var(--off-white);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.privacy-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--text-light);
}

/* Loading state */
.positions-loading {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-light);
}

.positions-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .positions-section {
        padding: var(--section-padding-sm);
    }
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    .job-card {
        padding: 24px;
    }
}

/* ==================== Job Detail Modal ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--off-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gray-light);
}

.modal-close svg {
    width: 18px;
    height: 18px;
    color: var(--text-medium);
}

.modal-header {
    margin-bottom: 28px;
    padding-right: 40px;
}

.modal-header h2 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.modal-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--off-white);
}

.modal-section p,
.modal-section ul {
    font-size: 0.92rem;
    color: var(--text-medium);
    line-height: 1.8;
}

.modal-section ul {
    padding-left: 20px;
    list-style: disc;
}

.modal-section ul li {
    margin-bottom: 6px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-light);
}

@media (max-width: 768px) {
    .modal {
        padding: 28px 20px;
        max-height: 90vh;
        border-radius: var(--border-radius-lg);
    }
    .modal-header h2 {
        font-size: 1.25rem;
    }
}

/* ==================== Life at Cherry Hills ==================== */
.life-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.life-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}

.life-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 180px);
    gap: 12px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.life-gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
}

.life-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.life-gallery-item:hover img {
    transform: scale(1.05);
}

.life-gallery-item:first-child {
    grid-row: span 2;
}

.life-gallery-item:first-child img {
    height: 100%;
}

.life-text h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.life-text .section-divider {
    margin: 16px 0 20px;
}

.life-text p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 28px;
}

.life-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.life-stat {
    text-align: center;
}

.life-stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 4px;
}

.life-stat-label {
    font-size: 0.78rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .life-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .life-gallery {
        grid-template-rows: repeat(2, 160px);
    }
}

@media (max-width: 768px) {
    .life-section {
        padding: var(--section-padding-sm);
    }
    .life-text h2 {
        font-size: 2rem;
        text-align: center;
    }
    .life-text .section-divider {
        margin-left: auto;
        margin-right: auto;
    }
    .life-text p {
        text-align: center;
    }
    .life-stats {
        justify-content: center;
    }
    .life-gallery {
        grid-template-rows: repeat(2, 140px);
    }
}

/* ==================== Page Hero (sub-pages) ==================== */
.page-hero {
    padding: calc(var(--header-height) + 80px) 24px 60px;
    background: var(--gradient-accent);
    text-align: center;
    color: var(--white);
}

.page-hero-title {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .page-hero {
        padding: calc(var(--header-height) + 50px) 20px 40px;
    }
    .page-hero-title {
        font-size: 2rem;
    }
    .page-hero-subtitle {
        font-size: 0.95rem;
    }
}

/* ==================== Application Section ==================== */
.apply-section {
    padding: var(--section-padding);
    background-color: var(--off-white);
}

.apply-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: start;
}

.apply-form {
    background: var(--white);
    padding: 36px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group label .required {
    color: var(--primary-color);
}

.form-group label .label-hint {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--text-light);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: var(--transition);
    background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Phone input */
.phone-input-group {
    display: flex;
    gap: 0;
}

.phone-input-group > input[type="tel"] {
    flex: 1;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Phone country code dropdown */
.phone-code-dropdown {
    position: relative;
    flex-shrink: 0;
}

.phone-code-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 10px;
    border: 1.5px solid var(--gray-light);
    border-right: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    background: var(--off-white, #f8f9fa);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text-dark);
    height: 100%;
    transition: var(--transition);
    white-space: nowrap;
}

.phone-code-btn:hover {
    background: #eef0f2;
}

.phone-code-btn:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
    z-index: 2;
}

.phone-code-btn .phone-flag {
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.phone-code-arrow {
    margin-left: 2px;
    flex-shrink: 0;
}

.phone-code-list {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 280px;
    max-height: 320px;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
    flex-direction: column;
}

.phone-code-list.open {
    display: flex;
}

.phone-code-search {
    padding: 10px 12px;
    border: none;
    border-bottom: 1px solid var(--gray-light);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.phone-code-search::placeholder {
    color: #aaa;
}

.phone-code-options {
    overflow-y: auto;
    max-height: 260px;
}

.phone-code-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 0.85rem;
}

.phone-code-option:hover {
    background: #f0f2f5;
}

.phone-code-option.selected {
    background: rgba(var(--primary-rgb), 0.08);
}

.phone-code-option .phone-flag {
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.phone-option-name {
    flex: 1;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.phone-option-code {
    color: var(--text-light);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.phone-code-section-label {
    padding: 6px 12px 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    background: #f8f9fa;
    border-bottom: 1px solid var(--gray-light);
}

/* File upload */
.file-upload-area {
    border: 2px dashed var(--gray-light);
    border-radius: var(--border-radius);
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.file-upload-area:hover,
.file-upload-area.drag-over {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.02);
}

.file-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    color: var(--gray-medium);
}

.file-upload-text {
    font-size: 0.88rem;
    color: var(--text-medium);
    margin-bottom: 4px;
}

.file-upload-text strong {
    color: var(--primary-color);
}

.file-upload-hint {
    font-size: 0.78rem;
    color: var(--text-light);
}

.file-upload-selected {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--off-white);
    border-radius: var(--border-radius);
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-medium);
}

.file-upload-selected.visible {
    display: flex;
}

.file-upload-selected svg {
    width: 16px;
    height: 16px;
    color: #228B22;
    flex-shrink: 0;
}

.file-remove {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.8rem;
    transition: var(--transition);
}

.file-remove:hover {
    color: var(--primary-color);
}

/* Cover letter tabs */
.cover-letter-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 12px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    width: fit-content;
}

.cover-tab {
    padding: 8px 20px;
    border: none;
    background: var(--white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.cover-tab + .cover-tab {
    border-left: 1px solid var(--gray-light);
}

.cover-tab.active {
    background: var(--primary-color);
    color: var(--white);
}

.cover-tab:hover:not(.active) {
    background: var(--off-white);
    color: var(--text-dark);
}

/* Social media platform radios */
.social-platform-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
}

.radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* Form submit */
.form-submit {
    margin-top: 8px;
}

.apply-job-header {
    margin-bottom: 28px;
}

.apply-job-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.apply-job-header .section-divider {
    margin: 12px 0 16px;
}

.apply-job-meta-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 14px 18px;
    background: var(--off-white);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    font-size: 0.88rem;
}

.apply-job-meta-bar .job-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-medium);
}

.apply-job-meta-bar .job-meta-item svg {
    flex-shrink: 0;
    color: var(--text-light);
}

.apply-job-meta-bar .job-badge {
    font-size: 0.75rem;
}

.form-submit .btn {
    width: 100%;
}

.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
}

/* Form success */
.form-success {
    display: none;
    text-align: center;
    padding: 48px 24px;
}

.form-success.visible {
    display: block;
}

.form-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(34, 139, 34, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-success-icon svg {
    width: 32px;
    height: 32px;
    color: #228B22;
}

.form-success h3 {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.form-success p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto;
}

/* Info sidebar */
.apply-info {
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.apply-info-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
    margin-bottom: 24px;
}

.apply-info-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 16px;
}

.info-checklist {
    list-style: none;
}

.info-checklist li {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.88rem;
    color: var(--text-medium);
    line-height: 1.5;
}

.info-checklist li svg {
    width: 18px;
    height: 18px;
    color: #228B22;
    flex-shrink: 0;
    margin-top: 2px;
}

.apply-contact {
    background: var(--gradient-accent);
    padding: 28px;
    border-radius: var(--border-radius-lg);
    color: var(--white);
}

.apply-contact h4 {
    color: var(--white);
    margin-bottom: 12px;
}

.apply-contact p {
    font-size: 0.88rem;
    opacity: 0.9;
    line-height: 1.6;
}

.apply-contact a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 1024px) {
    .apply-layout {
        grid-template-columns: 1fr;
    }
    .apply-info {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .apply-section {
        padding: var(--section-padding-sm);
    }
    .apply-form {
        padding: 24px 20px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .apply-info {
        grid-template-columns: 1fr;
    }
}

/* ==================== Toast Notification ==================== */
.toast {
    position: fixed;
    top: calc(var(--header-height) + 16px);
    right: 24px;
    z-index: 3000;
    min-width: 300px;
    max-width: 420px;
    padding: 16px 20px;
    border-radius: var(--border-radius);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.visible {
    transform: translateX(0);
}

.toast.error {
    border-left-color: var(--primary-color);
}

.toast.success {
    border-left-color: #228B22;
}

.toast-message {
    font-size: 0.88rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1.2rem;
    padding: 0;
    line-height: 1;
    margin-left: auto;
    flex-shrink: 0;
}

/* Additional documents */
.btn-add-doc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.85rem;
    padding: 8px 18px;
}

.extra-doc-row {
    background: var(--off-white);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    padding: 14px;
    margin-bottom: 12px;
}

.extra-doc-row-inner {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 10px;
    align-items: end;
}

.extra-doc-tag {
    padding: 8px 10px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-dark);
    background: var(--white);
    cursor: pointer;
    max-width: 100%;
}

.extra-doc-tag:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.extra-doc-file {
    display: flex;
    align-items: center;
    gap: 8px;
}

.extra-doc-choose {
    font-size: 0.8rem !important;
    padding: 6px 14px !important;
    cursor: pointer;
    flex-shrink: 0;
}

.extra-doc-name {
    font-size: 0.8rem;
    color: var(--text-medium);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.extra-doc-clear {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1.1rem;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
}

.extra-doc-clear:hover {
    color: var(--primary-color);
}

.extra-doc-remove {
    background: none;
    border: 1px solid var(--gray-light);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    flex-shrink: 0;
}

.extra-doc-remove:hover {
    background: #fee;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .extra-doc-row-inner {
        grid-template-columns: 1fr;
    }
}

/* ==================== Position Detail Page ==================== */
.position-detail-section {
    padding: var(--section-padding);
    background-color: var(--off-white);
}

.position-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.position-detail-main {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-light);
    padding: 40px;
}

.position-meta-bar {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-light);
}

.position-meta-inner {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.job-deadline-meta svg,
.job-salary-meta svg {
    width: 16px;
    height: 16px;
}

.salary-currency {
    font-weight: 700;
}

.position-section {
    margin-bottom: 32px;
}

.position-section:last-child {
    margin-bottom: 0;
}

.position-section h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--off-white);
}

.position-section ul {
    padding-left: 20px;
    list-style: disc;
    list-style-position: outside;
    font-size: 0.92rem;
    color: var(--text-medium);
    line-height: 1.8;
}

.position-section ul li {
    margin-bottom: 6px;
}

.position-text {
    font-size: 0.92rem;
    color: var(--text-medium);
    line-height: 1.8;
}

.position-detail-cta {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-light);
}

.position-detail-cta .btn {
    width: 100%;
}

.position-detail-sidebar .apply-info-card,
.position-detail-sidebar .apply-contact {
    margin-bottom: 24px;
}

.position-detail-sidebar .apply-contact {
    margin-bottom: 0;
}

.position-detail-section .loading-state {
    padding: 48px 24px;
    text-align: center;
}

.position-detail-section .loading-state .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

.position-detail-section .loading-state p {
    font-size: 0.95rem;
    color: var(--text-light);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
    .position-detail-layout {
        grid-template-columns: 1fr;
    }
    .position-detail-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .position-detail-section {
        padding: var(--section-padding-sm);
    }
    .position-detail-main {
        padding: 24px 20px;
    }
    .position-detail-sidebar {
        grid-template-columns: 1fr;
    }
    .position-meta-inner {
        flex-direction: column;
        gap: 10px;
    }
}

/* ==================== Thank You Page ==================== */
.thank-you-section {
    padding: var(--section-padding);
    background-color: var(--off-white);
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.thank-you-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-light);
    padding: 48px 40px;
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2e7d32;
}

.thank-you-card h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.thank-you-card p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 12px;
}

.thank-you-note {
    font-size: 0.85rem !important;
    color: var(--text-light) !important;
    max-width: 420px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.thank-you-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .thank-you-section {
        padding: var(--section-padding-sm);
    }
    .thank-you-card {
        padding: 36px 24px;
    }
    .thank-you-card h2 {
        font-size: 1.3rem;
    }
    .thank-you-actions {
        flex-direction: column;
    }
    .thank-you-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
