/* ===================================
   Marvitel - Consulta de Viabilidade
   Design System & Styles
   =================================== */

/* --- CSS Variables --- */
:root {
    --primary: #00897B;
    --primary-dark: #00695C;
    --primary-light: #4DB6AC;
    --primary-glow: rgba(0, 137, 123, 0.3);
    --accent: #E6A817;
    --accent-dark: #C79100;

    --bg-dark: #0A1628;
    --bg-card: rgba(255, 255, 255, 0.06);
    --bg-card-solid: #ffffff;

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-dark: #1a2332;
    --text-muted: #6b7a8d;

    --border-light: rgba(255, 255, 255, 0.1);
    --border-dark: #e2e8f0;

    --gradient-hero: linear-gradient(135deg, #004D40 0%, #00695C 30%, #00897B 60%, #009688 100%);
    --gradient-primary: linear-gradient(135deg, #00897B, #00695C);
    --gradient-accent: linear-gradient(135deg, #E6A817, #F5C842);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 30px rgba(0, 137, 123, 0.2);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    display: block;
}

/* --- Registration Form Expansions --- */
}

/* --- Consultation Process Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================
   Header
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 77, 64, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(0, 77, 64, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition-fast);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover {
    color: #fff;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 0;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: var(--bg-dark);
    clip-path: ellipse(70% 100% at 50% 100%);
}

/* Floating particles */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: float-particle 15s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 80%; top: 30%; animation-delay: 3s; animation-duration: 18s; }
.particle:nth-child(3) { left: 50%; top: 60%; animation-delay: 6s; animation-duration: 14s; }
.particle:nth-child(4) { left: 30%; top: 80%; animation-delay: 2s; animation-duration: 16s; }
.particle:nth-child(5) { left: 70%; top: 10%; animation-delay: 8s; animation-duration: 20s; }

@keyframes float-particle {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    25% { transform: translate(30px, -40px) scale(1.5); opacity: 0.6; }
    50% { transform: translate(-20px, -80px) scale(1); opacity: 0.4; }
    75% { transform: translate(40px, -30px) scale(1.3); opacity: 0.5; }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: 1000px;
}

.hero-title {
    margin-bottom: 16px;
}

.hero-title-line {
    display: block;
    font-size: 1.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

.hero-title-highlight {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #B2DFDB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 40px;
    font-weight: 300;
}

/* ===================================
   Consulta Card (Glassmorphism)
   =================================== */
.consulta-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Step Indicator */
.step-header {
    margin-bottom: 28px;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
    flex-shrink: 0;
}

.step-dot.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(230, 168, 23, 0.15);
    box-shadow: 0 0 15px rgba(230, 168, 23, 0.2);
}

.step-dot.completed {
    border-color: var(--primary-light);
    background: var(--primary-light);
    color: #fff;
}

.step-line {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.step-line.active,
.step-line.completed {
    background: var(--primary-light);
}

/* Form Elements */
.form-step {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.form-step.active {
    display: block;
}

.form-label {
    display: block;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.input-group:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(230, 168, 23, 0.1);
    background: rgba(255, 255, 255, 0.12);
}

.input-icon {
    padding: 0 16px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
}

.form-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--font);
    font-size: 1.2rem;
    font-weight: 500;
    padding: 16px 8px;
    letter-spacing: 2px;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 3px;
}

.form-input-sm {
    font-size: 1rem;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    width: 100%;
    letter-spacing: 0;
}

.form-input-sm:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(230, 168, 23, 0.1);
}

