:root {
    --primary-color: #6a0dad;
    --primary-dark: #5a009d;
    --accent-color: #00d2ff;
    --bg-light: #f8f9fa;
    --detail-yellow: #ffc107;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
}

/* Navbar tweaks */
.navbar-brand { display: flex; align-items: center; }
.navbar-brand img { max-height: 60px; }
.navbar-brand span { font-size: 1.8rem; color: #6A0DAD; font-family: 'Poppins', sans-serif; margin-left: 10px; }

/* WIZARD CONTAINER */
.wizard-container {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(106, 13, 173, 0.15);
    padding: 40px;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step { display: none; animation-duration: 0.5s; }
.step.active { display: block; }

h3.step-title { color: var(--primary-color); font-weight: 700; font-size: 1.8rem; margin-bottom: 10px; }
p.step-desc { color: #666; margin-bottom: 25px; font-size: 1.1rem; }

.form-floating > .form-control { border-radius: 10px; border: 2px solid #e0e0e0; }
.form-floating > .form-control:focus { border-color: var(--primary-color); box-shadow: 0 0 0 0.25rem rgba(106, 13, 173, 0.25); }
.custom-input-group { margin-bottom: 20px; }

/* Buttons */
.actions-bar { margin-top: 30px; display: flex; justify-content: space-between; align-items: center; }
.btn-prev { background: transparent; color: #999; border: none; font-weight: 600; transition: color 0.3s, background 0.3s; padding: 10px 20px; border-radius: 50px; }
.btn-prev:hover { color: var(--primary-color); }
.btn-next { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: white; border: none; padding: 12px 35px; border-radius: 50px; font-size: 1.1rem; font-weight: 600; box-shadow: 0 4px 15px rgba(106, 13, 173, 0.4); transition: transform 0.2s, box-shadow 0.2s; }
.btn-next:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(106, 13, 173, 0.5); color: white; }

/* Progress Bar */
.progress-container { position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: #eee; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent-color), var(--primary-color)); width: 0%; transition: width 0.4s ease; }

/* Planos */
.planos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; margin-top: 10px; }
.plan-box { background: #fff; border: 2px solid #eee; border-radius: 15px; padding: 15px; text-align: center; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; }
.plan-box:hover { transform: translateY(-5px); border-color: #d1b3ff; }
.plan-box.active { border-color: var(--primary-color); background: #fbf5ff; box-shadow: 0 5px 15px rgba(106, 13, 173, 0.2); }
.plan-box.active::after { content: '\f00c'; font-family: 'Font Awesome 5 Free'; font-weight: 900; position: absolute; top: 10px; right: 10px; color: var(--primary-color); font-size: 1.2rem; }
.plan-title { font-weight: 800; color: var(--primary-dark); font-size: 1.4rem; }
.price-highlight { font-size: 1.2rem; font-weight: bold; color: var(--primary-color); margin: 10px 0; }

.toggle-price-container { background: #eee; border-radius: 20px; padding: 4px; display: inline-flex; margin-bottom: 10px; }
.toggle-btn { padding: 5px 15px; border-radius: 16px; border: none; background: transparent; font-size: 0.8rem; cursor: pointer; transition: 0.3s; }
.toggle-btn.active { background: white; color: var(--primary-color); box-shadow: 0 2px 5px rgba(0,0,0,0.1); font-weight: bold; }

.features-list { font-size: 0.85rem; color: #555; text-align: left; margin-top: 10px; }
.features-list div { margin-bottom: 4px; }
.features-list i { color: var(--primary-color); width: 20px; text-align: center; }

/* Spinner & Utils */
#spinner-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(255, 255, 255, 0.8); display: none; align-items: center; justify-content: center; z-index: 9999; backdrop-filter: blur(2px); }
.spinner { width: 50px; height: 50px; border: 5px solid #f3f3f3; border-top: 5px solid var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.custom-checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 10px; border: 1px solid #eee; border-radius: 10px; margin-top: 10px; }
.custom-checkbox input { transform: scale(1.5); accent-color: var(--primary-color); }

/* Footer */
footer { padding: 2rem 0; color: #fff; }
.footer-content { display: flex; justify-content: space-around; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-section { flex: 1; min-width: 250px; margin-bottom: 20px; }
.footer-section h3 { margin-bottom: 15px; font-size: 1.2rem; }
.footer-section p { margin-bottom: 8px; font-size: 0.9rem; }
.footer-section a { color: #fff; text-decoration: none; transition: color 0.3s; }
.footer-section a:hover { color: var(--accent-color); }

/* Carrossel de Vencimento */
.vencimento-carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 2px;
    margin-bottom: 20px;
    /* Ocultar barra de rolagem mas manter funcionalidade */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE/Edge */
}
.vencimento-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.vencimento-item {
    min-width: 70px;
    height: 70px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}

.vencimento-item .dia {
    font-weight: 800;
    font-size: 1.2rem;
    color: #666;
}

.vencimento-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.vencimento-item.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(106, 13, 173, 0.3);
    transform: scale(1.1);
}

.vencimento-item.active .dia {
    color: #fff;
}
.instalacao-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.instalacao-card {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #fff;
}

.instalacao-card:hover {
    border-color: #d1b3ff;
    transform: translateY(-2px);
}

.instalacao-card.active {
    border-color: var(--primary-color);
    background: #fbf5ff;
    box-shadow: 0 4px 12px rgba(106, 13, 173, 0.1);
}

.instalacao-img-wrapper {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 15px;
    border: 1px solid #eee;
}

.instalacao-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instalacao-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.instalacao-content .titulo {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1rem;
}

.instalacao-content .desc {
    font-size: 0.85rem;
    color: #666;
}

.badge-preco {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 5px;
    width: fit-content;
    margin-top: 5px;
}

.badge-preco.grátis { background: #e8f5e9; color: #2e7d32; }
.badge-preco.taxa { background: #fff3e0; color: #ef6c00; }

.check-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    opacity: 0;
    transition: 0.3s;
}

.instalacao-card.active .check-icon {
    opacity: 1;
}

/* Fundo escuro */
.progress-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

/* Cartão Branco */
.progress-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* Lista de etapas */
.progress-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step-item .icon {
    margin-right: 15px;
    width: 25px;
    text-align: center;
    font-size: 1.1rem;
}

.step-item .text {
    font-weight: 500;
    font-size: 1rem;
}

/* Estados da etapa */
.step-item.pending .icon { color: #ccc; }

.step-item.processing {
    opacity: 1;
    transform: translateX(5px);
}
.step-item.processing .text { color: var(--primary-color); font-weight: 700; }
.step-item.processing .icon { 
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}
.step-item.processing .icon i::before { content: "\f1ce"; } /* Ícone fa-spinner */

.step-item.completed {
    opacity: 1;
}
.step-item.completed .text { color: #28a745; }
.step-item.completed .icon { color: #28a745; }
.step-item.completed .icon i::before { content: "\f00c"; } /* Ícone fa-check */

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

/* Cores para o processamento do cadastro */
.step-item.pending { color: #ccc; }
.step-item.active { color: #007bff; font-weight: bold; }
.step-item.completed { color: #28a745; }
.step-item .icon { margin-right: 10px; }
