/* SQ Leads — All Forms v1.1 */
*, .sq-form-wrap *, .sq-modal-box * { box-sizing: border-box; }

/* ── Base form wrapper ── */
.sq-form-wrap {
    max-width: 680px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0,0,0,.09);
    overflow: hidden;
    font-family: 'Segoe UI', -apple-system, Arial, sans-serif;
}

/* ── Form header ── */
.sq-form-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 28px;
    border-bottom: 1px solid #f0f3f8;
}
.sq-form-icon {
    width: 48px;
    height: 48px;
    background: #0d1b3e;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sq-form-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0d1b3e !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}
.sq-form-sub {
    font-size: 13px;
    color: #888;
    margin: 4px 0 0;
}

/* ── Form body ── */
.sq-lead-form {
    padding: 24px 28px 22px;
}

/* ── Grid ── */
.sq-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

/* ── Field ── */
.sq-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}
.sq-grid-2 .sq-field { margin-bottom: 0; }

.sq-field label {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .08em;
    color: #4b5563 !important;
    margin-bottom: 7px !important;
    text-transform: uppercase;
}
.sq-req { color: #ef4444; }

.sq-field input[type="text"],
.sq-field input[type="tel"],
.sq-field input[type="email"],
.sq-field input[type="date"],
.sq-field select,
.sq-field textarea {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 9px !important;
    padding: 11px 14px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    background: #f8fafc !important;
    transition: border-color .18s, box-shadow .18s, background .18s;
    outline: none !important;
    font-family: inherit !important;
    width: 100% !important;
    appearance: none;
    -webkit-appearance: none;
}
.sq-field input:focus,
.sq-field select:focus,
.sq-field textarea:focus {
    border-color: #0d1b3e !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(13,27,62,.09) !important;
}
.sq-field input.sq-error,
.sq-field select.sq-error,
.sq-field textarea.sq-error {
    border-color: #ef4444 !important;
    background: #fff5f5 !important;
}
.sq-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 13px center !important;
    padding-right: 38px !important;
    cursor: pointer;
}
.sq-field textarea { resize: vertical; min-height: 96px; }

/* ── Section divider (detailed form) ── */
.sq-section-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 20px;
    font-size: 13px;
    font-weight: 700;
    color: #1e3a5f;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.sq-section-divider::before,
.sq-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* ── Consent ── */
.sq-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    cursor: pointer;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.55;
    user-select: none;
}
.sq-consent input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 1px;
    width: 16px;
    height: 16px;
    accent-color: #0d1b3e;
    cursor: pointer;
}

/* ── Notice ── */
.sq-notice {
    padding: 12px 16px;
    border-radius: 9px;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 16px;
}
.sq-notice.sq-success { background:#f0fdf4; border:1.5px solid #86efac; color:#166534; }
.sq-notice.sq-error   { background:#fff5f5; border:1.5px solid #fca5a5; color:#991b1b; }

/* ── Submit button ── */
.sq-submit-btn {
    width: 100%;
    background: #0d1b3e;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 15px 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background .2s, transform .1s, opacity .2s;
    letter-spacing: .02em;
    font-family: inherit;
}
.sq-submit-btn:hover  { filter: brightness(1.15); }
.sq-submit-btn:active { transform: scale(.99); }
.sq-submit-btn:disabled { opacity: .65; cursor: not-allowed; }

/* ── Privacy line ── */
.sq-privacy {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin: 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* ── Spinner animation ── */
@keyframes sq-spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════
   POPUP TRIGGER BUTTON
═══════════════════════════════════════ */
.sq-popup-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0d1b3e;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .1s;
    font-family: inherit;
    letter-spacing: .02em;
}
.sq-popup-trigger:hover  { background: #1a2f6a; }
.sq-popup-trigger:active { transform: scale(.98); }
.sq-popup-trigger--lg    { padding: 15px 30px; font-size: 17px; border-radius: 10px; }

/* ═══════════════════════════════════════
   MODAL OVERLAY & BOX
═══════════════════════════════════════ */
.sq-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: sq-fade-in .18s ease;
}
@keyframes sq-fade-in { from { opacity:0 } to { opacity:1 } }

.sq-modal-box {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: sq-slide-up .2s ease;
    font-family: 'Segoe UI', -apple-system, Arial, sans-serif;
}
@keyframes sq-slide-up { from { transform:translateY(20px);opacity:0 } to { transform:translateY(0);opacity:1 } }

.sq-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 22px;
    background: linear-gradient(135deg, #0d1b3e 0%, #1a3a7a 100%);
    border-radius: 16px 16px 0 0;
    color: #fff;
}
.sq-modal-icon {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sq-modal-title {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 !important;
}
.sq-modal-sub {
    font-size: 12px;
    color: rgba(255,255,255,.7);
    margin: 3px 0 0;
}
.sq-modal-close {
    margin-left: auto;
    background: rgba(255,255,255,.18);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
}
.sq-modal-close:hover { background: rgba(255,255,255,.3); }

.sq-modal-body { padding: 22px 22px 20px; }
.sq-modal-body .sq-lead-form { padding: 0; }
.sq-modal-body .sq-grid-2 { gap: 14px; }

/* ── Responsive ── */
@media (max-width: 560px) {
    .sq-grid-2 { grid-template-columns: 1fr; }
    .sq-lead-form { padding: 18px 16px; }
    .sq-form-header { padding: 16px; }
    .sq-form-title { font-size: 17px !important; }
    .sq-modal-body { padding: 16px; }
}
