/* /wp-content/plugins/business-list-manager/assets/css/single-list.css */
/* ==========================================================================
   Single List Page Styles
   Design system: #0f172a dark, #2563eb blue, #dc2626 red,
                  #e2e8f0 border, #f8fafc bg
   ========================================================================== */

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --------------------------------------------------------------------------
   List Header
   -------------------------------------------------------------------------- */

.blm-list-header {
    margin-bottom: 40px;
    position: relative;
}

/* Liste başlığı üstü — şehir + kategori, ikon + metin, çerçevesiz */
.blm-list-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin: 0 0 14px;
}
.blm-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.005em;
    text-decoration: none;
    transition: color .15s ease;
}
.blm-chip:hover {
    color: #0f172a;
}
.blm-chip:hover .blm-chip-label {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.blm-chip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.blm-chip-city .blm-chip-icon { color: #2563eb; }
.blm-chip-category .blm-chip-icon { color: #dc2626; }
.blm-chip-icon svg {
    width: 16px;
    height: 16px;
}
.blm-chip-label { line-height: 1.2; }
@media (max-width: 480px) {
    .blm-list-chips { gap: 16px; }
    .blm-chip { font-size: .82rem; }
    .blm-chip-icon svg { width: 15px; height: 15px; }
}

.blm-list-meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.blm-list-city,
.blm-list-category {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.95em;
    font-weight: 500;
    color: #475569;
    background: rgba(15, 23, 42, 0.06);
    transition: background 0.2s ease;
}

.blm-list-city:hover,
.blm-list-category:hover {
    background: rgba(15, 23, 42, 0.1);
}

.blm-list-city i,
.blm-list-category i {
    margin-right: 8px;
    color: #64748b;
    font-size: 1em;
}

.blm-list-city a,
.blm-list-category a {
    color: #475569;
    text-decoration: none;
}

.blm-list-city a:hover,
.blm-list-category a:hover {
    color: #0f172a;
}

.blm-list-title {
    font-size: 2.4em;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 15px 0 20px;
}

.blm-list-title::after {
    display: none;
}

.blm-list-description {
    font-size: 1.05em;
    line-height: 1.7;
    color: #64748b;
    margin-top: 12px;
}

.blm-list-description p {
    margin-bottom: 15px;
}

.blm-list-description p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Rank Indicators
   -------------------------------------------------------------------------- */

.rank-gold   { border-left: 3px solid #f59e0b; }
.rank-silver { border-left: 3px solid #94a3b8; }
.rank-bronze { border-left: 3px solid #cd7f32; }

.rank-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    z-index: 1;
}

.rank-badge i {
    font-size: 14px;
}

.rank-badge.gold {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fcd34d;
}

.rank-badge.silver {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.rank-badge.bronze {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fdba74;
}

/* --------------------------------------------------------------------------
   Firm Item Card
   -------------------------------------------------------------------------- */

.blm-firms-item {
    display: flex;
    gap: 20px;
    padding: 28px;
    margin-bottom: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blm-firms-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* --------------------------------------------------------------------------
   Vote Buttons
   -------------------------------------------------------------------------- */

.blm-firms-vote-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 70px;
    align-self: stretch;
}

.blm-firms-vote-button {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.vote-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.vote-label {
    font-size: 10px;
    font-weight: 600;
}

/* Upvote */
.blm-firms-vote-up {
    border-color: #d1fae5;
}

.blm-firms-vote-up i {
    color: #16a34a;
    font-size: 18px;
}

.blm-firms-vote-up .vote-label {
    color: #16a34a;
}

.blm-firms-vote-up:hover {
    background: #f0fdf4;
    border-color: #16a34a;
}

/* Downvote */
.blm-firms-vote-down {
    border-color: #fee2e2;
}

.blm-firms-vote-down i {
    color: #dc2626;
    font-size: 18px;
}

.blm-firms-vote-down .vote-label {
    color: #dc2626;
}

.blm-firms-vote-down:hover {
    background: #fef2f2;
    border-color: #dc2626;
}

/* Voted (active) state */
.blm-firms-voted.blm-firms-vote-up {
    background: #16a34a;
    border-color: #16a34a;
}

.blm-firms-voted.blm-firms-vote-down {
    background: #dc2626;
    border-color: #dc2626;
}

.blm-firms-voted i,
.blm-firms-voted .vote-label {
    color: #fff !important;
}

/* Vote status indicator */
.blm-firms-vote-status {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blm-firms-vote-status i {
    color: #fff;
    font-size: 20px;
}

.blm-firms-vote-status-up   { background: #16a34a; }
.blm-firms-vote-status-down { background: #dc2626; }

.blm-firms-vote-status::after {
    display: none;
}

/* --------------------------------------------------------------------------
   Firm Content
   -------------------------------------------------------------------------- */

.blm-firms-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.firm-header {
    margin-bottom: 12px;
}

.firm-title {
    font-size: 1.4em;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    margin: 0;
    padding: 0;
}

.firm-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.firm-title a::after {
    display: none;
}

.firm-title a:hover {
    color: #2563eb;
}

.firm-description {
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Firm Info Row
   -------------------------------------------------------------------------- */

.firm-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.firm-info > div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
}

.firm-info i {
    width: 16px;
    color: #94a3b8;
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   Firm Images
   -------------------------------------------------------------------------- */

.firm-images {
    margin: 16px 0;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.image-item {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-item:hover img {
    transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   Action Buttons
   -------------------------------------------------------------------------- */

.firm-action-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.action-button::before {
    display: none;
}

.call-button {
    background: #0f172a;
}

.call-button:hover {
    background: #1e293b;
    color: #ffffff;
}

.whatsapp-button {
    background: #22c55e;
}

.whatsapp-button:hover {
    background: #16a34a;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   Toast Notifications
   -------------------------------------------------------------------------- */

.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 380px;
    padding: 16px 20px;
    margin: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

.toast.success { border-left: 3px solid #16a34a; }
.toast.error   { border-left: 3px solid #dc2626; }

.toast i {
    font-size: 18px;
}

.toast.success i { color: #16a34a; }
.toast.error i   { color: #dc2626; }

.toast-message {
    color: #334155;
    font-size: 14px;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Empty State
   -------------------------------------------------------------------------- */

.no-firms-message {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(12px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* --------------------------------------------------------------------------
   Responsive — Mobile (max-width: 768px)
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .blm-list-title {
        font-size: 1.8em;
    }

    .blm-list-description {
        font-size: 0.95em;
    }

    .blm-firms-item {
        flex-direction: column;
        padding: 20px;
    }

    .blm-firms-vote-buttons {
        flex-direction: row;
        width: 100%;
        order: 2;
        justify-content: center;
        padding-top: 16px;
        border-top: 1px solid #f1f5f9;
    }

    .blm-firms-content-wrapper {
        order: 1;
        min-height: auto;
    }

    .rank-badge {
        position: static;
        display: inline-flex;
        align-self: flex-start;
        margin-bottom: 12px;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-item:nth-child(n+3) {
        display: none;
    }

    .firm-action-buttons {
        flex-wrap: wrap;
    }

    .action-button {
        flex: 1;
        min-width: 100px;
    }
}

/* /wp-content/plugins/firm-dashboard-system/assets/css/fds-claim.css */
/**
 * 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; }
}

/* /wp-content/plugins/firm-dashboard-system/assets/css/fds-quote.css */
/**
 * FDS Quote — Liste CTA + Modal
 */

/* Liste sayfasındaki Toplu Teklif CTA — açık gri zemin, 3 adımlı akış */
.fds-list-cta {
    margin: 28px 0 20px;
    background: #f6f6f8;
    color: #0d0c22;
    border-radius: 18px;
}
.fds-list-cta-inner {
    padding: 28px 36px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
    gap: 40px;
    align-items: center;
}
.fds-list-cta-head { min-width: 0; }
.fds-list-cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #dc2626;
    margin-bottom: 10px;
}
.fds-list-cta-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .12);
    animation: fdsCtaPulse 2s ease-in-out infinite;
}
@keyframes fdsCtaPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(220, 38, 38, .12); }
    50%      { box-shadow: 0 0 0 7px rgba(220, 38, 38, .05); }
}
.fds-list-cta-head h3 {
    font-size: 1.22rem;
    font-weight: 700;
    color: #0d0c22;
    letter-spacing: -.02em;
    margin: 0;
    line-height: 1.28;
}

.fds-list-cta-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    position: relative;
}
.fds-list-cta-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 0 14px;
    position: relative;
}
.fds-list-cta-steps li:first-child { padding-left: 0; }
.fds-list-cta-steps li:last-child  { padding-right: 0; }
.fds-list-cta-steps li + li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 14px;
    height: 1px;
    background: rgba(13, 12, 34, .12);
    transform: translateY(-50%);
}
.fds-step-num {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    color: #0d0c22;
    font-size: .78rem;
    font-weight: 700;
    font-feature-settings: "tnum";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 1px rgba(13, 12, 34, .08),
        0 1px 2px rgba(13, 12, 34, .05);
}
.fds-step-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.fds-step-text strong {
    font-size: .86rem;
    font-weight: 600;
    color: #0d0c22;
    letter-spacing: -.005em;
    line-height: 1.3;
}
.fds-step-text small {
    font-size: .74rem;
    color: #6b7280;
    line-height: 1.35;
}

.fds-list-cta-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.fds-list-cta-meta {
    font-size: .72rem;
    color: #6b7280;
    letter-spacing: .02em;
}
.fds-list-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #0d0c22;
    color: #fff;
    border: 0;
    padding: 6px 6px 6px 22px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .01em;
    border-radius: 999px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .06) inset,
        0 8px 20px -10px rgba(13, 12, 34, .45);
    transition: background .2s ease, box-shadow .2s ease, transform .15s ease;
    cursor: pointer;
    white-space: nowrap;
}
.fds-list-cta-btn-label {
    line-height: 1;
    padding: 10px 0;
}
.fds-list-cta-btn-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    color: #0d0c22;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    transition: transform .25s ease, background .2s ease, color .2s ease;
}
.fds-list-cta-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .12) inset,
        0 14px 26px -10px rgba(220, 38, 38, .5);
}
.fds-list-cta-btn:hover .fds-list-cta-btn-arrow {
    transform: translateX(3px);
    background: #0d0c22;
    color: #ffffff;
}
@media (max-width: 960px) {
    .fds-list-cta {
        border-radius: 16px;
    }
    .fds-list-cta-inner {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 22px;
    }
    .fds-list-cta-head h3 { font-size: 1.1rem; }
    .fds-list-cta-action {
        align-items: center;
        gap: 10px;
    }
    .fds-list-cta-btn {
        gap: 12px;
        padding: 6px 6px 6px 20px;
        font-size: .82rem;
    }
    .fds-list-cta-btn-arrow {
        width: 32px;
        height: 32px;
    }
    .fds-list-cta-meta { text-align: center; }
}
@media (max-width: 560px) {
    .fds-list-cta-steps {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    /* Dikey listede yatay connector çizgilerini kaldır */
    .fds-list-cta-steps li + li::before {
        display: none;
    }
    .fds-list-cta-steps li {
        padding: 0;
    }
}

/* Quote modal — fds-modal-overlay/fds-modal class'larını miras alır */
.fds-quote-modal { max-width: 620px; }

.fds-quote-form { margin-top: 8px; }
.fds-quote-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}
.fds-quote-field { display: flex; flex-direction: column; gap: 6px; }
.fds-quote-field-full { grid-column: 1 / -1; }
.fds-quote-field label {
    font-size: .82rem;
    font-weight: 600;
    color: #0d0c22;
    display: flex;
    gap: 4px;
    align-items: baseline;
}
.fds-quote-field label small {
    font-weight: 400;
    color: #6b7280;
    font-size: .72rem;
    margin-left: auto;
}
.fds-quote-field label .req { color: #dc2626; }

.fds-quote-field input[type="text"],
.fds-quote-field input[type="tel"],
.fds-quote-field input[type="email"],
.fds-quote-field textarea {
    width: 100%;
    padding: 11px 12px;
    background: #fafafa;
    border: 1.5px solid #e5e7eb;
    border-radius: 2px;
    font-size: .95rem;
    color: #0d0c22;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .2s ease, background .2s ease;
}
.fds-quote-field textarea { resize: vertical; min-height: 100px; line-height: 1.55; }
.fds-quote-field input:focus,
.fds-quote-field textarea:focus {
    outline: none;
    border-color: #dc2626;
    background: #fff;
}

.fds-quote-urgency {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.fds-quote-urgency label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 2px;
    cursor: pointer;
    font-size: .88rem;
    font-weight: 500;
    color: #0d0c22;
    flex: 1;
    justify-content: center;
    transition: border-color .15s ease, background .15s ease;
}
.fds-quote-urgency label:hover { border-color: #0d0c22; }
.fds-quote-urgency input[type="radio"] {
    accent-color: #dc2626;
    margin: 0;
}
.fds-quote-urgency input[type="radio"]:checked + * { color: #dc2626; }

.fds-quote-kvkk {
    margin: 8px 0 22px;
    padding: 14px 16px;
    background: #fafafa;
    border-left: 3px solid #dc2626;
    font-size: .82rem;
    color: #2a2940;
    line-height: 1.5;
}
.fds-quote-kvkk label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
}
.fds-quote-kvkk input[type="checkbox"] {
    margin: 3px 0 0;
    accent-color: #dc2626;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .fds-list-cta-inner { grid-template-columns: 1fr; }
    .fds-quote-grid { grid-template-columns: 1fr; }
}

/* OTP doğrulama paneli — submit öncesi telefon doğrulama */
.fds-otp-panel {
    padding: 8px 0;
}
.fds-otp-panel .fds-modal-desc {
    margin: 6px 0 22px;
}
.fds-otp-inputs {
    display: flex;
    justify-content: center;
    margin: 0 0 14px;
}
.fds-otp-code {
    width: 100%;
    max-width: 280px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: .5em;
    padding: 14px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    outline: 0;
    transition: border-color .15s ease, box-shadow .15s ease;
    font-feature-settings: "tnum";
}
.fds-otp-code:focus {
    border-color: #0d0c22;
    box-shadow: 0 0 0 3px rgba(13, 12, 34, .08);
}
.fds-otp-code::placeholder {
    color: #cbd5e1;
    letter-spacing: .35em;
}
.fds-otp-resend {
    text-align: center;
    margin: 14px 0 0;
    font-size: .82rem;
    color: #6b7280;
}
.fds-otp-resend a {
    color: #dc2626;
    text-decoration: none;
    font-weight: 500;
}
.fds-otp-resend a.is-disabled {
    color: #9ca3af;
    pointer-events: none;
    cursor: not-allowed;
}
[data-fds-otp-timer] {
    color: #9ca3af;
    margin-left: 4px;
}

/* /wp-content/plugins/sektor-teklif-sistemi/assets/css/sts-wizard.css */
/**
 * STS Wizard — schema-driven form alanları + canlı fiyat bandı
 * FDS modal'ın içinde (detail textarea'nın üstünde) render edilir.
 */

/* Inline OTP adımı — telefonun ardından akıllı akış */
.sts-otp-box { max-width: 340px; margin: 12px 0 0; }
.sts-otp-input {
    width: 100%;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: .5em;
    padding: 14px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    outline: 0;
    font-feature-settings: "tnum";
    transition: border-color .15s ease, box-shadow .15s ease;
}
.sts-otp-input:focus {
    border-color: #0d0c22;
    box-shadow: 0 0 0 3px rgba(13, 12, 34, .08);
}
.sts-otp-input::placeholder { color: #cbd5e1; letter-spacing: .35em; }
.sts-otp-error {
    color: #dc2626;
    font-size: .85rem;
    margin: 10px 0 0;
}
.sts-otp-resend {
    margin: 14px 0 0;
    font-size: .82rem;
    color: #6b7280;
}
.sts-otp-resend a { color: #dc2626; text-decoration: none; font-weight: 500; }
.sts-otp-resend a.is-disabled { color: #9ca3af; pointer-events: none; cursor: not-allowed; }
.sts-otp-resend [data-sts-otp-timer] { color: #9ca3af; margin-left: 4px; }

/* Üye kullanıcı için "Gönderen" özet kutusu (son adım) */
.sts-sender-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    margin: 8px 0 16px;
    background: #f6f6f8;
    border-radius: 12px;
    font-size: .88rem;
}
.sts-sender-summary-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #6b7280;
}
.sts-sender-summary-body {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    color: #0d0c22;
    line-height: 1.4;
}
.sts-sender-summary-body strong {
    font-weight: 600;
}
.sts-sender-summary-meta {
    color: #6b7280;
    font-size: .82rem;
}

:root {
    --sts-ink: #0d0c22;
    --sts-ink-soft: #2a2940;
    --sts-muted: #6b7280;
    --sts-red: #dc2626;
    --sts-line: #e5e7eb;
    --sts-bg: #fafafa;
    --sts-green: #16a34a;
    --sts-green-soft: #f0fdf4;
}

.sts-wizard-mount { display: none; /* placeholder — wizard artık formu yeniden düzenliyor */ }

/* Progress bar — modal'ın üstüne yapışık ince çizgi. Sayı gösterilmiyor. */
.fds-quote-modal.sts-active > .sts-progress,
.sts-active .sts-progress {
    margin: 0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 5;
    padding: 8px 0 6px;
}
.sts-progress-counter { display: none; }
.sts-progress-bar {
    height: 3px;
    background: var(--sts-line);
    border-radius: 2px;
    overflow: hidden;
}
.sts-progress-fill {
    height: 100%;
    background: var(--sts-ink);
    transition: width .35s ease;
    width: 0;
}

/* Step container */
.sts-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sts-step {
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: stsStepFade .2s ease;
}
.sts-step[hidden] { display: none; }
@keyframes stsStepFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.sts-step-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--sts-ink);
    margin: 0 0 4px;
    line-height: 1.25;
}
.sts-step-desc {
    font-size: .95rem;
    line-height: 1.55;
    color: var(--sts-muted);
    margin: 0 0 8px;
}

/* Nav butonları: Geri sol, İleri sağ */
.sts-nav-actions {
    display: flex !important;
    align-items: center;
    gap: 10px;
}
.sts-nav-spacer { flex: 1; }
.sts-nav-btn {
    padding: 10px 20px;
    border: 1.5px solid var(--sts-ink);
    background: transparent;
    color: var(--sts-ink);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
    white-space: nowrap;
}
.sts-nav-btn:hover {
    background: var(--sts-ink);
    color: #fff;
}
.sts-nav-btn.sts-next-primary {
    background: var(--sts-ink);
    color: #fff;
}
.sts-nav-btn.sts-next-primary:hover {
    background: var(--sts-red);
    border-color: var(--sts-red);
}
.sts-nav-btn[hidden] { display: none; }

/* ===================================================================
   STS aktifken modal — compact, pixel-saving, Armut-grade sanat
   =================================================================== */
.fds-modal.fds-quote-modal.sts-active {
    width: min(520px, calc(100vw - 28px));
    max-width: 520px;
    height: auto;
    max-height: calc(100vh - 40px);
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 40px rgba(13, 12, 34, 0.18);
}
.fds-modal.sts-active .fds-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 28px; height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sts-muted);
    background: transparent;
    border-radius: 50%;
}
.fds-modal.sts-active .fds-modal-close:hover { color: var(--sts-ink); background: #f3f4f6; }

.fds-modal.sts-active .fds-quote-step[data-quote-step="1"] {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 0;
}
.fds-modal.sts-active #fds-quote-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    margin: 0;
}

/* Progress — en üste yapışık ince şerit, counter küçük */
.fds-modal.sts-active .sts-progress {
    flex-shrink: 0;
    padding: 12px 20px 10px;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid var(--sts-line);
}
.sts-progress-counter {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--sts-muted);
    margin-bottom: 6px;
}
.sts-progress-bar { height: 2px; background: var(--sts-line); }
.sts-progress-fill { background: var(--sts-ink); }

/* Steps — scroll varsa inner overflow, yoksa tam sığar */
.sts-steps {
    flex: 1;
    min-height: 0;
    padding: 18px 20px 12px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--sts-line) transparent;
}
.sts-steps::-webkit-scrollbar { width: 4px; }
.sts-steps::-webkit-scrollbar-thumb { background: var(--sts-line); border-radius: 2px; }

.sts-step {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: stsStepFade .18s ease;
}
.sts-step[hidden],
.sts-step.is-hidden { display: none !important; }

/* Başlık: compact ama vurgulu */
.sts-step-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -.015em;
    color: var(--sts-ink);
    margin: 0;
    line-height: 1.3;
}
.sts-step-desc {
    font-size: .85rem;
    line-height: 1.45;
    color: var(--sts-muted);
    margin: -2px 0 4px;
}

/* Field içinde label gereksiz (başlık zaten ana soru) */
.sts-step .sts-field { margin: 0; gap: 8px; }

/* Radio grid — 2 kolon default, compact seçenek için 4 kolon */
.sts-radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
}
.sts-radio-grid.is-compact {
    grid-template-columns: repeat(4, 1fr);
}
.sts-radio-card {
    padding: 12px 10px;
    min-height: 44px;
    font-size: .86rem;
    border-radius: 8px;
    line-height: 1.3;
}

/* Input — compact ama rahat okunur */
.sts-field input[type="number"],
.sts-field input[type="text"],
.sts-field input[type="tel"],
.sts-field input[type="email"],
.sts-field input[type="url"],
.sts-field input[type="date"],
.sts-field select {
    font-size: .98rem;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1.5px solid var(--sts-line);
    background: #fff;
}
.sts-field input:focus,
.sts-field select:focus { border-color: var(--sts-ink); outline: none; }
.sts-field-number-wrap input { padding-right: 54px; }

/* Number input spinner kaldır (m² suffix'i ezmesin) */
.sts-field input[type="number"]::-webkit-inner-spin-button,
.sts-field input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.sts-field input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.sts-field textarea {
    font-size: .95rem;
    padding: 11px 14px;
    border-radius: 8px;
    min-height: 70px;
}

.sts-checkbox-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 6px;
}
.sts-checkbox-item {
    padding: 9px 12px;
    border-radius: 6px;
    font-size: .85rem;
    background: #fff;
}

.sts-budget-range input[type="number"] { padding: 11px 14px; }

/* E-posta hint kutusu (kayıtlı kullanıcı uyarısı) */
.sts-email-hint {
    margin-top: 12px;
    padding: 14px 16px;
    background: #fef9e7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: .88rem;
    color: #78350f;
    line-height: 1.55;
}
.sts-email-hint[hidden] { display: none; }
.sts-email-hint strong { color: #451a03; }
.sts-hint-btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--sts-ink);
    color: #fff !important;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
}
.sts-hint-btn:hover { background: var(--sts-red); }

/* Nav — Geri küçük link, İleri büyük primary */
.fds-modal.sts-active .fds-modal-actions.sts-nav-actions {
    flex-shrink: 0;
    padding: 12px 20px 14px;
    background: #fff;
    border-top: 1px solid var(--sts-line);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sts-nav-btn {
    font-size: .8rem;
    padding: 11px 20px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: none;
    border-radius: 8px;
    border: 1px solid var(--sts-line);
}
.sts-back {
    background: transparent;
    border: 0 !important;
    color: var(--sts-muted);
    padding: 11px 10px;
}
.sts-back:hover { background: transparent; color: var(--sts-ink); }
.sts-next-primary {
    padding: 11px 28px;
    font-size: .88rem;
    border-radius: 8px;
    background: var(--sts-ink);
    border-color: var(--sts-ink);
    color: #fff;
}
.sts-next-primary:hover {
    background: var(--sts-red);
    border-color: var(--sts-red);
}

/* Submit butonu son adımda */
.fds-modal.sts-active #fds-quote-form .fds-btn-primary {
    padding: 11px 28px;
    font-size: .88rem;
    letter-spacing: .06em;
    border-radius: 8px;
}

/* Fiyat tahmini adımı */
.sts-step-price .sts-price-estimate {
    margin-top: 8px;
    padding: 20px;
    border-radius: 10px;
}
.sts-step-price .sts-price-estimate-range {
    font-size: 1.35rem;
    font-weight: 700;
}
.sts-step-price .sts-price-estimate-icon {
    width: 40px; height: 40px;
    font-size: 18px;
}

@keyframes stsStepFade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* STS alan wrapper — FDS'nin fds-quote-field grid'i içine girer */
.sts-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    grid-column: 1 / -1;
    margin: 0;
}
.sts-field.sts-field-half {
    grid-column: auto;
}
.sts-field[hidden] { display: none; }

.sts-field-label {
    font-size: .92rem;
    font-weight: 600;
    color: var(--sts-ink);
    display: flex;
    align-items: center;
    gap: 6px;
}
.sts-field-label .sts-req { color: var(--sts-red); font-weight: 700; }
.sts-field-help {
    font-size: .78rem;
    color: var(--sts-muted);
    line-height: 1.5;
    font-weight: 400;
}

/* Eyebrow — schema adım başlığı */
.sts-step-head {
    grid-column: 1 / -1;
    margin: 8px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--sts-line);
}
.sts-step-head:first-child {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}
.sts-step-head h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sts-ink);
    letter-spacing: -.01em;
    margin: 0;
}
.sts-step-head p {
    font-size: .86rem;
    color: var(--sts-muted);
    margin: 4px 0 0;
    line-height: 1.5;
}

