/**
 * Estilos da Landing Page - WashCar
 * Sistema de Estética Automotiva Premium
 */

/* Reset e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d4af37;
    --secondary-color: #c9a227;
    --dark-bg: #1a1a1a;
    --card-bg: #ffffff;
    --text-light: #ffffff;
    --text-dark: #2c2c2c;
    --text-gray: #666666;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(212, 175, 55, 0.4);
}

body {
    font-family: 'Montserrat', sans-serif;
    background: url('../images/background.png') center center / cover no-repeat fixed;
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* Partículas Brilhantes no Fundo */
@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Header */
.header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho animado no header */
.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(212, 175, 55, 0.1) 50%,
        transparent 70%
    );
    animation: headerShine 8s linear infinite;
}

/* Appointment Page Styles */
.appointment-container {
    background: rgba(255, 255, 255, 0.80);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-dark);
}

.appointment-container .form-label {
    color: #212529;;
}

.appointment-container .form-control,
.appointment-container .form-select {
    color: var(--text-dark);
}

/* Custom dark blue header background cor que está na tarja*/
.bg-primary-custom {
    background: #0d3b66 !important;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.btn-prev, .btn-next {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-prev {
    background: #6c757d;
    color: white;
}

.btn-prev:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-next:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.55);
}

@keyframes headerShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.logo h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 10px;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(212, 175, 55, 0.4),
        0 0 40px rgba(212, 175, 55, 0.2);
    position: relative;
    z-index: 1;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.5),
            0 0 20px rgba(212, 175, 55, 0.4),
            0 0 40px rgba(212, 175, 55, 0.2);
    }
    100% {
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.5),
            0 0 30px rgba(212, 175, 55, 0.6),
            0 0 60px rgba(212, 175, 55, 0.3),
            0 0 80px rgba(212, 175, 55, 0.1);
    }
}

.tagline {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-light);
    letter-spacing: 2px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Seção Principal */
.main-section {
    padding: 20px 0;
}

.intro {
    text-align: center;
    margin-bottom: 50px;
}

.intro h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.intro p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* Grid de Profissionais */
.professionals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* Card do Profissional */
.professional-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
}

.professional-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 2;
}

/* Efeito de brilho deslizante no card */
.professional-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(25deg);
    transition: left 0.7s ease;
    z-index: 1;
}

.professional-card:hover::before {
    transform: scaleX(1);
}

.professional-card:hover::after {
    left: 140%;
}

.professional-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-hover);
}

.card-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.professional-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 25px;
    text-align: center;
}

.professional-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.professional-specialty {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    font-weight: 400;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Botão Agendar */
.btn-agendar {
    display: inline-block;
    padding: 14px 35px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
    animation: buttonPulse 2s ease-in-out infinite;
}

/* Service Selection */
.service-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-item:hover {
    border-color: #c48a20;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-item.selected {
    border-color: #c48a20;
    background: rgba(196, 138, 32, 0.1);
}

/* Promotion Services */
.service-item.promo-service {
    background: linear-gradient(135deg, #fff8e7 0%, #ffffff 100%);
    border: 2px solid #dc3545;
    position: relative;
    animation: pulse-promo 2s ease-in-out infinite;
}
.btn-warning {
    background: linear-gradient(145deg, #207dc4, #311cb8);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(196, 138, 32, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(145deg, #b8791c, #c48a20);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 138, 32, 0.5);
}

/* Efeito de pulsação suave no botão */
@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(212, 175, 55, 0.5);
    }
}

.btn-agendar:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    animation: none;
}


.btn-agendar:active {
    transform: translateY(0);
}

/* Mensagem de Nenhum Profissional */
.no-professionals {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.no-professionals p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 1200px) {
    .professionals-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
        background-position: center top;
    }

    .logo h1 {
        font-size: 2.5rem;
        letter-spacing: 2px;
        animation: none;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .intro h2 {
        font-size: 2rem;
    }
    
    .intro p {
        font-size: 1rem;
    }
    
    .professionals-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .card-image {
        height: 250px;
    }
    
    .professional-name {
        font-size: 1.3rem;
    }
    
    .header {
        padding: 30px 15px;
        margin-bottom: 30px;
    }

    .header::before,
    .professional-card,
    .btn-agendar {
        animation: none;
    }

    .professional-card,
    .professional-card::before,
    .professional-card::after,
    .btn-agendar {
        transition: none;
    }
    .appointment-container {
        margin: 1rem;
        padding: 1rem;
    }
    .nav-buttons {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .intro h2 {
        font-size: 1.7rem;
    }
    
    .professionals-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-image {
        height: 280px;
    }
    
    .btn-agendar {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.professional-card {
    animation: fadeInUp 0.6s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

.professional-card:nth-child(1) {
    animation-delay: 0.1s;
}

.professional-card:nth-child(2) {
    animation-delay: 0.2s;
}

.professional-card:nth-child(3) {
    animation-delay: 0.3s;
}

.professional-card:nth-child(4) {
    animation-delay: 0.4s;
}

.professional-card:nth-child(5) {
    animation-delay: 0.5s;
}

.professional-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Estilos da seção de serviços da página inicial */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border: 1px solid #8a8a8a;
    background-color: #1f1f1f;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38), 0 4px 12px rgba(0, 0, 0, 0.24);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5), 0 8px 20px rgba(0, 0, 0, 0.32) !important;
}

.card-img-top-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f8f9fa;
    position: relative;
}

.card-img-top-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
}

.service-card .card-body {
    padding: 1.5rem;
    background-color: #1f1f1f;
}

.service-card .card-title {
    font-weight: 600;
    color: #fff;
}

.service-card .card-text,
.service-card .text-muted {
    color: #c2c2c2 !important;
}

.service-card .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.6rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-card .btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    .card-img-top-wrapper {
        height: 200px;
    }
}