.btn-search {
    background: var(--gradient-accent);
    border: none;
    padding: 16px 20px;
    cursor: pointer;
    color: #1a1a1a;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.btn-search:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* Address Display */
.address-display {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.address-row {
    display: flex;
    gap: 16px;
}

.address-field {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.address-field-small {
    flex: 0 0 120px;
}

.field-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-light);
    margin-bottom: 4px;
}

.field-value {
    display: block;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* Buttons */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #1a1a1a;
    box-shadow: 0 4px 20px rgba(230, 168, 23, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(230, 168, 23, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Loading */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-lg {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

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

/* Error */
.error-message {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: rgba(244, 67, 54, 0.12);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #ff8a80;
    font-size: 0.9rem;
    text-align: center;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.hidden {
    display: none !important;
}

/* ===================================
   Result Cards
   =================================== */
.result-card {
    text-align: center;
    padding: 30px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.result-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
}

.result-icon.success {
    background: rgba(76, 175, 80, 0.15);
    border: 2px solid rgba(76, 175, 80, 0.3);
    color: #69F0AE;
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.2);
}

.result-icon.error {
    background: rgba(244, 67, 54, 0.15);
    border: 2px solid rgba(244, 67, 54, 0.3);
    color: #ff8a80;
    box-shadow: 0 0 30px rgba(244, 67, 54, 0.2);
}

.result-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.result-title.success { color: #69F0AE; }
.result-title.error { color: #ff8a80; }

.result-desc {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 20px;
    text-align: left;
}

.detail-item {
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-light);
    margin-bottom: 4px;
}

.detail-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* ===================================
   Features Section (Como Funciona)
   =================================== */
.features {
    padding: 100px 0;
    background: var(--bg-dark);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 137, 123, 0.3);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 137, 123, 0.3);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: linear-gradient(180deg, var(--bg-dark), #060E1A);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer-brand img {
    max-height: 45px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.footer-brand .logo-text {
    font-size: 1.3rem;
    margin-bottom: 4px;
    display: block;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-list li svg {
    color: var(--primary-light);
    flex-shrink: 0;
}

.contact-list a {
    transition: var(--transition-fast);
}

.contact-list a:hover {
    color: var(--accent);
}

.footer-address p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
}

.footer-address-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-address-link:hover {
    color: var(--accent);
}

.footer-address svg {
    color: var(--primary-light);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(0, 77, 64, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav.open {
        display: flex;
    }

    .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 100px 16px 50px;
        min-height: auto;
    }

    .hero-title-line {
        font-size: 1.3rem;
    }

    .hero-title-highlight {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .consulta-card {
        padding: 24px 20px;
        border-radius: var(--radius-lg);
    }

    .address-row {
        flex-direction: column;
    }

    .address-field-small {
        flex: 1;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
        width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .footer-address p {
        justify-content: center;
    }

    .contact-list {
        align-items: center;
    }

    .step-line {
        width: 40px;
    }

    .result-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title-highlight {
        font-size: 2rem;
    }

    .form-input {
        font-size: 1rem;
        padding: 14px 8px;
    }

    .step-dot {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .step-line {
        width: 30px;
    }

    .plans-grid {
        grid-template-columns: 1fr !important;
    }

    .plan-card.popular {
        transform: none;
    }
}

/* ===================================
   Plan Group Tabs
   =================================== */
.plan-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    justify-content: center;
}

.plan-tab {
    padding: 10px 22px;
    border: none;
    border-radius: var(--radius-lg);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.plan-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.plan-tab.active {
    background: var(--primary-light, #00897B);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 137, 123, 0.4);
}

.plan-tab-content.hidden { display: none; }

.plans-grid-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    justify-items: center;
}

@media (max-width: 480px) {
    .plan-tabs { gap: 4px; }
    .plan-tab { padding: 8px 14px; font-size: 0.8rem; }
    .plans-grid-inner { grid-template-columns: 1fr !important; }
}

/* ===================================
   Registration Form (Step 3)
   =================================== */
.registration-form {
    text-align: left;
    margin-top: 10px;
}

/* Registration Sections */
.reg-section {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.reg-section:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.reg-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--primary-light);
}

.reg-section-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    background: none;
    -webkit-text-fill-color: #fff;
}

.reg-section-body {
    padding: 20px;
    background: var(--form-section-bg, rgba(0, 0, 0, 0.08));
}

/* Summary Card */
.reg-summary-card {
    background: linear-gradient(135deg, rgba(0, 137, 123, 0.15), rgba(0, 105, 92, 0.1));
    border-color: rgba(0, 137, 123, 0.25);
    padding: 20px;
}

.reg-summary-plan {
    display: flex;
    align-items: center;
    gap: 16px;
}

.reg-summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 137, 123, 0.3);
}

.reg-summary-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.reg-summary-speed {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.reg-summary-name {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.reg-summary-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    flex-shrink: 0;
}

.reg-summary-currency {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}

.reg-summary-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
}

.reg-summary-period {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.reg-summary-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 137, 123, 0.2);
    font-size: 0.82rem;
    font-weight: 500;
    color: #69F0AE;
}

/* Form Grids */
.form-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.form-grid:last-child {
    margin-bottom: 0;
}

.form-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.form-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-grid-2-1 {
    grid-template-columns: 2fr 1fr;
}

.fg-span-2 {
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.registration-form .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--form-label, rgba(255, 255, 255, 0.75));
    margin-bottom: 6px;
}

.reg-input {
    font-size: 0.95rem !important;
    letter-spacing: 0 !important;
    padding: 12px 14px !important;
    background: var(--form-input-bg, rgba(0, 0, 0, 0.25)) !important;
    border: 1.5px solid var(--form-input-border, rgba(255, 255, 255, 0.2)) !important;
    border-radius: var(--radius-sm) !important;
    width: 100% !important;
    transition: var(--transition) !important;
    color: #fff !important;
}

.reg-input:focus {
    border-color: var(--primary-light) !important;
    box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.2) !important;
    background: rgba(0, 0, 0, 0.32) !important;
}

.reg-input[readonly] {
    background: rgba(0, 0, 0, 0.15) !important;
    color: rgba(255, 255, 255, 0.65) !important;
    cursor: default;
    border-style: dashed !important;
}

.reg-input::placeholder {
    letter-spacing: 0 !important;
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.35) !important;
}

select.reg-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 36px !important;
    cursor: pointer;
}

