/* Teklif formu — modal, tam genişlik mobil uyum */
.sq-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(8, 12, 20, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

@media (min-width: 560px) {
    .sq-overlay {
        align-items: center;
        padding: 20px;
    }
}

.sq-overlay[hidden] {
    display: none !important;
}

.sq-dialog {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: min(92vh, 720px);
    overflow-y: auto;
    background: var(--sq-bg, #fff);
    color: var(--sq-fg, #0d1627);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.18);
    padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
    box-sizing: border-box;
    font-family: inherit;
}

@media (min-width: 560px) {
    .sq-dialog {
        border-radius: 20px;
        padding: 26px 26px 22px;
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    }
}

html[data-theme="dark"] .sq-dialog {
    --sq-bg: #121820;
    --sq-fg: #e8ecf2;
    --sq-muted: #94a3b8;
    --sq-line: rgba(255, 255, 255, 0.1);
    --sq-input-bg: #0c1118;
}

html[data-theme="light"] .sq-dialog,
body:not(.ws-site-body) .sq-dialog {
    --sq-muted: #64748b;
    --sq-line: rgba(0, 0, 0, 0.09);
    --sq-input-bg: #f8fafc;
}

.sq-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--sq-muted, #64748b);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sq-close:hover {
    background: var(--sq-line, rgba(0, 0, 0, 0.06));
    color: var(--sq-fg, #0d1627);
}

.sq-title {
    margin: 0 36px 8px 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.sq-desc {
    margin: 0 0 16px;
    font-size: 0.92rem;
    color: var(--sq-muted, #64748b);
    line-height: 1.45;
}

.sq-alert {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.88rem;
    margin-bottom: 12px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

html[data-theme="dark"] .sq-alert {
    background: #3f1d1d;
    color: #fecaca;
    border-color: #7f1d1d;
}

.sq-alert[data-variant="ok"] {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

html[data-theme="dark"] .sq-alert[data-variant="ok"] {
    background: #142e26;
    color: #a7f3d0;
    border-color: #134e4a;
}

.sq-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sq-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--sq-fg, #0d1627);
}

.sq-req {
    color: #dc2626;
}

.sq-field input,
.sq-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--sq-line, rgba(0, 0, 0, 0.12));
    background: var(--sq-input-bg, #f8fafc);
    color: var(--sq-fg, #0d1627);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.sq-field input:focus,
.sq-field textarea:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.2);
}

.sq-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.sq-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--sq-muted, #64748b);
    cursor: pointer;
}

.sq-check input {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.sq-check a {
    color: #0f766e;
    font-weight: 600;
}

.sq-turnstile-host {
    min-height: 4px;
}

.sq-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 6px;
    padding-top: 4px;
}

.sq-btn {
    min-height: 44px;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    touch-action: manipulation;
}

.sq-btn-primary {
    background: linear-gradient(135deg, #0f766e, #0d9488);
    color: #fff;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
}

.sq-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.sq-btn-secondary {
    background: var(--sq-line, rgba(0, 0, 0, 0.06));
    color: var(--sq-fg, #0d1627);
}

body.register-page .sq-dialog {
    --sq-bg: #fff;
    --sq-fg: #0d1627;
}

/* data-sales-quote-open tetikleyici — outline erişilebilirlik */
[data-sales-quote-open]:focus-visible {
    outline: 2px solid #0f766e;
    outline-offset: 2px;
}

button.sq-text-btn {
    display: inline;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
    vertical-align: baseline;
}
