/* --- CV GÖNDƏR SƏHİFƏSİ --- */
.cv-page {
    padding: 160px 0 100px 0;
    min-height: 100vh;
    width: 100%;
    background: var(--hero-bg);
    background-attachment: fixed;
    transition: background 0.4s ease;
}

.cv-container {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 95%;
    padding: 0;
}

/* Başlıq */
.cv-hero {
    text-align: center;
    margin-bottom: 60px;
}

.cv-hero h1 {
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.cv-hero p {
    font-size: clamp(16px, 1.5vw, 20px);
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

/* İki sütun: sol proses izahı, sağ form kartı */
.cv-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(340px, 1.5fr);
    gap: 30px;
    align-items: start;
}

.cv-info h2,
.cv-form-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 24px;
}

/* Sol: Necə İşləyir addımları */
.cv-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.cv-steps li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.cv-step-number {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(217, 119, 66, 0.15);
    color: #d97742;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-step-text {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    padding-top: 3px;
}

.cv-privacy-note {
    font-size: 12.5px;
    color: var(--text-muted);
    opacity: 0.75;
    line-height: 1.6;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

/* Sağ: Form (.form-row/.form-group/.form-note/.botcheck-field ortaq
   qaydalar kimi global.css-də təyin olunub) */
.cv-form-card form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cv-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
    cursor: pointer;
}

.cv-consent input {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #d97742;
    cursor: pointer;
}

.cv-consent.invalid {
    color: #e5484d;
}

.cv-consent.invalid input {
    outline: 2px solid #e5484d;
    outline-offset: 2px;
    border-radius: 2px;
}

.cv-form-card .btn-primary {
    align-self: flex-start;
}

/* --- Vakansiyaya müraciət rejimi (?company=&vacancy= ilə gəlinəndə, js/cv.js) --- */
.cv-form-card .form-group[hidden] {
    display: none;
}

/* Hansı vakansiyaya müraciət edildiyini göstərən kart */
.cv-apply-target {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    margin-bottom: 22px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    border-left: 3px solid #d97742;
    background: var(--card-hover);
}

.cv-apply-target[hidden] {
    display: none;
}

.cv-apply-icon {
    flex-shrink: 0;
    /* Vakansiya siyahısı/detalındakı .vacancy-logo ilə eyni dil: parlaq narıncı
       dairə əvəzinə sakit neytral qutu + incə xətli bina ikonu (real logo
       gələndə burada şirkət loqosu olacaq) */
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-apply-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cv-apply-label {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #d97742;
}

.cv-apply-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-color);
    overflow-wrap: anywhere;
}

.cv-apply-company {
    font-size: 13.5px;
    color: var(--text-muted);
}

/* CV + Motivasiya məktubu yan-yana; fayl inputunun öz eni sütunu şişirtməsin */
.cv-files-row .form-group {
    min-width: 0;
}

/* Vəzifə sahəsi gizlənəndə telefon tam eni tutsun */
.cv-apply-mode .cv-row-phone {
    grid-template-columns: 1fr;
}

/* --- MOBİL VƏ PLANŞET --- */
@media (max-width: 1024px) {
    .cv-page {
        padding: 140px 0 80px 0;
    }
}

@media (max-width: 900px) {
    .cv-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cv-page {
        padding-top: 150px;
    }
    .cv-hero {
        margin-bottom: 40px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Vakansiyadan gələndə şirkətin real loqosu (?logo=logos/...) bina ikonunun yerinə oturur —
   vakansiya kartındakı .vacancy-logo ilə eyni qayda: dairə, şəkil dairəni tam doldurur (boşluqsuz, cover); logos/*.svg isə artıq özü dairədir. */
.cv-apply-icon {
    overflow: hidden;
}

.cv-apply-icon.has-logo {
    background: #ffffff;
}

.cv-apply-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    box-sizing: border-box;
}

.cv-apply-icon img[src$=".svg"] {
    padding: 0;
}