/* Text / number / tel / email inputs */
.sts-field input[type="text"],
.sts-field input[type="number"],
.sts-field input[type="tel"],
.sts-field input[type="email"],
.sts-field input[type="url"],
.sts-field input[type="date"],
.sts-field select,
.sts-field textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: .95rem;
    color: var(--sts-ink);
    background: #fff;
    border: 1.5px solid var(--sts-line);
    border-radius: 4px;
    transition: border-color .15s ease;
    font-family: inherit;
}
.sts-field input:focus,
.sts-field select:focus,
.sts-field textarea:focus {
    outline: none;
    border-color: var(--sts-ink);
}

/* Number with unit suffix (area_m2 gibi) */
.sts-field-number-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.sts-field-number-wrap input { padding-right: 52px; }
.sts-field-unit {
    position: absolute;
    right: 12px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--sts-muted);
    letter-spacing: .02em;
    pointer-events: none;
}

/* ===============================================================
   Radio grid — ADAPTIVE: seçenek sayısı × label uzunluğuna göre
   layout zeki şekilde değişir. Tek bir "auto-fit" kural yok.
   =============================================================== */
.sts-radio-grid {
    display: grid;
    gap: 10px;
}

/* 2 seçenek → iki büyük kart yan yana */
.sts-radio-grid[data-count="2"]  { grid-template-columns: repeat(2, 1fr); }

