:root {
    --primary: #a86d00;
    --secondary: #e6ccb8;
    --accent: #d35400;
    --bg-light: #fafafa;
    --bg-dark: #f0e6dd;
    --text-main: #333;
    --text-light: #fff;
    --border: #ccc;
    --success: #25D366;
    --success-hover: #128C7E;
    --error: #ff9900;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    background-color: #e0e0e0; 
}

body {
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    width: 96vw;
    max-width: 96vw;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.hidden { display: none !important; }

header {
    background-color: var(--primary);
    position: fixed;
    top: 0;
    width: 96vw;
    left: 50%;
    transform: translateX(-50%);
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.logo-container img { height: 50px; width: auto; border-radius: 50px; }

nav ul { list-style: none; display: flex; align-items: center; gap: 20px; }
nav a { color: var(--text-light); text-decoration: none; font-weight: 500; transition: color 0.3s; }
nav a:hover { color: var(--secondary); }

.btn-nav { background-color: var(--accent); padding: 8px 15px; border-radius: 4px; font-weight: bold; }
.btn-nav:hover { background-color: #a04000; color: #fff !important; }

main { margin-top: 70px; }
section { padding: 80px 0; }

.section-light { background-color: var(--bg-light); }
.section-dark { background-color: var(--bg-dark); }
.section-form { background-color: #fff; }

section h2 { color: var(--primary); font-size: 2.2em; margin-bottom: 40px; position: relative; }
section h2::after { content: ''; display: block; width: 60px; height: 3px; background-color: var(--accent); margin: 10px auto 0; }

.grid-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

.card { background-color: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }

.card-img-placeholder { height: 180px; background-color: #ddd; display: flex; align-items: center; justify-content: center; color: #888; font-size: 0.9em; }
.card-img-placeholder img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-title { color: var(--primary); font-size: 1.2em; font-weight: bold; margin-bottom: 10px; }
.card-desc { color: #666; font-size: 0.95em; margin-bottom: 15px; flex: 1; }
.card-price { font-weight: bold; color: var(--accent); font-size: 1.1em; margin-bottom: 15px; }

.btn-selecionar { background-color: var(--primary); color: #fff; border: none; padding: 10px; border-radius: 4px; cursor: pointer; font-weight: bold; transition: background-color 0.3s; width: 100%; }
.btn-selecionar:hover { background-color: var(--accent); }

.form-container { max-width: 800px; border: 1px solid var(--border); border-radius: 8px; padding: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); margin: 0 auto; }

fieldset { border: none; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
legend { font-size: 1.3em; color: var(--primary); font-weight: bold; margin-bottom: 15px; }

.form-row { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 15px; }
.form-group { flex: 1; min-width: 200px; display: flex; flex-direction: column; }

label { font-weight: 600; margin-bottom: 5px; font-size: 0.9em; color: #444; }

input, select, textarea { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 4px; font-size: 1em; background-color: #fafafa; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background-color: #fff; }

/* Arquitetura CSS para campos bloqueados e erros */
input[readonly] { background-color: #e9ecef; color: #666; cursor: not-allowed; }
input:focus { border-color: var(--border); }
.error-text { color: var(--error); font-size: 0.85em; margin-top: 5px; font-weight: bold; }

.dynamic-container { background-color: var(--bg-dark); padding: 20px; border-radius: 4px; border: 1px dashed var(--primary); margin-top: 20px; }

.summary-box { background-color: var(--primary); color: #fff; padding: 20px; border-radius: 8px; text-align: right; font-size: 1.2em; position: sticky; bottom: 20px; box-shadow: 0 -4px 10px rgba(0,0,0,0.2); margin-top: 30px; z-index: 10; }
.summary-box span { font-weight: bold; font-size: 1.6em; color: var(--secondary); }

.btn-submit { background-color: var(--success); color: white; border: none; padding: 18px 30px; font-size: 1.2em; font-weight: bold; border-radius: 4px; cursor: pointer; width: 100%; margin-top: 20px; transition: background-color 0.3s; }
.btn-submit:hover { background-color: var(--success-hover); }
.btn-submit:disabled { background-color: #9e9e9e; cursor: not-allowed; }

footer { background-color: var(--primary); color: var(--secondary); padding: 50px 0 20px; }
.footer-content { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-around; margin-bottom: 30px; }
.footer-info h3, .footer-contact h3 { color: #fff; margin-bottom: 15px; font-size: 1.2em; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.9em; }

@media (max-width: 768px) {
    header { flex-direction: column; height: auto; padding: 15px 20px; }
    nav ul { flex-wrap: wrap; justify-content: center; margin-top: 10px; }
    main { margin-top: 120px; }
}

/* NOVAS REGRAS - Highlight seleção + CEP mask */
.selected-highlight {
    background-color: #d4edda !important;
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
    transition: all 0.3s ease !important;
}

#cep {
    font-family: 'Courier New', monospace !important;
    letter-spacing: 1px;
    font-size: 1.1em;
}
