@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:root {
    /* Cores azuis */
    --primary-color: #0d345a;
    --secondary-color-gradient: #1a4d80;
    --text-color: #333;
    --background-light: #f4f4f4;
    --background-dark: #021a36;
}

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

html, body {
    height: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-image: linear-gradient(to right, var(--primary-color), var(--secondary-color-gradient));
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-center {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-center img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background-color: #fff;
}

.header-center span {
    font-size: 1.5em;
    font-weight: 700;
}

.header-right i,
.header-left i {
    font-size: 1.5em;
    cursor: pointer;
    color: #fff;
}

.header-right a, .header-left a {
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s ease;
}

.header-right a:hover {
    transform: scale(1.1);
}

/* Main Content */
main {
    flex: 1;
    padding-bottom: 70px;
}

/* Car Gallery */
.car-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.car-item {
    width: 33.333%;
    overflow: hidden;
}

.car-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* Popular Cars Section */
.popular-cars, .esportivo-cars {
    text-align: center;
    padding: 40px 5%;
    background-color: var(--background-light);
}

.popular-cars h2, .esportivo-cars h2 {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 30px;
}

.car-list {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow-x: auto;
    overflow-y: hidden;
}

.car-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    width: 250px;
    flex-shrink: 0;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.car-card:hover {
    transform: translateY(-10px);
}

.car-card img {
    height: 180px;
    width: 100%;
    object-fit: contain;
    margin-bottom: 10px;
}

.car-card p {
    font-weight: 500;
    text-align: center;
}

/* Footer */
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(to right, var(--primary-color), var(--secondary-color-gradient));
    color: #fff;
    padding: 20px 5%;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

footer p {
    font-size: 1.1em;
}

footer a {
    color: #fff;
    text-decoration: none;
}

.social-icons {
    position: absolute;
    right: 5%;
    bottom: 20px;
    display: flex;
    gap: 15px;
}

.social-icons i {
    font-size: 1.5em;
    cursor: pointer;
    color: #fff;
}

.social-icons i.fa-whatsapp {
    color: #25D366;
}

.social-icons i.fa-instagram {
    color: #C13584;
}

/* Menu Dropdown */
.header-left {
    position: relative;
}

.menu-dropdown {
    display: none;
    position: absolute;
    left: 0;
    top: 60px;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001;
    border-radius: 5px;
}

.menu-dropdown a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #ddd;
}

.menu-dropdown a:hover {
    background-color: #f1f1f1;
}

.show {
    display: block;
}

/* Estilos específicos para a página de login */
.login-page-main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: calc(100vh - 120px);
    padding: 20px;
    
    /* Estilo para a imagem de fundo */
    background-image: url('../imagens/bg-car.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.login-form-container {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
}

.login-form-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}
        
.login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.login-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
}

.login-form button {
    width: 100%;
    padding: 12px;
    background-image: linear-gradient(to right, var(--primary-color), var(--secondary-color-gradient));
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: opacity 0.3s;
}

.login-form button:hover {
    opacity: 0.9;
}

.login-form p {
    text-align: center;
    margin-top: 15px;
}
        
.login-form p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.login-form p a:hover {
    text-decoration: underline;
}


/* Página de Detalhes do Carro */
.detalhes-main {
    background-color: var(--background-light);
    min-height: calc(100vh - 140px);
    padding: 30px 5%;
}

.detalhes-container {
    max-width: 1200px;
    margin: 0 auto;
}

.btn-voltar {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    transition: background-color 0.3s ease;
}

.btn-voltar:hover {
    background-color: var(--secondary-color-gradient);
}

.detalhes-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.detalhes-imagem {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-light);
    border-radius: 10px;
    padding: 30px;
}

.detalhes-imagem img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.detalhes-info h1 {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 15px;
}

.car-categoria-badge {
    display: inline-block;
    background-image: linear-gradient(to right, var(--primary-color), var(--secondary-color-gradient));
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 25px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: var(--background-light);
    border-radius: 8px;
}