/* 3 seçenek → üç eşit kart */
.sts-radio-grid[data-count="3"]  { grid-template-columns: repeat(3, 1fr); }

/* 4 seçenek → 2×2 dengeli (3+1 yerine) */
.sts-radio-grid[data-count="4"]  { grid-template-columns: repeat(2, 1fr); }

/* 5 seçenek → 3+2 */
.sts-radio-grid[data-count="5"]  { grid-template-columns: repeat(3, 1fr); }

/* 6 seçenek → 3+3 */
.sts-radio-grid[data-count="6"]  { grid-template-columns: repeat(3, 1fr); }

/* 7+ seçenek → 2 kolon, alt alta akar */
.sts-radio-grid[data-count="7"],
.sts-radio-grid[data-count="8"],
.sts-radio-grid[data-count="9"],
.sts-radio-grid[data-count="10"],
.sts-radio-grid[data-count="11"],
.sts-radio-grid[data-count="12"] { grid-template-columns: repeat(2, 1fr); }

/* --- Density override'ları — kısa label → daha sık, uzun label → daha seyrek --- */

/* Çip (≤6 karakter) — mümkün olan en sık yerleşim */
.sts-radio-grid[data-density="chip"][data-count="4"] { grid-template-columns: repeat(4, 1fr); }
.sts-radio-grid[data-density="chip"][data-count="5"],
.sts-radio-grid[data-density="chip"][data-count="6"] { grid-template-columns: repeat(6, 1fr); }
.sts-radio-grid[data-density="chip"][data-count="7"],
.sts-radio-grid[data-density="chip"][data-count="8"] { grid-template-columns: repeat(4, 1fr); }

