/* Careers page (careers.html + ar/careers.html). Uses the site tokens from styles.css. */
.cr-hero {
    padding: 150px 20px 80px;
    text-align: center;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(30, 94, 158, 0.35), transparent 60%),
        radial-gradient(ellipse at 85% 100%, rgba(76, 174, 76, 0.18), transparent 55%),
        var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
}
.cr-hero .cr-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}
.cr-hero .cr-badge i { color: var(--accent); }
.cr-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.2;
    max-width: 820px;
    margin: 0 auto 18px;
}
.cr-hero h1 span {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.cr-hero p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 660px;
    margin: 0 auto 32px;
}
.cr-section { padding: 90px 0; }
.cr-section.alt { background: var(--bg-darker); }
.cr-section h2 {
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
    text-align: center;
    margin-bottom: 12px;
}
.cr-section .cr-lead {
    text-align: center;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 48px;
}
.cr-why {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.cr-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 30px 26px;
}
.cr-card .cr-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    margin-bottom: 18px;
}
.cr-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.cr-card p { color: var(--text-secondary); font-size: 0.97rem; line-height: 1.7; }
.cr-fields {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}
.cr-fields li {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 500;
}
.cr-fields li i { color: var(--primary-light); }

/* Apply */
.cr-apply {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 50px;
    align-items: start;
}
.cr-steps { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 18px; }
.cr-steps li { display: flex; gap: 16px; align-items: flex-start; color: var(--text-secondary); }
.cr-steps li b { color: var(--text-primary); display: block; margin-bottom: 2px; }
.cr-steps .n {
    flex: 0 0 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: rgba(30, 94, 158, 0.25);
    border: 1px solid var(--primary);
    color: #fff;
}
.cr-apply-info h2, .cr-apply-info .cr-lead { text-align: start; margin-inline: 0; }
.cr-mail {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}
.cr-mail a { color: var(--primary-light); font-weight: 600; }
.cr-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
}
.cr-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.cr-form .full { grid-column: 1 / -1; }
.cr-field label {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.cr-field label .opt { color: var(--text-muted); font-weight: 400; }
.cr-field input,
.cr-field select,
.cr-field textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-darker);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color .2s, box-shadow .2s;
}
.cr-field select option { background: #12121f; color: #fff; }
.cr-field textarea { resize: vertical; min-height: 110px; }
.cr-field input:focus,
.cr-field select:focus,
.cr-field textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(58, 123, 200, 0.25);
}
.cr-field input[type="tel"], .cr-field input[type="email"], .cr-field input[type="url"] { direction: ltr; }
[dir="rtl"] .cr-field input[type="tel"],
[dir="rtl"] .cr-field input[type="email"],
[dir="rtl"] .cr-field input[type="url"] { text-align: right; }

/* CV drop zone */
.cr-drop {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border: 2px dashed var(--border-light);
    border-radius: 14px;
    background: var(--bg-darker);
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.cr-drop:hover, .cr-drop.drag { border-color: var(--primary-light); background: rgba(30, 94, 158, 0.08); }
.cr-drop.has-file { border-style: solid; border-color: var(--accent); }
.cr-drop input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.cr-drop .ico {
    flex: 0 0 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    background: rgba(30, 94, 158, 0.25);
    color: #fff;
}
.cr-drop.has-file .ico { background: rgba(76, 174, 76, 0.3); }
.cr-drop .txt b { display: block; color: var(--text-primary); word-break: break-all; }
.cr-drop .txt span { color: var(--text-muted); font-size: 0.88rem; }
.cr-drop:focus-within { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(58, 123, 200, 0.25); }

.cr-consent { display: flex; gap: 12px; align-items: flex-start; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; }
.cr-consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; }
.cr-consent a { color: var(--primary-light); }
.cr-form .btn { justify-content: center; width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.cr-form .btn[disabled] { opacity: .65; cursor: wait; transform: none; box-shadow: none; }
.cr-status { min-height: 1.4em; font-size: 0.95rem; }
.cr-status.err { color: #f87171; }
.cr-status.ok { color: var(--accent-light); }
.cr-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.cr-success { display: none; text-align: center; padding: 30px 10px; }
.cr-success.show { display: block; }
.cr-success .big {
    width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%;
    display: grid; place-items: center; font-size: 2rem; color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}
.cr-success h3 { font-size: 1.5rem; margin-bottom: 10px; }
.cr-success p { color: var(--text-secondary); }

.cr-footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-bottom: 10px; }
.cr-footer-links a { color: var(--text-secondary); }
.cr-footer-links a:hover { color: var(--text-primary); }

@media (max-width: 900px) {
    .cr-apply { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 600px) {
    .cr-hero { padding: 120px 16px 60px; }
    .cr-section { padding: 64px 0; }
    .cr-form-wrap { padding: 24px 18px; }
    .cr-form { grid-template-columns: 1fr; }
}
