/* Fix para manter o footer no final da página */
html, body {
    height: 100%;
}

/* Conteiner principal ocupa toda a altura e organiza conteúdo por coluna */
#conteiner {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* O branding (conteúdo + footer) deve crescer para preencher o espaço disponível */
#branding {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

#footer {
    margin-top: auto;
    width: 100%;
    position: relative;
    left: 0;
    right: 0;
    background: #f9f9f9;
}

#footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px;
    box-sizing: border-box;
}

/* Card de Informações - Horizontal e compacto */
.info_widget {
    background: linear-gradient(135deg, #fff9f0 0%, #ffffff 100%);
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-left: 4px solid var(--cor-secundaria);
    display: flex;
    align-items: center;
    gap: 12px;
}

.info_widget h3 {
    display: none;
}

.info_widget .widget-content {
    font-size: 12px;
    color: var(--text-dark);
    line-height: 1.5;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info_widget .widget-content::before {
    content: '';
    font-size: 18px;
    flex-shrink: 0;
}

.info_widget .widget-content strong {
    color: var(--cor-secundaria-escura);
    font-weight: 600;
}


/* Consulta container: wider on desktop, responsive on mobile */
.consulta-container {
    width: 40%; /* occupy 70% of viewport on desktop */
    max-width: 1200px; /* cap max width */
    min-width: 540px; /* prevent collapsing on medium screens */
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

/* Ensure readability on smaller screens */
@media (max-width: 1024px) {
    .consulta-container {
        width: 85%;
        min-width: 420px;
    }
}

@media (max-width: 768px) {
    .consulta-container {
        width: calc(100% - 20px);
        min-width: auto;
        margin: 20px 10px;
        padding: 20px;
    }
}

.consulta-header {
    text-align: center;
    margin-bottom: 30px;
}

.consulta-header h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

.consulta-header p {
    color: #666;
    font-size: 14px;
}

.consulta-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--cor-principal);
}

.btn-consultar {
    width: 100%;
    padding: 14px;
    background: var(--cor-principal);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-consultar:hover {
    background: var(--cor-principal-escura);
}

.btn-cancelar {
    width: 100%;
    padding: 14px;
    background: #b42727;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-cancelar:hover {
    background: #881a1a;
}

.btn-consultar:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.resultado-reserva {
    display: none;
    margin-top: 30px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid var(--cor-principal-escura);
}

.resultado-reserva.show {
    display: block;
}

.reserva-status {
    display: inline-block;
    padding: 6px 12px;
    background: #4caf50;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Status modifiers */
.reserva-status--confirmed { background: #4caf50; }   /* Confirmada - verde */
.reserva-status--cancelled { background: #b42727; }   /* Cancelada - vermelho */
.reserva-status--pending { background: #ff9800; color: #222; }    /* Pendente - laranja */
.reserva-status--unknown { background: #9e9e9e; }     /* Desconhecido - cinza */

.reserva-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.reserva-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.reserva-section h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.reserva-section h3:before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--cor-principal-escura);
    margin-right: 10px;
}

.info-row {
    display: flex;
    margin-bottom: 12px;
    font-size: 14px;
}

.info-label {
    flex: 0 0 200px;
    color: #666;
    font-weight: 600;
}

.info-value {
    color: #333;
    flex: 1;
}

.veiculo-info {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.veiculo-nome {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.veiculo-codigo {
    font-size: 12px;
    color: #666;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 3px;
    display: inline-block;
}

.charge-item {
    background: #fff;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.charge-desc {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.charge-valor {
    color: #ff6600;
    font-weight: 600;
}

.total-section {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.total-valor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.total-valor span:last-child {
    color: var(--cor-secundaria);
}

.error-message {
    display: none;
    padding: 15px;
    background: #ffebee;
    color: #c62828;
    border-radius: 4px;
    margin-top: 20px;
    border-left: 4px solid #c62828;
}

.error-message.show {
    display: block;
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loading-overlay.show {
    display: flex;
}

.loading-content {
    text-align: center;
    color: #fff;
}

.loading-spinner {
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.coverage-item {
    background: #fff;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.coverage-tipo {
    font-weight: 600;
    color: #333;
}

.coverage-desc {
    color: #666;
    font-size: 13px;
    margin-top: 4px;
}