/* Uzun label (>20 karakter) — her zaman 2 kolon, cüretli */
.sts-radio-grid[data-density="long"] { grid-template-columns: repeat(2, 1fr); }
.sts-radio-grid[data-density="long"][data-count="2"] { grid-template-columns: 1fr; }
.sts-radio-grid[data-density="long"][data-count="3"] { grid-template-columns: 1fr; }

/* Kartlar — density'ye göre boyutlandırma */
.sts-radio-grid[data-density="chip"] .sts-radio-card { padding: 12px 8px; font-size: .86rem; }
.sts-radio-grid[data-density="long"] .sts-radio-card { padding: 18px 16px; text-align: left; justify-content: flex-start; }

/* 2-3 seçenek büyük ve cesur hissetsin */
.sts-radio-grid[data-count="2"] .sts-radio-card,
.sts-radio-grid[data-count="3"] .sts-radio-card { padding: 18px 14px; font-size: .94rem; font-weight: 600; min-height: 64px; }

.sts-radio-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    background: #fff;
    border: 1.5px solid var(--sts-line);
    border-radius: 6px;
    cursor: pointer;
    font-size: .88rem;
    font-weight: 500;
    color: var(--sts-ink-soft);
    text-align: center;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.sts-radio-card input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}
.sts-radio-card:hover {
    border-color: var(--sts-ink);
    color: var(--sts-ink);
}
.sts-radio-card:has(input:checked) {
    border-color: var(--sts-ink);
    background: var(--sts-ink);
    color: #fff;
    font-weight: 600;
}

