*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f6f7;
    color: #123033;
    text-transform: uppercase;
}

a {
    color: inherit;
    text-decoration: underline;
}

.top-bar {
    background: #00896b;
    color: #ffffff;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

.top-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.container {
    max-width: 1100px;
    margin: 1.5rem auto 4rem;
    padding: 0 1rem;
}

.logo-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo-section .logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 0.75rem;
}

.logo-section h1 {
    font-size: 1.8rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.logo-section h2 {
    font-size: 1rem;
    letter-spacing: 0.15em;
    color: #006655;
}

.card {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #006655;
}

.card.highlight {
    border-left: 4px solid #00896b;
}

.card.highlight-igreen {
    border-left: 4px solid #00a86b;
    background: #f0faf4;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.form-group.full {
    grid-column: 1 / -1;
}

label {
    font-weight: 600;
    color: #123033;
}

input[type="text"],
input[type="number"],
select,
input[type="file"] {
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    border: 1px solid #c3d4d8;
    font-size: 0.9rem;
    outline: none;
    text-transform: uppercase;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    border-color: #00896b;
    box-shadow: 0 0 0 2px rgba(0,137,107,0.16);
}

small {
    font-size: 0.7rem;
    color: #6a7b7f;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

button {
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.09em;
}

#btn-enviar {
    background: #00896b;
    color: #ffffff;
}

#btn-enviar:hover {
    filter: brightness(1.05);
}

.secondary {
    background: #e1eaed;
    color: #123033;
}

.secondary:hover {
    background: #d2dde1;
}

.info-text {
    font-size: 0.78rem;
    color: #5c6d71;
    margin-top: 0.5rem;
}

#lista-cotacoes {
    margin-top: 0.75rem;
}

.local-list {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.local-list thead {
    background: #f0f4f5;
}

.local-list th,
.local-list td {
    padding: 0.45rem 0.4rem;
    border-bottom: 1px solid #e0eaec;
    text-align: left;
}

.local-list td.actions-cell {
    white-space: nowrap;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.local-list button {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 1.2rem;
    transform: translateX(-50%);
    background: #00896b;
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(-4px);
}

.footer {
    text-align: center;
    font-size: 0.75rem;
    color: #607376;
    padding: 1rem;
    border-top: 1px solid #d6e0e3;
    margin-top: 2rem;
}

/* PÁGINA DE VISUALIZAÇÃO */
.view-page .container {
    margin-top: 1rem;
}

.quote-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8rem;
}

.quote-main-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.quote-block {
    background: #f6fafb;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    font-size: 0.8rem;
}

.quote-block h4 {
    font-size: 0.85rem;
    color: #006655;
    margin-bottom: 0.35rem;
}

.quote-block p {
    margin-bottom: 0.3rem;
}

.image-block {
    grid-column: 1 / -1;
    text-align: center;
}

.vehicle-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 0.5rem;
}

.benefits-list,
.info-list {
    list-style: none;
    font-size: 0.8rem;
    display: grid;
    gap: 0.35rem;
}

.energy-highlight {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    line-height: 1.6;
    background: #fff;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    border: 1px dashed #00a86b;
}

/* Responsividade */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .quote-main-grid {
        grid-template-columns: 1fr;
    }

    .top-bar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-section h1 {
        font-size: 1.4rem;
    }

    .logo-section h2 {
        font-size: 0.9rem;
    }
}
