/**
 * Careers Page & Job Application System Styles
 * Improx Group Custom Theme
 */

/* ── Hero Section ── */
.cr-hero {
    position: relative;
    padding: 7rem 0 5rem;
    background: linear-gradient(135deg, #0b0f19 0%, #111827 50%, #1e1b4b 100%);
    color: #ffffff;
    overflow: hidden;
}

.cr-hero__bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 70% 30%, rgba(0, 87, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.cr-hero__inner {
    max-width: 840px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cr-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.875rem;
    font-weight: 500;
    color: #93c5fd;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.cr-hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.cr-hero__title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cr-hero__desc {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 2.5rem;
}

.cr-hero__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Stats Strip ── */
.cr-stats {
    background: #0f172a;
    border-y: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem 0;
}

.cr-stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.cr-stat-card strong {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #0057FF;
    line-height: 1.1;
}

.cr-stat-card span {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* ── Common Section Headings ── */
.cr-section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.cr-section-head .eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #0057FF;
    margin-bottom: 0.5rem;
}

.cr-section-head h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.cr-section-head p {
    font-size: 1.1rem;
    color: #64748b;
}

/* ── Culture & Values ── */
.cr-values {
    padding: 5rem 0;
    background: #f8fafc;
}

.cr-values__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.cr-value-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cr-value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.08);
}

.cr-value-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 87, 255, 0.1);
    color: #0057FF;
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
}

.cr-value-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.cr-value-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

/* ── Benefits Section ── */
.cr-benefits {
    padding: 5rem 0;
    background: #ffffff;
}

.cr-benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.cr-benefit-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.cr-benefit-card__check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.cr-benefit-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.cr-benefit-card p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* ── Open Jobs Section ── */
.cr-jobs {
    padding: 5rem 0;
    background: #f8fafc;
}

.cr-jobs__filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.cr-filter-btn {
    padding: 8px 18px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cr-filter-btn:hover,
.cr-filter-btn.active {
    background: #0057FF;
    border-color: #0057FF;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 87, 255, 0.25);
}

/* Job Cards & Accordion */
.cr-jobs__accordion {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 960px;
    margin: 0 auto;
}

.cr-job-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cr-job-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.06);
}

.cr-job-card__header {
    padding: 2rem;
}

.cr-job-card__meta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0.85rem;
}

.cr-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cr-badge--dept {
    background: rgba(0, 87, 255, 0.1);
    color: #0057FF;
}

.cr-badge--loc {
    background: #f1f5f9;
    color: #475569;
}

.cr-badge--type {
    background: #ecfdf5;
    color: #059669;
}

.cr-badge--exp {
    background: #fef3c7;
    color: #d97706;
}

.cr-job-card__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.cr-job-card__excerpt {
    font-size: 0.98rem;
    color: #64748b;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.cr-job-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cr-job-card__toggle {
    background: none;
    border: none;
    color: #0057FF;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cr-job-card__toggle:hover {
    text-decoration: underline;
}

.cr-job-card__body {
    border-top: 1px solid #f1f5f9;
    padding: 2rem;
    background: #fafafa;
}

.cr-job-card__content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 1.25rem 0 0.5rem;
}

.cr-job-card__content ul {
    padding-left: 1.25rem;
    color: #475569;
    font-size: 0.95rem;
}

.cr-job-card__apply-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* Spontaneous Banner */
.cr-spontaneous-banner {
    max-width: 960px;
    margin: 3rem auto 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 16px;
    padding: 2.5rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cr-spontaneous-banner h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.cr-spontaneous-banner p {
    color: #94a3b8;
    margin: 0;
    font-size: 0.95rem;
}

/* ── Modal Application Form ── */
.cr-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cr-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.cr-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
}

.cr-modal__container {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 2;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.cr-modal.is-open .cr-modal__container {
    transform: translateY(0);
}

.cr-modal__close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.cr-modal__close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.cr-modal__header {
    margin-bottom: 2rem;
}

.cr-modal__header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.cr-modal__header p {
    color: #64748b;
    font-size: 0.95rem;
}

/* Form Styles */
.cr-form__group {
    margin-bottom: 1.25rem;
}

.cr-form__group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

.cr-form__group label .required {
    color: #ef4444;
}

.cr-form__group input,
.cr-form__group select,
.cr-form__group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #0f172a;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cr-form__group input:focus,
.cr-form__group select:focus,
.cr-form__group textarea:focus {
    outline: none;
    border-color: #0057FF;
    box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.15);
}

.cr-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .cr-form__row {
        grid-template-columns: 1fr;
    }
}

/* File Dropzone */
.cr-file-dropzone {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.cr-file-dropzone:hover,
.cr-file-dropzone.is-dragover {
    border-color: #0057FF;
    background: rgba(0, 87, 255, 0.03);
}

.cr-file-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.cr-file-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.cr-file-text {
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 0.25rem;
}

.cr-file-hint {
    font-size: 0.8rem;
    color: #94a3b8;
    display: block;
}

.cr-file-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1px solid #0057FF;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #0057FF;
    font-weight: 500;
}

.cr-file-preview__remove {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
}

/* Alert Callouts */
.cr-alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-size: 0.925rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.cr-alert--success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.cr-alert--error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Button Utilities */
.btn-block {
    width: 100%;
}
