/* =============================================
   Corizo Careers Page
   ============================================= */

   .careers-page {
    font-family: "DM Sans", sans-serif;
    color: #1a1a1a;
    background: #fff;
}

.careers-page svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.careers-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Hero Section (Figma) ---- */
.careers-hero {
    padding: 36px 0 64px;
    background: #fff;
    overflow: visible;
}

.careers-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: center;
}

.careers-hero-content {
    max-width: 560px;
}

.careers-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f3e8ff;
    color: #6f23a8;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 22px;
}

.careers-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #6f23a8;
    border-radius: 50%;
    flex-shrink: 0;
}

.careers-breadcrumb {
    display: none;
}

.careers-hero h1 {
    font-family: "DM Sans", sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    color: #111;
    margin: 0 0 18px;
    letter-spacing: 2px;
}

body .careers-page .careers-hero h1 .careers-learning,
.careers-hero h1 .careers-learning {
    font-family: "DM Sans", sans-serif !important;
    font-style: normal !important;
    font-weight: 700 !important;
    color: #6f23a8 !important;
}

.careers-hero-desc {
    font-size: 16px;
    line-height: 1.7;
    color: #6b7280;
    margin: 0 0 28px;
    max-width: 480px;
}

.careers-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #6f23a8;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 24px;
    border-radius: 100px;
    text-decoration: none !important;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
    margin: 0 0 36px;
    line-height: 1;
}

.careers-cta-btn:hover {
    background: #5a1c8a;
    color: #fff !important;
    text-decoration: none !important;
}

.careers-cta-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Stats: icon | number above label  — left column only */
.careers-page .careers-stats-row,
.careers-hero-content .careers-stats-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 28px !important;
    padding-top: 0;
    margin: 0;
    border: 0;
    width: 100%;
    max-width: none;
}

.careers-page .careers-stat-item,
.careers-hero-content .careers-stat-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 0 0 auto !important;
    min-width: 0;
    width: auto !important;
}

.careers-stat-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
    flex-shrink: 0;
    line-height: 0;
    width: 22px;
    height: 22px;
}

.careers-page .careers-stat-text,
.careers-hero-content .careers-stat-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 1px !important;
    min-width: 0;
}

.careers-page .careers-stat-value,
.careers-hero-content .careers-stat-value {
    display: block !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #111 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

.careers-page .careers-stat-label,
.careers-hero-content .careers-stat-label {
    display: block !important;
    font-size: 13px !important;
    color: #9ca3af !important;
    line-height: 1.3 !important;
    font-weight: 400 !important;
    margin: 0 !important;
    white-space: nowrap;
}

.careers-hero-visual {
    position: relative;
    isolation: isolate;
}

.careers-hero-visual::before {
    content: "";
    position: absolute;
    top: -48px;
    right: -48px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(111, 35, 168, 0.22) 0%, rgba(111, 35, 168, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.careers-hero-img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 5 / 4;
    background: #efe6f6;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
}

.careers-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.careers-hero-placeholder {
    width: 100%;
    height: 100%;
    min-height: 340px;
    background: #efe6f6;
    border-radius: 24px;
}

body .careers-page .careers-glassdoor-card,
.careers-hero-visual .careers-glassdoor-card {
    position: absolute !important;
    z-index: 6 !important;
    left: -24px !important;
    bottom: -18px !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    float: none !important;
    background: #fff !important;
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.14);
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px;
    width: max-content;
    max-width: 260px;
    margin: 0 !important;
}

.careers-glassdoor-card .glassdoor-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, #c084fc 0%, #7c3aed 50%, #6f23a8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}

.careers-glassdoor-card .glassdoor-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.careers-glassdoor-card .glassdoor-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0 !important;
    line-height: 1.3;
}

.careers-glassdoor-card .glassdoor-sub {
    font-size: 12px;
    color: #9ca3af;
    margin: 0 !important;
    line-height: 1.3;
    font-weight: 400;
}

/* ---- Open Positions ---- */
.careers-positions {
    padding: 48px 0 56px;
    border-top: 1px solid #f0f0f0;
}

.careers-positions-header {
    margin-bottom: 28px;
}

.careers-positions-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #111;
    margin: 0 0 6px;
}

.careers-positions-header p {
    font-size: 14px;
    color: #9ca3af;
    margin: 0;
}

/* Filter Tabs */
.careers-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.careers-filter-btn {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    background: #fff;
    color: #4b5563;
    transition: all 0.2s ease;
}

