/* ============================================================
   KVKK ONAY KUTUSU — tüm formlarda ortak
   Renkleri form kapsayıcısından miras alır; hem açık hem koyu
   zeminli formlarda okunur kalır.
   ============================================================ */
/* Dış kapsayıcı blok: hata mesajı onay satırının altına, tam genişlikte iner
   ve hiçbir koşulda etiketin genişliğini etkilemez. */
.kvkk-consent {
    display: block;
    margin: 14px 0 18px;
    text-align: left;
}

.kvkk-consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.kvkk-consent-box {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: #45BDB5;
    cursor: pointer;
}

.kvkk-consent-label {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: inherit;
    opacity: 0.82;
    cursor: pointer;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.kvkk-consent-label a {
    color: #45BDB5;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.kvkk-consent-label a:hover { color: #2E9990; }

.kvkk-consent-req {
    color: #e53e3e;
    margin-left: 2px;
}

/* Hata durumu */
.kvkk-consent.is-invalid .kvkk-consent-box {
    outline: 2px solid #e53e3e;
    outline-offset: 2px;
    border-radius: 3px;
}

/* Hata mesajı: her zaman kendi tam genişlikli satırında, yumuşak uyarı bloğu */
.kvkk-consent-error {
    display: block;
    margin: 8px 0 0;
    padding: 8px 11px;
    border-radius: 6px;
    border-left: 3px solid #e53e3e;
    background: rgba(229, 62, 62, 0.08);
    color: #c53030;
    font-size: 12.5px;
    line-height: 1.45;
}

/* ── Zemin bazlı renk düzeltmeleri ───────────────────────────
   inherit her formda doğru sonuç vermiyor; kapsayıcıya göre
   açık/koyu metin rengi burada sabitlenir.
   ------------------------------------------------------------ */

/* Koyu zeminli formlar: hero danışma formu, ana sayfa consultation */
.td-hero-form-wrap .kvkk-consent-label,
.consultation-form .kvkk-consent-label {
    color: rgba(255, 255, 255, 0.72);
    opacity: 1;
}

/* Açık zeminli formlar: iletişim kartı, modal sağ panel, medikal form */
.ct-form-card .kvkk-consent-label,
.cmodal-right .kvkk-consent-label,
.cf-card .kvkk-consent-label {
    color: #4a5568;
    opacity: 1;
}

/* Medikal formdaki diğer onay kutularıyla aynı üst boşluk */
.cf-card .kvkk-consent {
    margin-top: 4px;
}

/* Koyu zeminli formlarda uyarı bloğu */
.td-hero-form-wrap .kvkk-consent-error,
.consultation-form .kvkk-consent-error {
    background: rgba(229, 62, 62, 0.16);
    color: #ff9a9a;
}
