/**
 * FDS Claim — Sahiplenme butonu + modal
 * Editorial dil ile uyumlu (koyu ink + kırmızı accent).
 */

:root {
    --fds-red: #dc2626;
    --fds-red-dark: #991b1b;
    --fds-red-soft: #fef2f2;
    --fds-ink: #0d0c22;
    --fds-muted: #6b7280;
    --fds-line: #e5e7eb;
}

/* =========================================================
   SAĞ SIDEBAR — Birleşik Kart Düzeni
   Contact + Claim tek bir visual kart olarak birleştirilir.
   Sticky + max-height ile asla ekrandan taşmaz.
   ========================================================= */

.fds-sidebar-sticky-wrap {
    position: sticky;
    top: 78px;
    align-self: flex-start;
    width: 100%;
    overflow: visible;

    /* Tek kart görünümü */
    background: #fff;
    border: 1px solid var(--fds-line);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(13, 12, 34, .04);
    display: flex;
    flex-direction: column;
}

/* İçerideki contact-card'ı bu wrapper'a uyduralım */
.fds-sidebar-sticky-wrap .firm-info-card.contact-card {
    position: static !important;
    top: auto !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 16px 20px 14px !important;
}

.fds-sidebar-sticky-wrap .firm-info-card.contact-card .info-item {
    padding: 8px 0 !important;
}

/* Claim bölümü — contact altında kesik çizgi ile ayrılır, daha kompakt */
.fds-sidebar-sticky-wrap .fds-sidebar-claim {
    margin: 0 !important;
    border-top: 1px solid var(--fds-line);
    background: #fafafa;
}
.fds-sidebar-sticky-wrap .fds-sidebar-claim-inner {
    border: 0 !important;
    border-top: 0 !important;
    background: transparent !important;
    padding: 20px 22px 22px !important;
    border-radius: 0 !important;
    position: relative;
}
.fds-sidebar-sticky-wrap .fds-sidebar-claim-inner::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 0;
    width: 28px;
    height: 2px;
    background: var(--fds-red);
}

.fds-sidebar-sticky-wrap .fds-sidebar-claim-eyebrow {
    font-size: .66rem;
    letter-spacing: .2em;
    margin-bottom: 8px;
}
.fds-sidebar-sticky-wrap .fds-sidebar-claim-eyebrow::before { display: none; }
.fds-sidebar-sticky-wrap .fds-sidebar-claim-title {
    font-size: 1rem;
    margin: 0 0 8px;
}
.fds-sidebar-sticky-wrap .fds-sidebar-claim-desc {
    font-size: .82rem;
    line-height: 1.55;
    margin: 0 0 14px;
}
.fds-sidebar-sticky-wrap .fds-sidebar-claim-btn {
    padding: 11px 16px;
    font-size: .72rem;
    letter-spacing: .12em;
}

/* Contact card içindeki info-item'lar — daha kompakt */
.fds-sidebar-sticky-wrap .firm-info-card.contact-card .info-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--fds-line);
}
.fds-sidebar-sticky-wrap .firm-info-card.contact-card .info-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

@media (max-width: 900px) {
    .fds-sidebar-sticky-wrap {
        position: static;
        max-height: none;
        overflow: visible;
    }
}
.fds-sidebar-claim-inner {
    background: #fff;
    border: 1px solid var(--fds-line);
    border-top: 3px solid var(--fds-red);
    padding: 22px 22px 24px;
    border-radius: 2px;
}
.fds-sidebar-claim-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--fds-red);
    margin-bottom: 12px;
}
.fds-sidebar-claim-eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    background: var(--fds-red);
}
.fds-sidebar-claim-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fds-ink);
    letter-spacing: -.015em;
    margin: 0 0 10px;
    line-height: 1.3;
}
.fds-sidebar-claim-desc {
    font-size: .88rem;
    color: var(--fds-muted);
    line-height: 1.6;
    margin: 0 0 16px;
}

.fds-sidebar-claim-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 18px;
    background: var(--fds-ink);
    color: #fff;
    border: 1px solid var(--fds-ink);
    border-radius: 2px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.fds-sidebar-claim-btn:hover {
    background: var(--fds-red);
    border-color: var(--fds-red);
}
.fds-sidebar-claim-btn svg { flex-shrink: 0; }

/* Doğrulanmış durumu */
.fds-sidebar-claim-verified {
    background: var(--fds-red-soft);
    border-color: #fecaca;
    border-top-color: var(--fds-red);
}
.fds-sidebar-claim-verified .fds-sidebar-claim-title {
    color: var(--fds-red-dark);
}
.fds-sidebar-claim-verified .fds-sidebar-claim-title svg {
    color: var(--fds-red);
}
.fds-sidebar-claim-verified .fds-sidebar-claim-desc {
    color: var(--fds-red-dark);
    opacity: .85;
}