/* Checkbox list — adaptive grid: az seçenek → tek kolon, 6+ → iki kolon */
.sts-checkbox-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.sts-checkbox-list[data-count="6"],
.sts-checkbox-list[data-count="7"],
.sts-checkbox-list[data-count="8"],
.sts-checkbox-list[data-count="9"],
.sts-checkbox-list[data-count="10"],
.sts-checkbox-list[data-count="11"],
.sts-checkbox-list[data-count="12"] { grid-template-columns: repeat(2, 1fr); }
.sts-checkbox-list[data-density="long"] { grid-template-columns: 1fr !important; }
.sts-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--sts-line);
    border-radius: 4px;
    cursor: pointer;
    font-size: .88rem;
    color: var(--sts-ink-soft);
    transition: border-color .15s ease;
}
.sts-checkbox-item input {
    flex-shrink: 0;
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: var(--sts-ink);
}
.sts-checkbox-item:has(input:checked) {
    border-color: var(--sts-ink);
    color: var(--sts-ink);
}

/* Range slider */
.sts-range-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sts-range-wrap input[type="range"] { flex: 1; accent-color: var(--sts-ink); }
.sts-range-value {
    min-width: 48px;
    font-weight: 700;
    color: var(--sts-ink);
    font-size: .92rem;
    text-align: right;
}

