/* Base layout */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    background: radial-gradient(circle at top, #192b45 0%, #0f172a 45%, #020617 100%);
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

.app-container {
    width: 100%;
    max-width: 520px;
}

.card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.55);
    padding: 32px;
    backdrop-filter: blur(14px);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.card-header {
    margin-bottom: 24px;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-subtitle {
    color: #94a3b8;
    line-height: 1.6;
}

.progress {
    width: 100%;
    height: 10px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 24px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #a855f7, #ec4899);
    transition: width 0.4s ease;
}

.checkpoint {
    margin: 18px 0;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(250, 204, 21, 0.25);
    background: rgba(250, 204, 21, 0.08);
    color: #fef3c7;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.6;
}

.theme-callout {
    margin-bottom: 18px;
    padding: 20px 22px;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.66);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.micro-feedback {
    margin: 12px 0 20px;
    padding: 12px 14px;
    border-left: 3px solid #38bdf8;
    background: rgba(56, 189, 248, 0.08);
    color: #bae6fd;
    font-size: 0.95rem;
    line-height: 1.6;
    border-radius: 0 12px 12px 0;
}

.lead-form {
    display: grid;
    gap: 18px;
}

.input-group {
    display: grid;
    gap: 8px;
}

.input-group label {
    font-size: 0.95rem;
    color: #cbd5f5;
}

.input-group input,
.pix-payload textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.7);
    color: #f8fafc;
    font-size: 1rem;
}

.input-group input:focus,
.pix-payload textarea:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.form-errors,
.status-message,
.error-message {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.form-errors {
    background: rgba(248, 113, 113, 0.12);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.status-message {
    background: rgba(56, 189, 248, 0.12);
    color: #e0f2fe;
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.error-message {
    background: rgba(248, 113, 113, 0.18);
    color: #fee2e2;
    border: 1px solid rgba(248, 113, 113, 0.45);
}

.lead-summary {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.15);
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.pix-box,
.checkout-box {
    margin-top: 20px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.3);
    display: grid;
    gap: 14px;
}

.pix-box h2,
.checkout-box h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #38bdf8;
}

.pix-box p,
.checkout-box p {
    color: #e2e8f0;
}

.pix-qrcode {
    width: 220px;
    height: 220px;
    margin: 0 auto;
    border-radius: 16px;
    background: #fff;
    padding: 12px;
}

.pix-payload {
    display: grid;
    gap: 10px;
}

.pix-payload label {
    font-size: 0.9rem;
    color: #cbd5f5;
}

.pix-payload textarea {
    min-height: 120px;
    resize: none;
}

.pix-expiration {
    font-size: 0.9rem;
    color: #fbbf24;
}

@media (min-width: 640px) {
    .lead-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 20px;
    }

    .lead-form .input-group:nth-child(3),
    .lead-form .actions {
        grid-column: 1 / -1;
    }

    .lead-form .actions {
        justify-content: flex-end;
    }
}

.lead-form .actions {
    display: flex;
    justify-content: center;
}

.lead-form .actions .btn-primary {
    max-width: 260px;
}

.loading-card {
    display: grid;
    gap: 18px;
    text-align: center;
}

.loader-bar {
    width: 100%;
    height: 12px;
    border-radius: 9999px;
    background: rgba(148, 163, 184, 0.18);
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #38bdf8, #a855f7, #ec4899);
    transition: width 0.7s ease;
}

.loading-status {
    font-size: 0.95rem;
    color: #cbd5f5;
}

.loading-steps {
    list-style: none;
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    text-align: left;
}

.loading-step {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.08);
    color: #94a3b8;
    font-size: 0.92rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.loading-step.active {
    background: rgba(56, 189, 248, 0.22);
    color: #e0f2fe;
    border-color: rgba(56, 189, 248, 0.5);
}

.loading-feedback {
    border-left-color: #f97316;
    background: rgba(249, 115, 22, 0.12);
    color: #ffedd5;
    text-align: left;
}

.payment-benefits {
    list-style: none;
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0 0 8px;
    color: #e2e8f0;
    text-align: left;
    font-size: 0.95rem;
}

.payment-benefits li {
    position: relative;
    padding-left: 22px;
}

.payment-benefits li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #38bdf8;
}

.theme-breakdown {
    display: grid;
    gap: 10px;
    margin: 12px 0 20px;
}

.theme-breakdown-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.theme-breakdown-label {
    font-size: 0.95rem;
    color: #e2e8f0;
    font-weight: 500;
}

.theme-breakdown-score {
    font-size: 0.95rem;
    color: #38bdf8;
    font-weight: 600;
}

.question-text {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 24px;
}

.options {
    display: grid;
    gap: 16px;
}

.option {
    display: block;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(148, 163, 184, 0.05);
    color: inherit;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.option:hover,
.option:focus-within {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.6);
    background: rgba(56, 189, 248, 0.08);
}

.option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-label {
    font-size: 1rem;
    font-weight: 500;
}

.actions {
    margin-top: 32px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.actions form,
.actions a {
    flex: 1;
}

.btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 14px 18px;
    border-radius: 14px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    color: #0f172a;
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px rgba(168, 85, 247, 0.35);
}

.btn-secondary {
    background: rgba(148, 163, 184, 0.15);
    color: #e2e8f0;
}

.meta-info {
    margin-top: 16px;
    font-size: 0.95rem;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(148, 163, 184, 0.15);
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 0.85rem;
    color: #cbd5f5;
    margin: 0;
}

.result-card {
    display: grid;
    gap: 16px;
    text-align: center;
}

.result-score {
    font-size: 2.5rem;
    font-weight: 700;
    color: #38bdf8;
}

.result-text {
    font-size: 1.05rem;
    color: #cbd5f5;
    line-height: 1.6;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.pill {
    padding: 6px 12px;
    border-radius: 9999px;
    background: rgba(168, 85, 247, 0.2);
    color: #f8fafc;
    font-size: 0.85rem;
}

@media (max-width: 640px) {
    .card {
        padding: 24px;
        border-radius: 18px;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .question-text {
        font-size: 1.15rem;
    }

    .btn {
        flex: 1 1 100%;
    }

    body {
        padding: 18px;
    }
}

.footer-note {
    margin-top: 20px;
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.8);
    text-align: center;
}

.price-tag {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fbbf24;
    margin: 12px 0;
}

.payment-card {
    text-align: center;
    display: grid;
    gap: 12px;
}

.payment-options {
    display: grid;
    gap: 12px;
}

.language-selector {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.language-pill {
    padding: 6px 10px;
    border-radius: 20px;
    background: rgba(56, 189, 248, 0.25);
    font-size: 0.85rem;
    color: #e0f2fe;
}