select.reg-input option {
    background: #1a2634;
    color: #e4e8ed;
}

/* Pessoa Toggle */
.pessoa-toggle {
    display: flex;
    gap: 8px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pessoa-toggle-option {
    flex: 1;
    cursor: pointer;
}

.pessoa-toggle-option input {
    display: none;
}

.pessoa-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    text-align: center;
}

.pessoa-toggle-option input:checked + .pessoa-toggle-label {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 137, 123, 0.3);
}

.pessoa-toggle-option:hover .pessoa-toggle-label {
    color: rgba(255, 255, 255, 0.8);
}

/* Upload Boxes */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 14px;
    background: rgba(0, 0, 0, 0.18);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    min-height: 160px;
}

.upload-box:hover {
    border-color: var(--primary-light);
    background: rgba(0, 137, 123, 0.1);
}

.upload-box.has-file {
    border-color: #69F0AE;
    border-style: solid;
    background: rgba(105, 240, 174, 0.06);
}

.upload-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.upload-box:hover .upload-icon {
    color: var(--primary-light);
    background: rgba(0, 137, 123, 0.1);
}

.upload-box.has-file .upload-icon {
    color: #69F0AE;
    background: rgba(105, 240, 174, 0.1);
}

.upload-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.upload-hint {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
}

.upload-status {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: var(--transition);
}

.upload-box.has-file .upload-status {
    color: #69F0AE;
    background: rgba(105, 240, 174, 0.1);
}

/* Services (kept from before) */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.services-loading {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.service-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.service-option:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
}

.service-option:has(input:checked) {
    border-color: var(--primary-light);
    background: rgba(0, 137, 123, 0.08);
}

.service-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-light);
    flex-shrink: 0;
}

.service-info {
    display: flex;
    flex-direction: column;
}

.service-info strong {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.service-info span {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Install Fee Badge */
.install-fee-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 137, 123, 0.1);
    color: var(--primary-light);
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px dashed rgba(0, 137, 123, 0.25);
}

/* Coupon Input */
.coupon-input-wrapper {
    position: relative;
}

.coupon-feedback {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 600;
}

.coupon-feedback.valid {
    color: #69F0AE;
}

.coupon-feedback.invalid {
    color: #ff8a80;
}

/* Terms */
.reg-terms {
    margin-bottom: 20px;
}

.reg-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.reg-terms-label input[type="checkbox"] {
    display: none;
}

.reg-terms-check {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    transition: var(--transition);
    color: transparent;
}

.reg-terms-label input:checked + .reg-terms-check {
    background: var(--gradient-primary);
    border-color: var(--primary-light);
    color: #fff;
}

.reg-terms-link {
    color: var(--primary-light) !important;
    text-decoration: underline !important;
    font-weight: 500;
}

.reg-terms-link:hover {
    color: #fff !important;
}

/* Total Summary */
.reg-total-summary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 20px;
}

.reg-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
}