/* Budget range — iki number yanyana */
.sts-budget-range {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
}
.sts-budget-range .sts-sep {
    color: var(--sts-muted);
    font-size: .82rem;
    font-weight: 600;
    text-align: center;
}

/* Canlı fiyat tahmini bandı */
.sts-price-estimate {
    grid-column: 1 / -1;
    margin: 10px 0 4px;
    padding: 14px 18px;
    background: var(--sts-green-soft);
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.sts-price-estimate[hidden] { display: none; }
.sts-price-estimate-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--sts-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 700;
}
.sts-price-estimate-body { flex: 1; min-width: 0; }
.sts-price-estimate-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--sts-green);
    margin-bottom: 2px;
}
.sts-price-estimate-range {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--sts-ink);
    letter-spacing: -.01em;
}
.sts-price-estimate-note {
    font-size: .76rem;
    color: var(--sts-muted);
    margin-top: 2px;
    line-height: 1.4;
}

/* FDS'nin "İş Detayı" kutusunu STS aktifken opsiyonel hisseni ver */
.sts-active .fds-quote-field label:has([data-sts-marker]) { /* no-op placeholder */ }

@media (max-width: 540px) {
    /* Mobilde adaptive gridlerin çoğu darda daralır — basit kural: */
    .sts-radio-grid[data-count="3"],
    .sts-radio-grid[data-count="5"],
    .sts-radio-grid[data-count="6"] { grid-template-columns: repeat(2, 1fr); }
    .sts-radio-grid[data-density="chip"][data-count="4"],
    .sts-radio-grid[data-density="chip"][data-count="5"],
    .sts-radio-grid[data-density="chip"][data-count="6"] { grid-template-columns: repeat(3, 1fr); }
    .sts-radio-grid[data-density="long"] { grid-template-columns: 1fr; }
    .sts-checkbox-list[data-count="6"],
    .sts-checkbox-list[data-count="7"],
    .sts-checkbox-list[data-count="8"],
    .sts-checkbox-list[data-count="9"],
    .sts-checkbox-list[data-count="10"] { grid-template-columns: 1fr; }
    .sts-budget-range { grid-template-columns: 1fr; }
    .sts-budget-range .sts-sep { display: none; }
}

