/* ============================================================
   SpottiLead – Lead Capture Form Styles  (Figma-matched)
   ============================================================ */

/* ── Reset / Base ─────────────────────────────────────────── */

*,
*::before,
*::after { box-sizing: border-box; }

body {
    margin: 0;
    background: #fff;
    color: #111;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ── Page ─────────────────────────────────────────────────── */

.spotti-page {
    min-height: 100vh;
    background: #fff;
    padding: 56px 24px 80px;
}

/* ── Container ────────────────────────────────────────────── */

.spotti-container {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

/* ── Logo ─────────────────────────────────────────────────── */

.spotti-logo {
    font-family: 'Rajdhani', 'Jura', 'Exo 2', 'Segoe UI', sans-serif;
    font-size: 52px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #111;
    margin-bottom: 28px;
    line-height: 1;
    text-transform: lowercase;
}

/* ── Subtitle ─────────────────────────────────────────────── */

.spotti-subtitle {
    font-size: 14px;
    font-weight: bold;
    color: #111;
    margin: 0 0 24px;
}

/* ── Form field gap ───────────────────────────────────────── */

#leadForm {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#authForm .spotti-field {
  margin-bottom: 8px;
}

/* ── Two-column row ───────────────────────────────────────── */

.spotti-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.spotti-row .spotti-field:first-child .spotti-input {
    border-right: none;
    border-radius: 0;
}

.spotti-row .spotti-field:last-child .spotti-input {
    border-radius: 0;
}

/* ── Field wrapper ────────────────────────────────────────── */

.spotti-field {
    display: flex;
    flex-direction: column;
}

/* ── Input / Textarea ─────────────────────────────────────── */

.spotti-input {
    width: 100%;
    background: #f5f5f5;
    border: none;
    /* border-bottom: 1px solid #e0e0e0; */
    border-radius: 0;
    padding: 16px 14px;
    font-size: 13px;
    font-weight: 400;
    color: #111;
    outline: none;
    transition: background 0.15s, border-color 0.15s;
    appearance: none;
    -webkit-appearance: none;
}

.spotti-input::placeholder {
    color: #888;
    font-weight: 400;
}

.spotti-input:focus {
    background: #efefef;
    border-color: #bbb;
    border-bottom-color: #555;
}

.spotti-input.is-invalid {
    border-bottom-color: #c0392b;
    background: #fdf5f5;
}

/* Textarea */
.spotti-textarea {
    resize: none;
    min-height: 130px;
}

/* ── Inline field (label + input side by side) ────────────── */

.spotti-inline-field {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border: 1px solid #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    padding: 16px 14px;
    gap: 10px;
}

.spotti-inline-label {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
    flex-shrink: 0;
}

.spotti-inline-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 13px;
    color: #888;
    min-width: 0;
    padding: 0;
}

.spotti-inline-input::placeholder {
    color: #aaa;
}

.spotti-inline-input.is-invalid {
    color: #c0392b;
}

/* ── Yes / No inline ──────────────────────────────────────── */

.spotti-yesno {
    display: flex;
    align-items: center;
    gap: 4px;
}

.spotti-yesno-option {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.spotti-yesno-option input[type="radio"] {
    display: none;
}

.spotti-yesno-option span {
    font-size: 13px;
    color: #aaa;
    font-weight: 400;
    transition: color 0.15s, font-weight 0.15s;
}

.spotti-yesno-option:has(input:checked) span {
    color: #111;
    font-weight: 700;
}

.spotti-yesno-sep {
    font-size: 13px;
    color: #aaa;
    padding: 0 2px;
}

/* ── Validation error ─────────────────────────────────────── */

.spotti-error {
    font-size: 11px;
    color: #c0392b;
    padding: 3px 14px 0;
    display: none;
}

.spotti-error.is-visible {
    display: block;
}

/* ── Checkboxes ───────────────────────────────────────────── */

.spotti-checks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 3em;
}

.spotti-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #111;
    user-select: none;
    font-weight: bold;
}

.spotti-check-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1.5px solid #999;
    border-radius: 2px;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: background 0.15s, border-color 0.15s;
}

.spotti-check-label input[type="checkbox"]:checked {
    background: #111;
    border-color: #111;
}

.spotti-check-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.spotti-link {
    color: #888;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.spotti-link:hover { color: #111; }

/* ── Submit button ────────────────────────────────────────── */

.spotti-btn {
    display: block;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 0;
    padding: 16px 0;
    width: 270px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.15s;
    text-align: center;
}

.spotti-btn:hover  { background: #333; }
.spotti-btn:active { background: #000; }

/* ── Success page ─────────────────────────────────────────── */

.spotti-success {
    padding: 80px 24px;
}

.spotti-success .spotti-logo {
    margin-bottom: 48px;
}

.spotti-success-title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 0 0 12px;
}

.spotti-success-text {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 32px;
}

.spotti-success-link {
    display: inline-block;
    background: #111;
    color: #fff;
    text-decoration: none;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: background 0.15s;
}

.spotti-success-link:hover { background: #333; color: #fff; }

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 480px) {
    .spotti-page    { padding: 40px 16px 60px; }
    .spotti-logo    { font-size: 40px; }

    .spotti-row {
        grid-template-columns: 1fr;
    }

    .spotti-row .spotti-field:first-child .spotti-input {
        border-right: 1px solid #f5f5f5;
    }

    .spotti-btn { width: 100%; }

    .spotti-inline-field { flex-wrap: wrap; }
    .spotti-inline-input { width: 100%; }
}

.mt-3em {
  margin-top: 3em;
}