/* Estilos específicos para a página de avaliação de veículos */

/* Carrossel de fundo como no index.php */
body {
    background: #000;
    overflow-x: hidden;
}

/* Estilos do carrossel principal como plano de fundo */
.carousel-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.carousel-fullscreen .carousel {
    width: 100%;
    height: 100%;
}

.carousel-fullscreen .carousel-inner {
    width: 100%;
    height: 100%;
}

.carousel-fullscreen .carousel-item {
    width: 100%;
    height: 100%;
}

.carousel-banner-image {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

/* Overlay escuro sobre o carrossel para melhor legibilidade */
.carousel-fullscreen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Main content transparente como no index.php */
main {
    position: relative;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    margin-top: 50px !important;
    border-radius: 20px;
    padding: 3rem 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Garantir que o conteúdo fique sobre o carrossel de fundo */
header,
footer {
    position: relative;
    z-index: 100;
}

/* Cabeçalho hero com fundo do carrossel */
.hero-header {
    position: relative;
    padding: 3rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-bottom: 3rem !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.hero-header .gradient-red-text {
    background: var(--gradient-red);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: #495057 !important;
    font-weight: 500;
    margin-bottom: 0;
    font-size: 1.1rem;
    text-shadow: none !important;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
}

/* Formulário */
.form-control, .form-select {
    border-radius: var(--border-radius-default);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: #EB3349;
    box-shadow: 0 0 0 0.2rem rgba(235, 51, 73, 0.15);
    background-color: #fff;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Checkbox personalizados */
.form-check-input:checked {
    background-color: #EB3349;
    border-color: #EB3349;
}

.form-check-input:focus {
    border-color: #EB3349;
    box-shadow: 0 0 0 0.25rem rgba(235, 51, 73, 0.15);
}

.form-check-label {
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
}

/* Separadores */
hr {
    border: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(235, 51, 73, 0.3), transparent);
    margin: 2rem 0;
}

/* Ícones dos títulos das seções */
.gradient-red-text i {
    background: var(--gradient-red);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cards de informações adicionais */
.card.h-100 {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card.h-100:hover {
    transform: translateY(-5px);
    border-color: rgba(235, 51, 73, 0.2) !important;
}

.card.h-100 .fs-1 {
    font-size: 2.5rem !important;
    margin-bottom: 1rem;
}

/* Botão principal */
.btn-danger.btn-lg {
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    padding: 1rem 2.5rem;
    transition: all 0.3s ease;
}

.btn-danger.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(235, 51, 73, 0.3);
}

/* Validação do formulário */
.is-invalid {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6.4.4.4-.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.is-valid {
    border-color: #198754 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='m2.3 6.73.4-.4 2.7-2.7-.4-.4-2.3 2.3L1.1 4l-.4.4 1.6 1.6.4.4z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback,
.valid-feedback {
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Loading state */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loading .btn {
    position: relative;
}

.loading .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsividade */

/* Tablets grandes e desktops pequenos */
@media (max-width: 1200px) {
    main {
        margin-top: 30px !important;
        padding: 2.5rem 1.5rem;
    }
    
    .hero-header {
        padding: 2.5rem 1rem;
    }
    
    .card.h-100 .fs-1 {
        font-size: 2rem !important;
    }
}

/* Tablets */
@media (max-width: 992px) {
    main {
        margin-top: 20px !important;
        padding: 2rem 1rem;
        border-radius: 15px;
    }
    
    .hero-header {
        padding: 2rem 1rem;
        margin-bottom: 2rem !important;
        border-radius: 15px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .form-check {
        margin-bottom: 0.75rem;
    }
    
    .col-md-3.mb-2,
    .col-md-4.mb-2,
    .col-md-6.mb-2 {
        margin-bottom: 1rem !important;
    }
    
    /* Ajustes para cards de informações */
    .card.h-100 {
        margin-bottom: 1.5rem;
    }
}

/* Tablets pequenos */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding-top: 15px;
    }
    
    main {
        margin-top: 40px !important;
        padding: 1.5rem 1rem;
        border-radius: 10px;
    }
    
    .hero-header {
        padding: 2rem 0.75rem;
        margin-bottom: 2rem !important;
        border-radius: 10px;
    }
    
    .display-4 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .btn-danger.btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Formulário em duas colunas em tablets */
    .col-md-4,
    .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Opcionais em duas colunas */
    .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
        padding-right: 0.5rem;
        padding-left: 0.5rem;
        margin-bottom: 1rem !important;
    }
    
    .form-check-label {
        font-size: 0.9rem;
    }
    
    /* Cards de informações */
    .card.h-100 .fs-1 {
        font-size: 1.8rem !important;
    }
    
    .card h6 {
        font-size: 1rem;
    }
    
    .card .text-muted {
        font-size: 0.85rem;
    }
    
    /* Ajustes de espaçamento */
    hr {
        margin: 1.5rem 0;
    }
    
    .mb-4 {
        margin-bottom: 2rem !important;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .form-control,
    .form-select {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
}

/* Smartphones */
@media (max-width: 576px) {
    body {
        font-size: 13px;
    }
    
    .container {
        padding: 20px 10px 0 10px;
    }
    
    main {
        margin-top: 30px !important;
        margin-left: 5px;
        margin-right: 5px;
        padding: 1rem 0.75rem;
        border-radius: 8px;
    }
    
    .hero-header {
        padding: 1.5rem 0.5rem;
        margin-bottom: 1.5rem !important;
        border-radius: 8px;
    }
    
    .display-4 {
        font-size: 1.6rem;
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .card {
        border-radius: 8px;
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem 0.75rem;
    }
    
    /* Formulário em uma coluna */
    .col-md-4,
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 0.75rem;
    }
    
    /* Opcionais em uma coluna */
    .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
        padding-left: 0;
        margin-bottom: 0.75rem !important;
    }
    
    .form-check {
        padding-left: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .form-check-label {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
        font-weight: 600;
    }
    
    .form-control,
    .form-select {
        font-size: 0.85rem;
        padding: 0.5rem 0.6rem;
        border-radius: 6px;
    }
    
    textarea.form-control {
        min-height: 80px;
    }
    
    .btn-danger.btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 25px;
        width: 100%;
    }
    
    /* Cards de informações em uma coluna */
    .col-md-4 {
        margin-bottom: 1rem;
    }
    
    .card.h-100 {
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    .card.h-100 .card-body {
        padding: 1rem;
    }
    
    .card.h-100 .fs-1 {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem;
    }
    
    .card h6 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .card .text-muted {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    /* Títulos das seções */
    h5.gradient-red-text {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    /* Separadores */
    hr {
        margin: 1rem 0;
    }
    
    /* Espaçamentos gerais */
    .mb-3 {
        margin-bottom: 0.75rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.25rem !important;
    }
    
    .mt-5 {
        margin-top: 2rem !important;
    }
    
    .my-5 {
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Texto de segurança */
    .text-muted.mt-2.small {
        font-size: 0.75rem;
        margin-top: 0.75rem !important;
    }
}

/* Smartphones muito pequenos */
@media (max-width: 375px) {
    .container {
        padding: 0 5px;
    }
    
    main {
        margin-left: 2px;
        margin-right: 2px;
        padding: 0.75rem 0.5rem;
    }
    
    .hero-header {
        padding: 0.75rem 0.25rem;
    }
    
    .display-4 {
        font-size: 1.4rem;
    }
    
    .card-body {
        padding: 0.75rem 0.5rem;
    }
    
    .btn-danger.btn-lg {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .form-control,
    .form-select {
        font-size: 0.8rem;
        padding: 0.4rem 0.5rem;
    }
}

/* Carrossel de fundo responsivo como no index.php */
@media (max-width: 768px) {
    .carousel-fullscreen::after {
        background: rgba(0, 0, 0, 0.5);
    }
}

@media (max-width: 576px) {
    .carousel-fullscreen::after {
        background: rgba(0, 0, 0, 0.55);
    }
}

@media (max-width: 375px) {
    .carousel-fullscreen::after {
        background: rgba(0, 0, 0, 0.6);
    }
}

/* Animações suaves */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efeito de focus nos grupos de form */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-select:focus ~ label {
    color: #EB3349;
}

/* Tooltip customizado */
.tooltip .tooltip-inner {
    background-color: #EB3349;
    border-radius: 6px;
}

.tooltip .tooltip-arrow::before {
    border-top-color: #EB3349;
}

/* Estilo para campos obrigatórios */
.form-label:after {
    content: '';
}

.form-label[for*="required"]:after,
.form-label:has(~ input[required]):after,
.form-label:has(~ select[required]):after {
    content: ' *';
    color: #dc3545;
    font-weight: bold;
}

/* Melhorias na acessibilidade */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    outline: none;
}

/* Estilo para mensagens de sucesso */
.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    border-color: rgba(25, 135, 84, 0.2);
    color: #0f5132;
    border-radius: var(--border-radius-default);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.2);
    color: #842029;
    border-radius: var(--border-radius-default);
}

/* Footer igual ao index.php */
footer {
    position: relative;
    z-index: 2;
}

/* Cards de informações com fundo transparente */
.card.h-100 {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Ajustes para o cabeçalho da seção */
.text-center.mb-5 {
    padding: 2rem 0;
    margin-bottom: 3rem !important;
}