.reg-total-row + .reg-total-row {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.reg-total-final {
    padding-top: 12px !important;
    margin-top: 6px;
    border-top: 2px solid rgba(255, 255, 255, 0.1) !important;
    font-size: 1.1rem !important;
    font-weight: 700;
    color: #fff;
}

.reg-total-final span:last-child {
    color: var(--accent);
    font-size: 1.2rem;
}

.reg-discount-value {
    color: #69F0AE;
}

/* Final Section */
.reg-final-section {
    background: transparent;
    border: none;
    padding: 0;
}

/* ── Scheduling Calendar ── */
.sched-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.sched-calendar .sched-weekday {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.5;
    padding: 6px 0;
}
.sched-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    position: relative;
}
.sched-day.empty {
    cursor: default;
}
.sched-day.blocked {
    opacity: 0.25;
    cursor: not-allowed;
}
.sched-day.available {
    background: rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.25);
}
.sched-day.available:hover {
    background: rgba(52, 211, 153, 0.2);
    border-color: rgba(52, 211, 153, 0.5);
}
.sched-day.partial {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.25);
}
.sched-day.partial:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.5);
}
.sched-day.full {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    opacity: 0.4;
    cursor: not-allowed;
}
.sched-day.selected {
    background: rgba(99, 102, 241, 0.25) !important;
    border-color: #818cf8 !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}
.sched-day .sched-dots {
    display: flex;
    gap: 3px;
    margin-top: 2px;
}
.sched-day .sched-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}
.sched-dot.green { background: #34d399; }
.sched-dot.yellow { background: #fbbf24; }
.sched-dot.red { background: #f87171; }

/* Shift picker */
.shift-option {
    flex: 1;
    cursor: pointer;
}
.shift-option input { display: none; }
.shift-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 10px;
    border-radius: 10px;
    border: 1px solid var(--form-input-border, rgba(255,255,255,0.12));
    background: var(--form-input-bg, rgba(255,255,255,0.04));
    transition: all 0.2s;
}
.shift-option:hover .shift-box {
    border-color: rgba(99, 102, 241, 0.4);
}
.shift-option input:checked + .shift-box {
    border-color: #818cf8;
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}
.shift-option input:disabled + .shift-box {
    opacity: 0.35;
    cursor: not-allowed;
}
.shift-icon { font-size: 1.4rem; }
.shift-name { font-weight: 600; font-size: 0.9rem; }
.shift-time { font-size: 0.75rem; opacity: 0.6; }
.shift-slots { font-size: 0.72rem; opacity: 0.7; margin-top: 2px; }

/* Submit Button */
.btn-submit-registration {
    width: 100%;
    padding: 16px 32px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    justify-content: center;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 6px 24px rgba(230, 168, 23, 0.35);
}

.btn-submit-registration:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(230, 168, 23, 0.45);
}

/* ===================================
   Modal Overlay
   =================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: modalFadeIn 0.25s ease;
    padding: 20px;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal .modal-content {
    background: #1a2634;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.3s ease;
    color: var(--text-primary);
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal .modal-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid-2,
    .form-grid-3,
    .form-grid-2-1 {
        grid-template-columns: 1fr;
    }

    .fg-span-2 {
        grid-column: span 1;
    }

    .upload-grid {
        grid-template-columns: 1fr;
    }

    .reg-summary-plan {
        flex-wrap: wrap;
    }

    .reg-summary-price {
        width: 100%;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid rgba(0, 137, 123, 0.15);
    }

    .pessoa-toggle {
        flex-direction: column;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .form-grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .fg-span-2 {
        grid-column: span 2;
    }
}

/* ===================================
   Category Select
   =================================== */
.category-select-wrapper {
    position: relative;
}

.form-select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    color: #fff;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 44px;
}

.form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(230, 168, 23, 0.1);
    background-color: rgba(255, 255, 255, 0.12);
}

.form-select option,
.form-select optgroup {
    background: #1a2634;
    color: #e4e8ed;
    font-size: 0.95rem;
}

/* ===================================
   Plans Grid & Cards
   =================================== */
.plans-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.plans-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.btn-back {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.plans-grid {
    width: 100%;
}

.plans-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 30px;
}

.plan-card {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    transition: var(--transition);
    cursor: default;
}

.plan-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 137, 123, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.plan-card.popular {
    border-color: var(--accent);
    background: rgba(230, 168, 23, 0.08);
    transform: scale(1.03);
}

.plan-card.popular:hover {
    transform: scale(1.03) translateY(-4px);
}

.plan-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-accent);
    color: #1a1a1a;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

.plan-speed {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-name {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.plan-price {
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.price-currency {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}

.price-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.price-period {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.plan-install {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

.plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
}

.plan-features li svg {
    color: inherit;
    flex-shrink: 0;
}

.btn-plan {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--gradient-accent);
    border: none;
    border-radius: var(--radius-sm);
    color: #1a1a1a;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-plan:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(230, 168, 23, 0.4);
}

.plan-loyalty {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 10px;
    text-align: center;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===================================
   Address Step
   =================================== */
.selected-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 137, 123, 0.15);
    border: 1px solid rgba(0, 137, 123, 0.25);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.badge-speed {
    font-weight: 700;
    color: #fff;
}

.address-display-compact {
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.condo-address-text {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.form-row-inline {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.form-field {
    flex: 1;
}

.form-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.form-field .form-input {
    font-size: 0.95rem;
    letter-spacing: 0;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    width: 100%;
    transition: var(--transition);
}

.form-field .form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(230, 168, 23, 0.1);
}

.form-field .form-input::placeholder {
    letter-spacing: 0;
    font-size: 0.85rem;
}

.address-found {
    margin-top: 16px;
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
}

.address-found p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
}

/* Responsive additions */
@media (max-width: 768px) {
    .form-row-inline {
        flex-direction: column;
    }

    .plans-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content {
        max-width: 100%;
    }
}

