* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #333;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-x: hidden;
}
.container { width: 100%; max-width: 560px; margin: auto; }
.container:has(table) { max-width: 1200px; }
.card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.card.success { text-align: center; }
h1 { font-size: 1.5rem; margin-bottom: 0.25rem; color: #1a1a2e; }
.subtitle { color: #666; font-size: 0.95rem; margin-bottom: 0.5rem; }
.desc { color: #888; font-size: 0.9rem; margin-bottom: 1.5rem; }
.banner {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: block;
}
.logo { max-height: 60px; margin-bottom: 1rem; }

.pricing {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1rem 0;
    border: 2px solid #0f3460;
}
.pricing-badge {
    display: inline-block;
    background: #2ecc71;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pricing-title {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 0.75rem;
}
.pricing-table {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: #fff;
    border-radius: 8px;
    font-size: 0.85rem;
}
.pricing-row:nth-child(even) { background: #f8f9fa; }
.pricing-course { font-weight: 600; color: #1a1a2e; }
.pricing-value { font-weight: 700; color: #0f3460; font-size: 1rem; }
.pricing-parcel { color: #666; font-size: 0.8rem; }

.crea-section {
    background: #fff3e0;
    border: 2px solid #e67e22;
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.25rem 0;
}
.crea-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #444;
}
.crea-badge {
    background: #e67e22;
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}
.crea-block {
    background: #fff;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}
.crea-block:last-child { margin-bottom: 0; }
.crea-title {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}
.crea-hours {
    font-weight: 400;
    color: #e67e22;
    font-size: 0.8rem;
}
.crea-note {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.2rem;
}
.crea-courses {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0.5rem 0;
}
.crea-courses span {
    background: #fef9e7;
    color: #7d6608;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #f9e79f;
}
.crea-valores {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}
.crea-valores strong { color: #e67e22; }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block; font-size: 0.85rem; font-weight: 600;
    color: #444; margin-bottom: 0.35rem;
}
.form-group input, .form-group select {
    width: 100%; padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0; border-radius: 8px;
    font-size: 1rem; transition: border 0.2s;
    background: #fafafa;
}
.form-group input:focus, .form-group select:focus {
    outline: none; border-color: #0f3460; background: #fff;
}
.form-group small { display: block; color: #999; font-size: 0.75rem; margin-top: 0.25rem; }
.row { display: flex; gap: 1rem; }
.half { flex: 1; }

.btn {
    display: inline-block; width: 100%;
    padding: 0.85rem; border: none; border-radius: 8px;
    background: #0f3460; color: #fff;
    font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: background 0.2s;
    text-align: center; text-decoration: none;
}
.btn:hover { background: #1a4a7a; }
.btn-wa { background: #25D366; margin-top: 1rem; }
.btn-wa:hover { background: #1da851; }
.btn-sm { width: auto; padding: 0.5rem 1rem; font-size: 0.85rem; }

.check {
    width: 64px; height: 64px; border-radius: 50%;
    background: #2ecc71; color: #fff;
    font-size: 2rem; display: flex; align-items: center;
    justify-content: center; margin: 0 auto 1rem;
}

.flash { padding: 0.75rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem; }
.flash.erro { background: #ffe0e0; color: #c0392b; }
.flash.sucesso { background: #d4edda; color: #155724; }

.footer-text, .small { text-align: center; color: #999; font-size: 0.8rem; margin-top: 1rem; }

table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th { background: #0f3460; color: #fff; padding: 0.6rem; text-align: left; white-space: nowrap; }
td { padding: 0.5rem 0.6rem; border-bottom: 1px solid #eee; }
tr:hover { background: #f5f5f5; }
.wa-link { color: #25D366; font-weight: 600; text-decoration: none; }
.wa-link:hover { text-decoration: underline; }
hr { border: none; border-top: 1px solid #eee; margin: 1rem 0; }

.autocomplete-group { position: relative; }
.autocomplete-wrapper { position: relative; }
.autocomplete-list {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 1000;
    background: #fff; border: 2px solid #0f3460; border-top: none;
    border-radius: 0 0 8px 8px; max-height: 280px; overflow-y: auto;
    display: none; box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.autocomplete-list.show { display: block; }
.autocomplete-item {
    padding: 0.6rem 1rem; cursor: pointer; font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0; transition: background 0.15s;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover, .autocomplete-item.highlight {
    background: #e8f0fe; color: #0f3460;
}
.autocomplete-item strong { color: #0f3460; }

/* ── Mobile ──────────────────────────────── */
@media only screen and (max-width: 768px) {
    body { display: block; padding: 0; background: #1a1a2e; }
    .container { max-width: 100%; }
    .card { border-radius: 0; padding: 0.75rem; box-shadow: none; min-height: 100vh; }
    h1 { font-size: 1rem; }
    .subtitle { font-size: 0.8rem; }
    .banner { height: 120px; object-fit: cover; border-radius: 8px; }
    .logo { max-height: 36px; }
    .pricing { padding: 0.6rem; margin: 0.5rem 0; }
    .pricing-title { font-size: 0.75rem; }
    .pricing-row { flex-wrap: wrap; gap: 1px; padding: 0.3rem 0.4rem; font-size: 0.72rem; }
    .pricing-value { font-size: 0.8rem; }
    .pricing-parcel { width: 100%; font-size: 0.65rem; }
    .crea-section { padding: 0.6rem; margin: 0.5rem 0; }
    .crea-header { font-size: 0.75rem; flex-wrap: wrap; gap: 0.3rem; }
    .crea-block { padding: 0.4rem; }
    .crea-title { font-size: 0.75rem; }
    .crea-courses span { font-size: 0.6rem; padding: 0.12rem 0.35rem; }
    .crea-valores { flex-direction: column; gap: 0.1rem; font-size: 0.75rem; }
    .row { flex-direction: column; gap: 0; }
    .form-group { margin-bottom: 0.6rem; }
    .form-group label { font-size: 0.78rem; }
    .form-group input, .form-group select { padding: 0.55rem 0.65rem; font-size: 0.85rem; }
    .desc { font-size: 0.8rem; margin-bottom: 0.75rem; }
    .autocomplete-list { max-height: 160px; }
    .autocomplete-item { padding: 0.55rem 0.65rem; font-size: 0.8rem; }
    .btn { padding: 0.65rem; font-size: 0.85rem; }
    .footer-text { font-size: 0.7rem; }
}