.info-item i {
    font-size: 1.5em;
    color: var(--primary-color);
}

.info-item div {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 3px;
}

.info-value {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-color);
}

.preco-section {
    margin-bottom: 25px;
}

.preco-section h2 {
    color: var(--primary-color);
    font-size: 1.3em;
    margin-bottom: 15px;
}

.preco-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.preco-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color-gradient));
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.preco-card i {
    font-size: 2em;
}

.preco-card div {
    display: flex;
    flex-direction: column;
}

.preco-label {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 5px;
}

.preco-value {
    font-size: 1.5em;
    font-weight: 700;
}

.status-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px;
    background-color: var(--background-light);
    border-radius: 8px;
}

.status-label {
    font-weight: 600;
    color: var(--text-color);
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95em;
}

.status-disponivel {
    background-color: #4CAF50;
    color: white;
}

.status-indisponivel {
    background-color: #f44336;
    color: white;
}

.btn-alugar {
    width: 100%;
    padding: 18px;
    background-image: linear-gradient(to right, var(--primary-color), var(--secondary-color-gradient));
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-alugar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-center {
        flex-direction: column;
        gap: 0;
    }

    .car-gallery {
        flex-direction: column;
    }

    .car-item {
        width: 100%;
    }

    .car-item img {
        height: 200px;
    }

    .car-card {
        width: 150px;
    }

    .detalhes-content {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 30px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .preco-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px 3%;
    }

    .header-center span {
        font-size: 1.2em;
    }

    .header-right i,
    .header-left i {
        font-size: 1.2em;
    }

    .car-card {
        width: 45%;
    }

    .social-icons {
        right: 3%;
        bottom: 15px;
    }

    .detalhes-main {
        padding: 20px 3%;
    }

    .detalhes-info h1 {
        font-size: 1.5em;
    }

    .btn-alugar {
        font-size: 1em;
        padding: 15px;
    }
}

/* Página de Aluguel */
.alugar-main {
    background-color: var(--background-light);
    min-height: calc(100vh - 140px);
    padding: 30px 5%;
}

.alugar-container {
    max-width: 1200px;
    margin: 0 auto;
}

.alugar-content {
    display: grid;
    gap: 30px;
}

/* Resumo do Carro */
.carro-resumo {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 30px;
    align-items: center;
}

.carro-resumo img {
    width: 250px;
    height: auto;
    object-fit: contain;
    background-color: var(--background-light);
    padding: 20px;
    border-radius: 10px;
}

.resumo-info {
    flex: 1;
}

.resumo-info h2 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 10px;
}

.resumo-info p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.resumo-precos {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.resumo-precos span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-size: 1em;
}

.resumo-precos i {
    color: var(--primary-color);
}

.resumo-precos strong {
    color: var(--primary-color);
    font-size: 1.2em;
}

