/* ==========================================================================
   TurisOne Orçamentos - Pure Vanilla CSS3
   ========================================================================== */

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --secondary-color: #0f172a;
    --accent-green: #10b981;
    --accent-green-hover: #059669;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg-page: #EEE;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --border-hover: #93c5fd;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* Variáveis idênticas à Landing Page www */
    --bg-main: #EEE;
    --text-main-www: #000;
    --bg-light-card: #FFF;
    --text-light-card: #222;
    --bg-dark-card: #222;
    --text-dark-card: #DDD;
    --accent-purple: #9900CC;
    --accent-pink: #FF0066;
    --accent-orange: #FF9966;
    --accent-yellow: #FFCC00;
}

/* Reset básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main) !important;
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Conteúdo Principal & Layout com compensação para Navbar Fixa */
.main-content {
    padding-top: 100px;
    padding-bottom: 60px;
}

.wizard-hero {
    text-align: center;
    margin-bottom: 30px;
}

.wizard-hero h1 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.wizard-hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Barra de Progresso das Etapas (Wizard Steps) */
.steps-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    position: relative;
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
}

.step-title {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
}

.step-item.active .step-number {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.step-item.active .step-title {
    color: var(--primary-color);
}

.step-item.completed .step-number {
    background-color: var(--accent-green);
    color: #ffffff;
}

/* Grid Layout Principal (Esquerda: Form, Direita: Card de Resumo Fixo) */
.wizard-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

@media (max-width: 992px) {
    .wizard-grid {
        grid-template-columns: 1fr;
    }
}

/* Seção de Etapas (Forms) */
.wizard-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.step-header {
    margin-bottom: 24px;
    border-bottom: 2px solid var(--bg-page);
    padding-bottom: 14px;
}

.step-header h2 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-header h2 i {
    color: var(--primary-color);
}

.step-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 4px;
}

/* Form Controls & Inputs */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-group label .required {
    color: #ef4444;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: #ffffff;
    color: var(--text-main);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Choice Cards (Radio & Checkboxes) */
.option-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.option-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #ffffff;
    position: relative;
}

.option-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.option-card.selected {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.option-icon {
    font-size: 1.6rem;
    color: var(--primary-color);
    width: 44px;
    height: 44px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.option-details {
    flex: 1;
}

.option-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--secondary-color);
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-price-tag {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 700;
    background: #ffffff;
    padding: 2px 10px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.option-description {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Tag de categoria */
.category-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background: #e2e8f0;
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

/* Sticky Summary Card (Painel da Direita) */
.summary-card {
    background: var(--secondary-color);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 26px;
    position: sticky;
    top: 20px;
    box-shadow: var(--shadow-lg);
}

.summary-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.summary-header h3 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-label {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 2.3rem;
    font-weight: 800;
    color: #60a5fa;
    margin: 4px 0;
}

.price-pix-discount {
    font-size: 0.9rem;
    color: #34d399;
    font-weight: 600;
}

.price-installments {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-top: 4px;
}

.summary-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.metric-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.metric-label {
    font-size: 0.75rem;
    color: #94a3b8;
}

.selected-items-list {
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 6px;
}

.selected-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.selected-item-row .item-name {
    color: #cbd5e1;
}

.selected-item-row .item-price {
    font-weight: 600;
    color: #60a5fa;
}

/* Botões de Ação do Wizard */
.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: #e2e8f0;
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: #cbd5e1;
}

.btn-green {
    background-color: var(--accent-green);
    color: #ffffff;
    width: 100%;
    justify-content: center;
    font-size: 1.05rem;
    padding: 14px 20px;
}

.btn-green:hover {
    background-color: var(--accent-green-hover);
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    background: transparent;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Rodapé Institucional do Ecossistema TurisOne (Idêntico ao index.php www)
   ========================================================================== */
.landing-footer {
    background: #090d16 !important;
    color: #94a3b8 !important;
    padding: 60px 20px 40px 20px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    font-size: 13px !important;
    margin-top: 40px !important;
}

.footer-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.footer-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 3rem 2rem !important;
    margin-bottom: 3rem !important;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

.footer-group-title {
    text-transform: uppercase !important;
    letter-spacing: .15em !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #38bdf8 !important;
    margin-bottom: 1.25rem !important;
}

.footer-group-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: .8rem !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: .05em !important;
    color: #94a3b8 !important;
}

.footer-group-nav a {
    color: #94a3b8 !important;
    transition: color .2s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
}

.footer-group-nav a:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

.footer-group-nav i {
    color: #0284c7 !important;
    margin-right: 8px !important;
}

.footer-bottom-bar {
    padding-top: 24px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
}

@media (min-width: 768px) {
    .footer-bottom-bar {
        flex-direction: row !important;
    }
}

.footer-copyright {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    letter-spacing: 0.5px !important;
}

/* Estilos de Impressão (PDF / Proposta Comercial Oficial) */
@media print {
    body {
        background-color: #ffffff;
        color: #000000;
    }

    .site-header, .steps-progress, .wizard-hero, .site-footer, .wizard-actions, .summary-card {
        display: none !important;
    }

    .wizard-grid {
        display: block;
    }

    .wizard-card {
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .step-content {
        display: block !important;
    }

    .proposal-print-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 2px solid #2563eb;
        padding-bottom: 15px;
        margin-bottom: 25px;
    }
}