/* Eski inline buton stilleri (kullanmıyoruz ama fallback) */
.fds-firm-claim-wrap { margin: 14px 0; }
.fds-claim-btn { cursor: pointer; }

/* Modal */
.fds-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 12, 34, .55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.fds-modal-overlay.is-open {
    display: flex;
}
.fds-modal {
    background: #fff;
    border-radius: 4px;
    max-width: 480px;
    width: 100%;
    padding: 36px;
    position: relative;
    box-shadow: 0 30px 80px -20px rgba(13, 12, 34, .4);
    max-height: 90vh;
    overflow-y: auto;
}
.fds-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: 0;
    color: var(--fds-muted);
    cursor: pointer;
    padding: 6px;
    line-height: 0;
    border-radius: 2px;
    transition: background .15s ease, color .15s ease;
}
.fds-modal-close:hover {
    background: #fafafa;
    color: var(--fds-ink);
}

.fds-modal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--fds-red);
    margin-bottom: 14px;
}
.fds-modal-eyebrow::before {
    content: "";
    width: 20px;
    height: 1px;
    background: var(--fds-red);
}
.fds-modal-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--fds-ink);
    letter-spacing: -.02em;
    line-height: 1.25;
    margin: 0 0 12px;
}
.fds-modal-desc {
    font-size: .95rem;
    color: var(--fds-muted);
    line-height: 1.65;
    margin: 0 0 22px;
}

.fds-phone-preview {
    border: 1px solid var(--fds-line);
    border-radius: 2px;
    padding: 14px 18px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}
.fds-phone-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--fds-muted);
}
.fds-phone-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--fds-ink);
    letter-spacing: .02em;
    font-family: 'Georgia', serif;
}

.fds-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 18px;
    padding: 12px 14px;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 2px;
    font-size: .82rem;
    line-height: 1.5;
    color: #2a2940;
    cursor: pointer;
}
.fds-consent input[type="checkbox"] {
    flex-shrink: 0;
    margin: 3px 0 0;
    width: 16px;
    height: 16px;
    accent-color: #dc2626;
    cursor: pointer;
}
.fds-consent a {
    color: #dc2626;
    font-weight: 600;
    text-decoration: underline;
}

.fds-btn-primary:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.fds-modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.fds-btn {
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
    flex: 1;
    min-width: 140px;
}
.fds-btn-primary {
    background: var(--fds-ink);
    color: #fff;
    border-color: var(--fds-ink);
}
.fds-btn-primary:hover:not(:disabled) {
    background: var(--fds-red);
    border-color: var(--fds-red);
}
.fds-btn-primary:disabled {
    opacity: .6;
    cursor: wait;
}
.fds-btn-ghost {
    background: #fff;
    color: var(--fds-ink);
    border-color: var(--fds-line);
}
.fds-btn-ghost:hover {
    background: #fafafa;
    border-color: var(--fds-ink);
}

.fds-error {
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--fds-red-soft);
    border: 1px solid #fecaca;
    border-left: 3px solid var(--fds-red);
    color: var(--fds-red-dark);
    font-size: .88rem;
    border-radius: 2px;
}

.fds-otp-input-wrap {
    margin: 20px 0 16px;
}
.fds-otp-input {
    width: 100%;
    padding: 20px 14px;
    font-size: 2rem;
    letter-spacing: .5em;
    text-align: center;
    border: 1.5px solid var(--fds-line);
    border-radius: 4px;
    background: #fafafa;
    color: var(--fds-ink);
    font-family: 'Georgia', serif;
    box-sizing: border-box;
    transition: border-color .2s ease, background .2s ease;
}
.fds-otp-input:focus {
    outline: none;
    border-color: var(--fds-red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .1);
}

.fds-email-optional {
    margin-bottom: 22px;
    border-top: 1px dashed var(--fds-line);
    padding-top: 14px;
}
.fds-email-optional summary {
    cursor: pointer;
    font-size: .85rem;
    font-weight: 600;
    color: var(--fds-muted);
    padding: 4px 0;
    list-style: none;
}
.fds-email-optional summary:hover { color: var(--fds-ink); }
.fds-email-input {
    width: 100%;
    margin-top: 10px;
    padding: 10px 14px;
    border: 1.5px solid var(--fds-line);
    border-radius: 2px;
    background: #fafafa;
    font-size: .95rem;
    box-sizing: border-box;
}
.fds-email-input:focus {
    outline: none;
    border-color: var(--fds-red);
    background: #fff;
}

.fds-success-icon {
    text-align: center;
    color: var(--fds-red);
    margin-bottom: 18px;
}

@media (max-width: 560px) {
    .fds-modal { padding: 26px 22px; }
    .fds-modal-title { font-size: 1.25rem; }
    .fds-btn { min-width: 0; }
}