/* Seleção de Datas */
.selecao-datas {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.selecao-datas h2 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.datas-inputs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.data-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.data-input-group label {
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.data-input-group label i {
    color: var(--primary-color);
}

.data-input-group input[type="date"] {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

.data-input-group input[type="date"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.data-input-group input[type="date"]:hover {
    border-color: var(--secondary-color-gradient);
}

.periodo-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: #e3f2fd;
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
    color: var(--primary-color);
    font-weight: 600;
}

.periodo-info i {
    font-size: 1.2em;
}

/* Resumo do Pedido */
.resumo-pedido {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.resumo-pedido h2 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.resumo-detalhes {
    background-color: var(--background-light);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.resumo-linha {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

.resumo-linha:last-child {
    border-bottom: none;
}

.resumo-linha span:first-child {
    color: #666;
    font-weight: 500;
}

.resumo-linha span:last-child {
    color: var(--text-color);
    font-weight: 600;
}

.resumo-linha.total {
    margin-top: 15px;
    padding-top: 20px;
    border-top: 2px solid var(--primary-color);
    border-bottom: none;
}

.resumo-linha.total span {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary-color);
}

.resumo-linha.desconto-info {
    background-color: #fff3cd;
    padding: 12px 15px;
    margin: 10px -10px;
    border-radius: 5px;
    border: none;
}

.desconto-valor {
    color: #28a745 !important;
    font-weight: 700 !important;
}

.btn-pagar {
    width: 100%;
    padding: 18px;
    background-image: linear-gradient(to right, var(--primary-color), var(--secondary-color-gradient));
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    margin-bottom: 15px;
}

.btn-pagar:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-pagar:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.info-mensagem {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background-color: #e8f5e9;
    border-radius: 8px;
    color: #2e7d32;
}

.info-mensagem i {
    font-size: 1.2em;
    margin-top: 2px;
}

.info-mensagem p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Responsive - Página de Aluguel */
@media (max-width: 768px) {
    .carro-resumo {
        flex-direction: column;
        text-align: center;
    }

    .carro-resumo img {
        width: 100%;
        max-width: 300px;
    }

    .resumo-precos {
        justify-content: center;
    }

    .datas-inputs {
        grid-template-columns: 1fr;
    }

    .alugar-main {
        padding: 20px 3%;
    }
}

@media (max-width: 480px) {
    .resumo-info h2 {
        font-size: 1.4em;
    }

    .selecao-datas h2,
    .resumo-pedido h2 {
        font-size: 1.2em;
    }

    .btn-pagar {
        font-size: 1em;
        padding: 15px;
    }

    .resumo-linha {
        font-size: 0.9em;
    }

    .resumo-linha.total span {
        font-size: 1.1em;
    }
}

/* Página de Checkout */
.checkout-main {
    background-color: var(--background-light);
    min-height: calc(100vh - 140px);
    padding: 30px 5%;
}

.checkout-container {
    max-width: 1400px;
    margin: 0 auto;
}

.checkout-title {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
}

/* Resumo do Pedido - Checkout */
.checkout-resumo {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.checkout-resumo h2 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.carro-checkout {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: var(--background-light);
    border-radius: 10px;
    margin-bottom: 25px;
    align-items: center;
}

.carro-checkout img {
    width: 150px;
    height: auto;
    object-fit: contain;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
}

.carro-checkout-info h3 {
    color: var(--primary-color);
    font-size: 1.3em;
    margin-bottom: 5px;
}

.carro-checkout-info p {
    color: #666;
    font-size: 1em;
}

.aluguel-detalhes {
    margin-bottom: 25px;
    padding: 20px;
    background-color: var(--background-light);
    border-radius: 10px;
}

.aluguel-detalhes h3 {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detalhe-linha {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.detalhe-linha:last-child {
    border-bottom: none;
}

.detalhe-linha span {
    color: #666;
}

.detalhe-linha strong {
    color: var(--text-color);
    font-weight: 600;
}

.valores-resumo {
    padding: 20px;
    background-color: var(--background-light);
    border-radius: 10px;
}

.valor-linha {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

.valor-linha:last-child {
    border-bottom: none;
}

.valor-linha span:first-child {
    color: #666;
    font-weight: 500;
}

.valor-linha span:last-child {
    color: var(--text-color);
    font-weight: 600;
}

.valor-linha.desconto-mensal,
.valor-linha.desconto-pix {
    background-color: #fff3cd;
    padding: 12px 15px;
    margin: 10px -10px;
    border-radius: 5px;
    border: none;
}

.valor-desconto {
    color: #28a745 !important;
    font-weight: 700 !important;
}

.valor-linha.total {
    margin-top: 15px;
    padding-top: 20px;
    border-top: 2px solid var(--primary-color);
    border-bottom: none;
}

.valor-linha.total span {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--primary-color);
}

/* Forma de Pagamento */
.checkout-pagamento {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.checkout-pagamento h2 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagamento-opcoes {
    display: grid;
    gap: 15px;
    margin-bottom: 25px;
}

.pagamento-opcao {
    position: relative;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagamento-opcao:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(13, 52, 90, 0.1);
}

.pagamento-opcao.ativa {
    border-color: var(--primary-color);
    background-color: #e3f2fd;
}

.pagamento-opcao input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.pagamento-opcao label {
    cursor: pointer;
    display: block;
}

.opcao-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.opcao-header i {
    font-size: 2em;
    color: var(--primary-color);
}

.opcao-header div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.opcao-header strong {
    font-size: 1.2em;
    color: var(--text-color);
}

.desconto-badge {
    background-color: #28a745;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.pagamento-opcao p {
    color: #666;
    font-size: 0.95em;
    margin: 0;
    margin-left: 60px;
}

/* Formulários de Pagamento */
.form-pagamento {
    margin-bottom: 25px;
    padding: 25px;
    background-color: var(--background-light);
    border-radius: 10px;
}

.form-pagamento h3 {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* PIX */
.pix-info {
    display: grid;
    gap: 20px;
}

.pix-qrcode {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    border: 2px dashed var(--primary-color);
}

.pix-qrcode i {
    font-size: 4em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.pix-qrcode p {
    color: #666;
    font-size: 0.95em;
}

.pix-instrucoes {
    padding: 20px;
    background-color: white;
    border-radius: 10px;
}

.pix-instrucoes h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.pix-instrucoes ol {
    margin-left: 20px;
    color: #666;
    line-height: 1.8;
}

.pix-instrucoes li {
    margin-bottom: 8px;
}

/* Cartão */
.cartao-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--primary-color);
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
}

/* Botão Finalizar */
.btn-finalizar {
    width: 100%;
    padding: 18px;
    background-image: linear-gradient(to right, var(--primary-color), var(--secondary-color-gradient));
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    margin-bottom: 15px;
}

.btn-finalizar:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-finalizar:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.seguranca-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: #e8f5e9;
    border-radius: 8px;
    color: #2e7d32;
}

.seguranca-info i {
    font-size: 1.3em;
}

.seguranca-info p {
    margin: 0;
    font-size: 0.9em;
}

/* Responsive - Checkout */
@media (max-width: 1024px) {
    .checkout-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .checkout-main {
        padding: 20px 3%;
    }

    .checkout-title {
        font-size: 1.5em;
    }

    .carro-checkout {
        flex-direction: column;
        text-align: center;
    }

    .carro-checkout img {
        width: 100%;
        max-width: 200px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .checkout-resumo,
    .checkout-pagamento {
        padding: 20px;
    }

    .checkout-resumo h2,
    .checkout-pagamento h2 {
        font-size: 1.2em;
    }

    .valor-linha.total span {
        font-size: 1.2em;
    }

    .btn-finalizar {
        font-size: 1em;
        padding: 15px;
    }

    .pagamento-opcao p {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* Mensagens de Alerta */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert i {
    font-size: 1.2em;
}

.alert-sucesso {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-erro {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

#message-container {
    margin-bottom: 15px;
}

/* Página de Perfil */
.perfil-main {
    background-color: var(--background-light);
    min-height: calc(100vh - 140px);
    padding: 30px 5%;
}

.perfil-container {
    max-width: 1200px;
    margin: 0 auto;
}

.perfil-title {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Abas do Perfil */
.perfil-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1.1em;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn:hover {
    color: var(--primary-color);
    background-color: rgba(13, 52, 90, 0.05);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.tab-btn i {
    font-size: 1.2em;
}

/* Conteúdo das Abas */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card de Perfil */
.perfil-card {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.perfil-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--background-light);
    margin-bottom: 20px;
}

.perfil-header i {
    font-size: 5em;
    color: var(--primary-color);
}

.perfil-header h3 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin: 0;
}

.perfil-header p {
    color: #666;
    margin: 5px 0 0 0;
    font-size: 1.1em;
}

.perfil-detalhes {
    display: grid;
    gap: 15px;
}

.detalhe-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: var(--background-light);
    border-radius: 8px;
}

.detalhe-item .label {
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detalhe-item .label i {
    color: var(--primary-color);
}

.detalhe-item .valor {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1em;
}

.perfil-info-box {
    background-color: #e3f2fd;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--primary-color);
}

.perfil-info-box i {
    font-size: 1.5em;
}

.perfil-info-box p {
    margin: 0;
}

.perfil-acoes {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--background-light);
}

.btn-alterar-senha {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-alterar-senha:hover {
    background-color: var(--secondary-color-gradient);
    transform: translateY(-2px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid var(--background-light);
}

.modal-header h2 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    font-size: 2em;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-content form {
    padding: 30px;
}

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

.modal-acoes {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-cancelar {
    flex: 1;
    padding: 12px;
    background-color: #e0e0e0;
    color: #666;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-cancelar:hover {
    background-color: #d0d0d0;
}

.btn-salvar {
    flex: 1;
    padding: 12px;
    background-image: linear-gradient(to right, var(--primary-color), var(--secondary-color-gradient));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-salvar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#modal-message {
    padding: 0 30px;
}

#modal-message .alert {
    margin-bottom: 0;
}

/* Grid de Aluguéis */
.alugueis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.aluguel-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aluguel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.aluguel-imagem {
    position: relative;
    height: 200px;
    background-color: var(--background-light);
    overflow: hidden;
}

.aluguel-imagem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.status-badge.status-pendente {
    background-color: #ff9800;
}

.status-badge.status-confirmado {
    background-color: #4caf50;
}

.status-badge.status-concluido {
    background-color: #2196f3;
}

.status-badge.status-cancelado {
    background-color: #f44336;
}

.aluguel-info {
    padding: 20px;
}

.aluguel-info h4 {
    color: var(--primary-color);
    font-size: 1.3em;
    margin-bottom: 5px;
}

.aluguel-id {
    color: #999;
    font-size: 0.9em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.aluguel-detalhes {
    display: grid;
    gap: 10px;
}

.aluguel-detalhes p {
    margin: 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aluguel-detalhes i {
    color: var(--primary-color);
    width: 20px;
}

.aluguel-detalhes .valor-total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
    color: var(--primary-color);
    font-size: 1.1em;
}

/* Box Vazio */
.vazio-box {
    text-align: center;
    padding: 60px 20px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vazio-box i {
    font-size: 5em;
    color: #ddd;
    margin-bottom: 20px;
}

.vazio-box h3 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.vazio-box p {
    color: #666;
    margin-bottom: 25px;
}

.btn-alugar-novo {
    padding: 15px 30px;
    background-image: linear-gradient(to right, var(--primary-color), var(--secondary-color-gradient));
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-alugar-novo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Box de Erro */
.erro-box {
    text-align: center;
    padding: 40px 20px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.erro-box i {
    font-size: 3em;
    color: #f44336;
    margin-bottom: 15px;
}

.erro-box p {
    color: #666;
    margin: 0;
}

/* Responsive - Perfil */
@media (max-width: 768px) {
    .perfil-main {
        padding: 20px 3%;
    }

    .perfil-title {
        font-size: 1.5em;
    }

    .perfil-tabs {
        flex-direction: column;
        border-bottom: none;
    }

    .tab-btn {
        border-bottom: none;
        border-left: 3px solid transparent;
        justify-content: center;
    }

    .tab-btn.active {
        border-left-color: var(--primary-color);
        border-bottom-color: transparent;
    }

    .perfil-header {
        flex-direction: column;
        text-align: center;
    }

    .alugueis-grid {
        grid-template-columns: 1fr;
    }

    .detalhe-item {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .perfil-header i {
        font-size: 3.5em;
    }

    .perfil-header h3 {
        font-size: 1.4em;
    }

    .aluguel-info h4 {
        font-size: 1.1em;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 1.2em;
    }
    
    .modal-content form {
        padding: 20px;
    }
    
    .modal-acoes {
        flex-direction: column;
    }
}