/* 
  Estilo Premium para Clínica de Marca 
  Tema Escuro, Glassmorphism, Gradientes suaves 
*/

:root {
    /* Cores base */
    --bg-dark: #0b2d39;
    --bg-darker: #1b1f23;

    /* Acentos */
    --accent-gold: #b89a67;
    --accent-gold-dim: rgba(184, 154, 103, 0.2);
    --accent-red: #ff4b4b;
    --accent-red-dim: rgba(255, 75, 75, 0.2);
    --accent-blue: #3b82f6;

    /* Texto */
    --text-primary: #f6f3ee;
    --text-secondary: rgba(246, 243, 238, 0.7);
    --text-muted: rgba(246, 243, 238, 0.4);

    /* Superfícies */
    --surface-1: rgba(246, 243, 238, 0.03);
    --surface-2: rgba(246, 243, 238, 0.06);
    --border-color: rgba(246, 243, 238, 0.08);

    /* Efeitos */
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(15, 17, 21, 0) 70%);
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(15, 17, 21, 0) 70%);
}

/* Layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.text-center {
    text-align: center;
}

.mt-6 {
    margin-top: 1.5rem;
}

/* Header */
.header {
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
}

.badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.highlight {
    background: linear-gradient(90deg, var(--text-primary), var(--text-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 1px dashed var(--accent-red);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
}

/* Glass Panels */
.glass-panel {
    background: var(--surface-1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

/* Progress Tracker */
.progress-tracker {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.step.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--accent-gold-dim);
}

.step.completed {
    background: rgba(246, 243, 238, 0.1);
    color: var(--text-primary);
    border-color: rgba(246, 243, 238, 0.3);
}

.step-line {
    height: 2px;
    width: 60px;
    background: var(--surface-2);
    margin: 0 10px;
    transition: var(--transition-smooth);
}

.step-line.active {
    background: var(--accent-gold-dim);
}

/* Calculator Blocks */
.calc-block {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.calc-block.active {
    display: block;
}

.block-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.block-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
}

.block-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Forms */
.input-group {
    margin-bottom: 1.75rem;
}

label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.input-wrapper:focus-within {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px var(--accent-gold-dim);
}

.prefix {
    padding: 1rem;
    color: var(--text-secondary);
    background: rgba(246, 243, 238, 0.02);
    border-right: 1px solid var(--border-color);
    font-weight: 600;
}

input[type="number"],
input[type="text"] {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    outline: none;
    font-family: 'Outfit', sans-serif;
}

input[type="number"]::placeholder,
input[type="text"]::placeholder {
    color: var(--text-muted);
}

.help-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Insights */
.insight-box {
    background: rgba(59, 130, 246, 0.05);
    border-left: 3px solid var(--accent-blue);
    padding: 1.25rem;
    border-radius: 0 8px 8px 0;
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    animation: slideIn 0.3s ease-out;
}

.insight-icon {
    font-size: 1.25rem;
}

.insight-box p {
    font-size: 0.9rem;
    color: #d4d4d8;
    line-height: 1.5;
}

.hidden {
    display: none !important;
}

/* Buttons */
.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
}

.form-actions.space-between {
    justify-content: space-between;
}

.btn {
    padding: 0.85rem 1.75rem;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(246, 243, 238, 0.15);
}

.btn-secondary {
    background: var(--surface-2);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--surface-1);
    border-color: rgba(246, 243, 238, 0.2);
}

.btn-accent {
    background: var(--accent-gold);
    color: var(--bg-dark);
}

.btn-accent:hover {
    background: #e2be4b;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-gold-dim);
}

.btn-glow {
    background: linear-gradient(135deg, var(--accent-gold), #e2be4b);
    color: var(--bg-darker);
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    margin-top: 1rem;
    box-shadow: 0 10px 30px var(--accent-gold-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-glow:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
}

.btn-text {
    background: transparent;
    color: var(--text-secondary);
}

.btn-text:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Result Section */
.result-header {
    margin-bottom: 2.5rem;
}

.result-title {
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.loss-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 4.5rem;
    line-height: 1;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 40px var(--accent-gold-dim);
}

.loss-amount.critical {
    color: #ff8a00;
    text-shadow: 0 0 40px rgba(255, 138, 0, 0.2);
}

.loss-amount.severe {
    color: var(--accent-red);
    text-shadow: 0 0 40px var(--accent-red-dim);
}

.loss-sub {
    color: #a1a1aa;
    font-size: 1.1rem;
}

.verdict-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.verdict-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gold);
}

.verdict-box.critical::before {
    background: #ff8a00;
}

.verdict-box.severe::before {
    background: var(--accent-red);
}

.verdict-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    background: var(--accent-gold-dim);
    color: var(--accent-gold);
}

.verdict-badge.critical {
    background: rgba(255, 138, 0, 0.15);
    color: #ff8a00;
}

.verdict-badge.severe {
    background: var(--accent-red-dim);
    color: var(--accent-red);
}

.verdict-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.verdict-desc {
    color: #d4d4d8;
    line-height: 1.6;
}

/* Footer / CTA */
.qr-placeholder {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.qr-mock {
    width: 80px;
    height: 80px;
    background: var(--surface-2);
    border-radius: 8px;
    position: relative;
    padding: 6px;
    display: flex;
    border: 1px solid var(--border-color);
}

.qr-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid var(--text-secondary);
}

.qr-corner.tl {
    top: 6px;
    left: 6px;
    border-right: none;
    border-bottom: none;
}

.qr-corner.tr {
    top: 6px;
    right: 6px;
    border-left: none;
    border-bottom: none;
}

.qr-corner.bl {
    bottom: 6px;
    left: 6px;
    border-right: none;
    border-top: none;
}

.qr-center {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, transparent, transparent 4px, var(--surface-2) 4px, var(--surface-2) 8px);
}

.cta-text {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .title {
        font-size: 1.75rem;
    }

    .glass-panel {
        padding: 1.5rem;
    }

    .loss-amount {
        font-size: 3rem;
    }

    .verdict-title {
        font-size: 1.5rem;
    }

    .form-actions {
        flex-direction: column-reverse;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }

    .btn.next-step {
        margin-bottom: 0.5rem;
    }
}