/* ── Careers Page ─────────────────────────────────────────── */

/* ── Hero ──────────────────────────────────────────────────── */
.cr-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.cr-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
}

.cr-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15,23,42,0.88) 0%, rgba(15,23,42,0.6) 45%, rgba(15,23,42,0.2) 80%, transparent 100%);
    z-index: 1;
}

.cr-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 80px 24px 80px 56px;
}

.cr-hero-inner { max-width: 560px; }

.cr-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.cr-hero-title {
    font-size: 56px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin: 0 0 18px;
}

.cr-hero-gradient {
    background: linear-gradient(to right, #7dd3fc, #86efac);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cr-hero-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.82);
    line-height: 1.7;
    margin: 0;
    max-width: 480px;
}

/* ── Body Section ──────────────────────────────────────────── */
.cr-body-section {
    padding: 80px 0 96px;
    background: #f8fafc;
}

/* ── Section Header ────────────────────────────────────────── */
.cr-section-header {
    margin-bottom: 56px;
    text-align: center;
}

.cr-section-title {
    font-size: 40px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px;
}

.cr-section-subtitle {
    font-size: 16px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Job Cards Grid ────────────────────────────────────────── */
.cr-jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 80px;
}

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

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

.cr-job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.cr-job-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.cr-job-type {
    display: inline-block;
    background: linear-gradient(135deg, rgba(40,140,203,0.1), rgba(73,166,68,0.1));
    color: #288CCB;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.cr-job-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.cr-job-location,
.cr-job-salary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

.cr-job-location svg,
.cr-job-salary svg {
    width: 16px;
    height: 16px;
    color: #288CCB;
    flex-shrink: 0;
}

.cr-job-description {
    font-size: 15px;
    color: #475569;
    line-height: 1.8;
    margin: 0 0 20px;
}

.cr-job-requirements {
    background: #f8fafc;
    border-left: 3px solid #288CCB;
    padding: 16px;
    border-radius: 8px;
}

.cr-req-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin: 0 0 10px;
}

.cr-req-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cr-req-list li {
    position: relative;
    padding-left: 18px;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 4px;
}

.cr-req-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #288CCB;
    font-weight: bold;
}

/* ── CTA Section ───────────────────────────────────────────── */
.cr-cta-section {
    margin-bottom: 80px;
    padding: 0 24px;
}

.cr-cta-box {
    background: linear-gradient(135deg, rgba(40,140,203,0.08), rgba(73,166,68,0.08));
    border: 1px solid rgba(40,140,203,0.2);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cr-cta-icon {
    width: 48px;
    height: 48px;
    color: #288CCB;
}

.cr-cta-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.cr-cta-text {
    font-size: 15px;
    color: #64748b;
    margin: 0;
    max-width: 500px;
    line-height: 1.7;
}

/* ── Form Section ──────────────────────────────────────────── */
.cr-form-section {
    padding: 0 24px;
}

.cr-form-container {
    max-width: 700px;
    margin: 0 auto;
}

.cr-form-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    text-align: center;
}

.cr-form-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0 0 40px;
    text-align: center;
    line-height: 1.6;
}

.cr-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cr-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cr-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cr-form-row:last-of-type {
    grid-template-columns: 1fr;
}

.cr-label {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.cr-required {
    color: #ef4444;
}

.cr-input,
.cr-select {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #ffffff;
}

.cr-input:focus,
.cr-select:focus {
    outline: none;
    border-color: #288CCB;
    box-shadow: 0 0 0 3px rgba(40,140,203,0.1);
}

.cr-input::placeholder {
    color: #94a3b8;
}

/* ── intl-tel-input overrides ──────────────────────────────── */
.cr-form-group--phone .iti {
    width: 100%;
}
.cr-form-group--phone .iti__selected-flag {
    border-radius: 8px 0 0 8px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 0 10px 0 12px;
}
.cr-form-group--phone .iti__flag-container:hover .iti__selected-flag,
.cr-form-group--phone .iti__selected-flag:focus {
    background: #f1f5f9;
}
.cr-form-group--phone input.cr-input {
    width: 100%;
    padding-left: 16px;
}

.cr-select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23288CCB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

/* ── File Input ────────────────────────────────────────────── */
.cr-file-input-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.cr-file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 10;
}

.cr-file-input-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.cr-file-input:hover ~ .cr-file-input-display,
.cr-file-input-display:hover {
    background: rgba(40,140,203,0.04);
    border-color: #288CCB;
}

.cr-file-input-display svg {
    width: 24px;
    height: 24px;
    color: #288CCB;
}

.cr-file-text {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.cr-file-text.cr-file-selected {
    color: #288CCB;
}

.cr-file-hint {
    font-size: 12px;
    color: #94a3b8;
}

/* ── Submit Button ─────────────────────────────────────────── */
.cr-submit-btn {
    background: linear-gradient(to right, #288CCB, #49A644);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.cr-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.cr-submit-btn:active {
    transform: translateY(0);
}

/* ── Error Message ─────────────────────────────────────────── */
.cr-error {
    display: block;
    font-size: 12px;
    color: #ef4444;
    min-height: 16px;
}

/* ── Form Message ──────────────────────────────────────────── */
.cr-form-message {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    margin-top: -8px;
}

.cr-form-message svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cr-form-message--success {
    background: linear-gradient(135deg, rgba(34,197,94,0.1), rgba(59,130,246,0.1));
    border: 1px solid rgba(34,197,94,0.2);
    color: #16a34a;
}

.cr-form-message--success svg {
    color: #16a34a;
}

.cr-form-message--error {
    background: linear-gradient(135deg, rgba(239,68,68,0.1), rgba(249,115,22,0.1));
    border: 1px solid rgba(239,68,68,0.2);
    color: #dc2626;
}

.cr-form-message--error svg {
    color: #dc2626;
}

.cr-form-message strong {
    font-weight: 700;
}

.cr-form-message p {
    font-size: 14px;
    line-height: 1.6;
    margin: 4px 0 0;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .cr-hero-title { font-size: 40px; }
    .cr-hero-content { padding: 60px 24px; }
    .cr-jobs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .cr-body-section { padding: 60px 0 80px; }
    .cr-hero { min-height: 360px; }
    .cr-hero-content { padding: 40px 20px; }
    .cr-hero-title { font-size: 32px; }
    .cr-hero-subtitle { font-size: 14px; }
    .cr-section-title { font-size: 28px; }
    .cr-job-card { padding: 24px; }
    .cr-form-row { grid-template-columns: 1fr; }
    .cr-cta-box { padding: 32px; }
    .cr-form-title { font-size: 24px; }
}

@media (max-width: 480px) {
    .cr-body-section { padding: 40px 0 60px; }
    .cr-hero-content { padding: 30px 16px; }
    .cr-hero-title { font-size: 24px; }
    .cr-section-title { font-size: 20px; }
    .cr-section-subtitle { font-size: 14px; }
    .cr-job-card { padding: 16px; }
    .cr-job-title { font-size: 18px; }
    .cr-file-input-display { padding: 24px 16px; }
}