/* Print Styles */
@media print {
    body::before {
        display: none;
    }
    
    .nav-buttons,
    .btn {
        display: none;
    }
    
    .appointment-container {
        box-shadow: none;
        border: 2px solid #000;
    }
}

/* ================================================================
   MODAL DO VEÍCULO
   ================================================================ */

/* Overlay – cobre a tela inteira */
.vehicle-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.72);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.vehicle-modal-overlay.active {
    display: flex !important;
}

/* Bloquear scroll do body quando modal aberto */
body.modal-open-lock,
html.modal-open-lock {
    overflow: hidden !important;
}

/* Caixa do modal */
.vehicle-modal-box {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 175, 55, 0.2);
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* Header do modal */
.vehicle-modal-header {
    text-align: center;
    padding: 2rem 2rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    border-radius: 20px 20px 0 0;
    color: #fff;
}

.vehicle-modal-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #1a1a1a;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.vehicle-modal-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.vehicle-modal-header p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Body do modal */
.vehicle-modal-body {
    padding: 1.75rem 2rem 0.5rem;
}

/* Footer do modal */
.vehicle-modal-footer {
    padding: 1rem 2rem 1.75rem;
    text-align: center;
}

/* Botão Avançar */
.btn-modal-confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-modal-confirm:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.55);
    transform: translateY(-2px);
}

.btn-modal-confirm:active {
    transform: translateY(0);
}

/* ================================================================
   RADIO CARDS – Porte do Veículo
   ================================================================ */
.porte-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.porte-card {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.porte-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.porte-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 1.1rem 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    background: #fafafa;
    transition: all 0.25s ease;
    text-align: center;
}

.porte-card:hover .porte-card-inner {
    border-color: var(--primary-color);
    background: #fffbf0;
}

.porte-card input:checked + .porte-card-inner {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #fffbf0, #fff8e1);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.porte-card-icon {
    font-size: 1.6rem;
    color: #aaa;
    transition: color 0.25s ease;
}

.porte-card input:checked + .porte-card-inner .porte-card-icon {
    color: var(--primary-color);
}

.porte-card-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2c2c2c;
    line-height: 1.2;
}

.porte-card-sub {
    font-size: 0.72rem;
    color: #888;
}

/* Animação disparada quando o sistema detecta automaticamente o porte */
@keyframes porteAutoSelect {
    0%   { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);    transform: scale(1); }
    35%  { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0.45); transform: scale(1.05); }
    65%  { box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.25);  transform: scale(1.02); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);    transform: scale(1); }
}

.porte-card-auto-selected .porte-card-inner {
    animation: porteAutoSelect 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    border-color: var(--primary-color) !important;
    background: linear-gradient(135deg, #fffbf0, #fff8e1) !important;
}

/* ================================================================
   RESUMO DO VEÍCULO (banner no topo do formulário)
   ================================================================ */
.vehicle-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fdf6e3 0%, #fef9ee 100%);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 12px;
    padding: 0.75rem 1.1rem;
    animation: fadeInDown 0.4s ease;
}

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

.vehicle-summary-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #3a3a3a;
}

.vehicle-summary-info strong {
    color: var(--primary-color);
}

/* Badges de porte */
.porte-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.porte-badge-small {
    background: rgba(59, 130, 246, 0.15);
    color: #1d6fc4;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.porte-badge-suv {
    background: rgba(212, 175, 55, 0.2);
    color: var(--primary-color);
    border: 1px solid rgba(212, 175, 55, 0.5);
}

/* Botão Alterar */
.btn-alterar-veiculo {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.9rem;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-alterar-veiculo:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--primary-color);
}

/* ================================================================
   PREÇOS REATIVOS – feedback visual
   ================================================================ */
.price-suv {
    color: #c48a20 !important;
}

@keyframes pricePulse {
    0%   { background-color: rgba(212, 175, 55, 0); }
    40%  { background-color: rgba(212, 175, 55, 0.18); }
    100% { background-color: rgba(212, 175, 55, 0); }
}

.service-item.price-updated {
    animation: pricePulse 0.6s ease;
    border-radius: 10px;
}

/* ================================================================
   RESPONSIVIDADE DO MODAL
   ================================================================ */
@media (max-width: 480px) {
    .vehicle-modal-body  { padding: 1.25rem 1.25rem 0.5rem; }
    .vehicle-modal-footer { padding: 0.75rem 1.25rem 1.25rem; }
    .vehicle-modal-header { padding: 1.5rem 1.25rem 1rem; }

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

    .vehicle-summary {
        flex-direction: column;
        align-items: flex-start;
    }
}
