/* ============================================
   Ademicon Leads - Landing Page Styles
   ============================================ */

:root {
    --primary: #C41E24;
    --primary-dark: #a51a1f;
    --primary-subtle: #fef2f2;
    --text: #1a1a1a;
    --text-secondary: #555;
    --text-muted: #999;
    --bg: #F5F5F6;
    --white: #FFFFFF;
    --border: #E5E5E5;
    --success: #16a34a;
    --success-bg: #f0fdf4;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --transition: all 0.2s ease;
    --font: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ---- Page Container ---- */
.page-wrapper {
    max-width: 520px;
    margin: 0 auto;
    padding: 0;
    background: var(--white);
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0,0,0,0.06);
}

/* ---- Header ---- */
.header {
    text-align: center;
    padding: 32px 24px 20px;
    background: var(--white);
}

.header__logo {
    height: 60px;
    margin-bottom: 16px;
}

.header__subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.5;
}

/* ---- Form Section ---- */
.form-section {
    padding: 0 24px 32px;
}

/* ---- Question Block ---- */
.question {
    margin-bottom: 24px;
}

.question__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.question__number {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.question__title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.question__title span {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ---- Input with Icon ---- */
.input-wrapper {
    position: relative;
}

.input-wrapper .material-icons {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-muted);
}

.input-field {
    width: 100%;
    padding: 13px 14px 13px 44px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.85rem;
    color: var(--text);
    transition: var(--transition);
    background: var(--white);
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(196, 30, 36, 0.1);
}

.input-field::placeholder {
    color: var(--text-muted);
}

/* ---- Radio Options ---- */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.radio-option {
    position: relative;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
}

.radio-option label::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 50%;
    flex-shrink: 0;
    transition: var(--transition);
}

.radio-option input[type="radio"]:checked + label {
    border-color: var(--primary);
    background: var(--primary-subtle);
    color: var(--primary);
    font-weight: 700;
}

.radio-option input[type="radio"]:checked + label::before {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: inset 0 0 0 3px #fff;
}

.radio-option label:hover {
    border-color: #ccc;
}

/* ---- Card Options (objective) ---- */
.card-options {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.card-option {
    position: relative;
}

.card-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.card-option label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.3;
    background: var(--white);
}

.card-option label::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-radius: 50%;
    flex-shrink: 0;
    transition: var(--transition);
}

.card-option label .material-icons {
    font-size: 20px;
    color: var(--primary);
    margin-left: auto;
    flex-shrink: 0;
}

.card-option input[type="radio"]:checked + label {
    border-color: var(--primary);
    background: var(--primary-subtle);
    color: var(--primary);
    font-weight: 700;
}

.card-option input[type="radio"]:checked + label::before {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: inset 0 0 0 3px #fff;
}

.card-option label:hover {
    border-color: #ccc;
}

@media (max-width: 400px) {
    .card-options { grid-template-columns: 1fr 1fr; }
}

/* ---- Pill Options (prazo, credito) ---- */
.pill-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pill-option {
    position: relative;
}

.pill-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pill-option label {
    display: block;
    padding: 8px 14px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    background: var(--white);
}

.pill-option input[type="radio"]:checked + label {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.pill-option label:hover {
    border-color: #ccc;
}

/* ---- Checkbox ---- */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-group label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
}

/* ---- Submit Button ---- */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(196, 30, 36, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ---- Privacy Notice ---- */
.privacy-notice {
    text-align: center;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.privacy-notice .material-icons {
    font-size: 14px;
}

/* ---- Footer ---- */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.footer__credit {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.footer__credit a {
    display: inline-flex;
    align-items: center;
}

.footer__credit img {
    height: 16px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.footer__credit a:hover img {
    opacity: 1;
}

/* ---- Success Overlay ---- */
.success-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.97);
    z-index: 100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.success-overlay.active {
    display: flex;
}

.success-overlay__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--success-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.success-overlay__icon .material-icons {
    font-size: 40px;
    color: var(--success);
}

.success-overlay__title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.success-overlay__text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 320px;
    line-height: 1.6;
}

/* ---- Divider ---- */
.divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0 24px;
}

/* ---- Validation ---- */
.input-field.error {
    border-color: var(--primary);
}

.error-msg {
    font-size: 0.7rem;
    color: var(--primary);
    margin-top: 4px;
    font-weight: 600;
    display: none;
}

.error-msg.show {
    display: block;
}

/* ---- Toast ---- */
.toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 200;
    transition: bottom 0.3s;
    white-space: nowrap;
}

.toast.show {
    bottom: 24px;
}

.toast.error {
    background: var(--primary);
}

/* ---- Spinner ---- */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