.careers-filter-btn .filter-count {
    font-weight: 600;
}

.careers-filter-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.careers-filter-btn.active {
    background: #6f23a8;
    border-color: #6f23a8;
    color: #fff;
}

/* Job Grid */
.careers-jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.careers-job-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px 24px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    cursor: pointer;
}

.careers-job-card:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
    text-decoration: none;
    color: inherit;
}

.careers-job-card.hidden {
    display: none;
}

.careers-job-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.careers-job-tags {
    display: flex;
    align-items: center;
    gap: 8px;
}

.careers-job-dept {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.careers-job-dept.engineering { background: #dbeafe; color: #1d4ed8; }
.careers-job-dept.product { background: #ffedd5; color: #c2410c; }
.careers-job-dept.marketing { background: #fce7f3; color: #be185d; }
.careers-job-dept.education { background: #d1fae5; color: #047857; }
.careers-job-dept.operations { background: #e0e7ff; color: #4338ca; }
.careers-job-dept.hr { background: #f3e8ff; color: #7e22ce; }
.careers-job-dept.inside-sales { background: #fef3c7; color: #b45309; }

.careers-job-type {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
}

.careers-job-type.is-hybrid {
    color: #6f23a8;
    background: #f3e8ff;
}

.careers-job-type.is-hybrid::before {
    content: "• ";
}

.careers-job-type.is-onsite {
    color: #6b7280;
    background: #f3f4f6;
}

.careers-job-type.is-onsite::before {
    content: "• ";
}

.careers-job-arrow {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #9ca3af !important;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    line-height: 0;
    opacity: 1 !important;
    visibility: visible !important;
}

.careers-job-arrow svg {
    display: block !important;
    width: 14px;
    height: 14px;
    opacity: 1 !important;
    visibility: visible !important;
}

.careers-job-card:hover .careers-job-arrow {
    background: #f3e8ff;
    border-color: #d8b4fe;
    color: #6f23a8 !important;
}

.careers-job-heading {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px;
    line-height: 1.3;
}

.careers-job-desc {
    font-size: 14px;
    line-height: 1.55;
    color: #6b7280;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.careers-job-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #9ca3af;
}

.careers-job-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.careers-job-meta i {
    font-size: 12px;
    display: inline-block;
    width: 14px;
    text-align: center;
}

.careers-page .fa-solid,
.careers-page .fa-regular,
.careers-page .fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-style: normal;
    display: inline-block;
    line-height: 1;
}

.careers-page .fa-regular {
    font-weight: 400 !important;
}

.careers-page .fa-solid {
    font-weight: 900 !important;
}

/* ---- Bottom CTA ---- */
.careers-bottom-cta {
    padding: 0 0 80px;
}

.careers-bottom-cta-inner {
    background: linear-gradient(90deg, #0d0618 0%, #1a0a32 35%, #6f23a8 100%);
    border-radius: 24px;
    padding: 48px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.careers-bottom-cta-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 12px;
}

.careers-bottom-cta h2 {
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.2;
}

.careers-bottom-cta p {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    max-width: 520px;
}

.careers-touch-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #6f23a8;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
}

.careers-touch-btn:hover {
    background: #f9f5ff;
    color: #5a1c8a;
    text-decoration: none;
}

.careers-touch-btn svg {
    width: 18px;
    height: 18px;
    stroke: #6f23a8;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .careers-hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .careers-hero h1 {
        font-size: 36px;
    }

    .careers-hero-content .careers-stats-row {
        flex-wrap: wrap !important;
        gap: 20px 24px !important;
    }

    .careers-stat-item {
        flex: 0 1 auto !important;
    }

    .careers-jobs-grid {
        grid-template-columns: 1fr;
    }

    .careers-bottom-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 36px 32px;
    }
}

@media (max-width: 576px) {
    .careers-hero {
        padding: 32px 0 24px;
    }

    .careers-hero h1 {
        font-size: 28px;
    }

    .careers-hero-content .careers-stats-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .careers-stat-item {
        flex: none;
        width: 100%;
    }

    .careers-positions-header h2 {
        font-size: 26px;
    }

    .careers-bottom-cta h2 {
        font-size: 24px;
    }

    .careers-bottom-cta-inner {
        padding: 28px 24px;
    }

    .careers-filters {
        gap: 6px;
    }

    .careers-filter-btn {
        font-size: 13px;
        padding: 7px 14px;
    }
}

/* Footer app store badges — ensure Apple badge displays correctly */
.site-footer .ftr-apps ul {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-footer .ftr-apps ul li img {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* ---- Job apply popup (Figma) ---- */
.crz-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(17, 24, 39, 0.5);
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
}

.crz-modal-overlay.is-open {
    display: flex;
}

.crz-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px 28px 28px;
    box-shadow: 0 24px 64px rgba(17, 24, 39, 0.2);
    position: relative;
    font-family: "DM Sans", sans-serif;
}

.crz-modal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.crz-modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f3e8ff;
    color: #6f23a8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crz-icon-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent !important;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: none !important;
    transform: none !important;
    appearance: none;
    -webkit-appearance: none;
}

.crz-icon-btn:hover,
.crz-icon-btn:focus,
.crz-icon-btn:active {
    background: transparent !important;
    color: #111827;
    box-shadow: none !important;
    transform: none !important;
    outline: none;
}

.crz-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: none;
    background: none;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.crz-back:hover {
    color: #111;
}

.crz-details-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.crz-dept-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: #dbeafe;
    color: #1d4ed8;
}

.crz-dept-badge.product { background: #ffedd5; color: #c2410c; }
.crz-dept-badge.marketing { background: #fce7f3; color: #be185d; }
.crz-dept-badge.education { background: #d1fae5; color: #047857; }
.crz-dept-badge.operations { background: #e0e7ff; color: #4338ca; }
.crz-dept-badge.general { background: #f3e8ff; color: #6f23a8; }

.crz-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #6f23a8;
    background: #f3e8ff;
    padding: 4px 10px;
    border-radius: 999px;
}

.crz-type-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6f23a8;
}

.crz-details-title,
.crz-form-title {
    font-size: 26px;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px;
    line-height: 1.25;
}

.crz-details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 22px;
}

.crz-details-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.crz-details-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px;
}

.crz-details-body p {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 18px;
}

.crz-view[hidden] {
    display: none !important;
}

.crz-details-body ul {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.crz-details-body li {
    position: relative;
    padding-left: 16px;
    font-size: 14px;
    line-height: 1.55;
    color: #4b5563;
    margin-bottom: 8px;
}

.crz-details-body li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c4b5d4;
}

.crz-offers {
    background: #f6f0fb;
    border-radius: 14px;
    padding: 16px 18px;
    margin: 8px 0 20px;
}

.crz-offers-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6f23a8;
    margin: 0 0 10px;
}

.crz-offers ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.crz-offers li {
    position: relative;
    padding-left: 26px;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
    line-height: 1.4;
}

.crz-offers li:last-child {
    margin-bottom: 0;
}

.crz-offers li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #6f23a8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/10px no-repeat;
}

.crz-primary-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #6f23a8;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: "DM Sans", sans-serif;
}

.crz-primary-btn:hover {
    background: #5a1c8a;
}

.crz-primary-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.crz-form-sub {
    font-size: 14px;
    color: #9ca3af;
    margin: 0 0 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.crz-apply-form {
    padding-top: 4px;
}

.crz-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.crz-field {
    margin-bottom: 14px;
}

.crz-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.crz-field .required {
    color: #dc2626;
}

.crz-field .opt {
    font-weight: 400;
    color: #9ca3af;
}

.crz-field input,
.crz-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-family: "DM Sans", sans-serif;
    color: #111;
    box-sizing: border-box;
}

.crz-field input:focus,
.crz-field textarea:focus {
    outline: none;
    border-color: #6f23a8;
}

.crz-field textarea {
    resize: vertical;
    min-height: 96px;
}

.crz-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1.5px dashed #d1d5db;
    border-radius: 12px;
    padding: 22px 16px;
    cursor: pointer;
    color: #6b7280;
    text-align: center;
}

.crz-upload:hover,
.crz-upload.has-file {
    border-color: #6f23a8;
    background: #faf5ff;
}

.crz-upload input {
    display: none;
}

.crz-upload-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.crz-upload-hint {
    font-size: 12px;
    color: #9ca3af;
}

.crz-form-note {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin: 12px 0 0;
}

.careers-form-error {
    color: #dc2626;
    font-size: 13px;
    margin-bottom: 12px;
    display: none;
}

.careers-form-success {
    display: none;
    background: #f0fdf4;
    color: #166534;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
}

.careers-form-success.show {
    display: block;
}

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

    .crz-details-title,
    .crz-form-title {
        font-size: 22px;
    }
}
