/*
  Página standalone (orcamento.php) - HTML + CSS puro + JS vanilla,
  sem Bootstrap. Usa só as variáveis de theme.css.
  Mobile-first: base <=480px, media queries 768px+ e 1024px+.
*/

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-heading);
    background-color: var(--bg);
    color: var(--header);
}

a {
    text-decoration: none;
}

/* ---------- Header mínimo ---------- */
.vv-mini-header {
    background-color: var(--white);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 50;
}
.vv-mini-header-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.vv-logo img {
    height: 32px;
}
.vv-back-link {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.vv-back-link:hover {
    color: var(--theme);
}

/* ---------- Layout principal ---------- */
.vv-orcamento-wrap {
    padding: 24px 16px 56px;
}
.vv-orcamento-card {
    max-width: 680px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 24px 20px;
}
.vv-orcamento-card h1 {
    font-size: 24px;
    margin: 0 0 6px;
    color: var(--header);
}
.vv-subtitle {
    color: var(--text);
    margin: 0 0 24px;
}

/* ---------- Barra de progresso ---------- */
.vv-progress {
    margin-bottom: 28px;
}
.vv-progress-bar {
    height: 6px;
    border-radius: 999px;
    background-color: var(--border);
    overflow: hidden;
    margin-bottom: 14px;
}
.vv-progress-fill {
    height: 100%;
    width: 33.33%;
    background-color: var(--theme);
    border-radius: 999px;
    transition: width 0.3s ease-in-out;
}
.vv-progress-steps {
    list-style: none;
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    gap: 8px;
}
.vv-progress-steps li {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: var(--text);
    font-weight: 600;
}
.vv-progress-steps li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--border);
    color: var(--white);
    margin: 0 auto 6px;
    font-size: 13px;
}
.vv-progress-steps li.active span,
.vv-progress-steps li.done span {
    background-color: var(--theme);
}
.vv-progress-steps li.active {
    color: var(--header);
}

/* ---------- Campos de formulário ---------- */
.vv-step-panel {
    display: none;
}
.vv-step-panel.active {
    display: block;
    animation: vv-fade-in 0.25s ease-in-out;
}
@keyframes vv-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.vv-field {
    margin-bottom: 18px;
}
.vv-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--header);
}
.vv-field input[type="text"],
.vv-field input[type="number"],
.vv-field input[type="datetime-local"],
.vv-field select,
.vv-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background-color: var(--white);
    color: var(--header);
}
.vv-field textarea {
    min-height: 100px;
    resize: vertical;
}
.vv-field input:focus,
.vv-field select:focus,
.vv-field textarea:focus {
    outline: none;
    border-color: var(--theme);
}
.vv-field.vv-invalid input,
.vv-field.vv-invalid select {
    border-color: var(--theme);
}
.vv-error {
    display: block;
    color: var(--theme);
    font-size: 13px;
    margin-top: 6px;
    min-height: 16px;
}

.vv-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.vv-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
}
.vv-radio input {
    width: 18px;
    height: 18px;
}

/* ---------- Botões ---------- */
.vv-step-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}
.vv-step-actions--center {
    justify-content: center;
    flex-wrap: wrap;
}
.vv-btn {
    min-height: 48px;
    padding: 12px 24px;
    border-radius: var(--radius);
    border: none;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.vv-btn-primary {
    background-color: var(--theme);
    color: var(--white);
}
.vv-btn-primary:hover {
    opacity: 0.92;
}
.vv-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.vv-btn-ghost {
    background-color: var(--bg);
    color: var(--text);
}
.vv-btn-ghost:hover {
    background-color: var(--border);
}

.vv-form-error {
    background-color: #FFE9E7;
    color: var(--theme);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 14px;
}

/* ---------- Tela de sucesso ---------- */
.vv-success {
    text-align: center;
    padding: 12px 0;
}
.vv-success-icon {
    font-size: 56px;
    color: var(--success);
    margin-bottom: 12px;
}
.vv-success h2 {
    margin: 0 0 12px;
    color: var(--header);
}
.vv-success p {
    color: var(--text);
    margin-bottom: 24px;
}
.vv-success #vv-pedido-numero {
    color: var(--theme);
}

/* =========================================================
   Tablet (768px+)
   ========================================================= */
@media (min-width: 768px) {
    .vv-orcamento-wrap {
        padding: 48px 20px 72px;
    }
    .vv-orcamento-card {
        padding: 40px 48px;
    }
    .vv-orcamento-card h1 {
        font-size: 30px;
    }
    .vv-radio-group {
        flex-direction: row;
    }
    .vv-radio {
        flex: 1;
    }
}

/* =========================================================
   Desktop (1024px+)
   ========================================================= */
@media (min-width: 1024px) {
    .vv-orcamento-card {
        padding: 48px 64px;
    }
}
