/* ==========================================================
   INFINITY CAR - STYLE.CSS (lado do cliente)
   Tema: preto + azul ciano, vidro transparente e luzes
========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Kaushan+Script&family=Oswald:wght@500;700&family=Rajdhani:wght@500;600;700&display=swap');

:root {
    --bg: #04080b;
    --bg-2: #08121a;
    --painel: rgba(12, 26, 34, .55);
    --painel-forte: rgba(8, 18, 24, .85);
    --borda: rgba(90, 220, 240, .22);
    --azul: #4fd6ea;
    --azul-claro: #a6f1fb;
    --azul-escuro: #14a3bd;
    --texto: #eaf9fc;
    --texto-suave: #9db8c0;
    --verde: #34e6a0;
    --vermelho: #ff5c6c;
    --brilho: 0 0 24px rgba(79, 214, 234, .35);
    --grad-btn: linear-gradient(135deg, #a6f1fb 0%, #4fd6ea 45%, #14a3bd 100%);
    --fonte: 'Rajdhani', 'Segoe UI', Arial, sans-serif;
    --fonte-titulo: 'Oswald', 'Arial Narrow', Arial, sans-serif;
    --fonte-script: 'Kaushan Script', 'Brush Script MT', cursive;
}

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

body {
    font-family: var(--fonte);
    font-size: 17px;
    background: var(--bg);
    color: var(--texto);
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================
   MENSAGEM FLASH (mensagem-alerta)
========================================================== */

.mensagem-alerta {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    max-width: 92%;
    padding: 14px 26px;
    border-radius: 14px;
    background: var(--painel-forte);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--borda);
    border-left: 4px solid var(--azul);
    color: var(--texto);
    font-weight: 600;
    text-align: center;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .5), var(--brilho);
    animation: alertaEntra .5s ease both, alertaSai .6s ease 6s forwards;
}

.mensagem-alerta.sucesso, .mensagem-alerta.success { border-left-color: var(--verde); }
.mensagem-alerta.erro, .mensagem-alerta.error, .mensagem-alerta.danger { border-left-color: var(--vermelho); }
.mensagem-alerta.aviso, .mensagem-alerta.warning { border-left-color: #ffc94d; }

@keyframes alertaEntra { from { opacity: 0; transform: translate(-50%, -20px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes alertaSai { to { opacity: 0; transform: translate(-50%, -20px); visibility: hidden; } }

/* ==========================================================
   NAVBAR
========================================================== */

.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 18px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(4, 8, 11, .6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--borda);
    z-index: 1000;
}

.logo {
    font-family: var(--fonte-titulo);
    font-size: 28px;
    font-weight: 700;
    color: var(--azul);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(79, 214, 234, .55);
}

.logo span { color: #fff; text-shadow: none; }

.menu { display: flex; gap: 34px; list-style: none; }

.menu a {
    position: relative;
    color: var(--texto);
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    transition: .3s;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 2px;
    background: var(--azul);
    box-shadow: 0 0 10px var(--azul);
    transition: .3s;
}

.menu a:hover { color: var(--azul-claro); }
.menu a:hover::after { width: 100%; }

/* ==========================================================
   HERO
========================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    padding: 120px 20px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(79, 214, 234, .30), transparent 45%),
        radial-gradient(ellipse at 90% 95%, rgba(20, 163, 189, .35), transparent 45%),
        linear-gradient(rgba(3, 8, 11, .72), rgba(3, 8, 11, .82)),
        url("../img/InfinitBackgroundTeste.png");
    background-size: cover;
    background-position: center;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 160px;
    background: linear-gradient(transparent, var(--bg));
    pointer-events: none;
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; max-width: 860px; }

/* Vídeo de fundo do hero (aparece só se existir static/img/hero.mp4) */
.hero-video {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero.tem-video .hero-video { display: block; }

.hero.tem-video::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(79, 214, 234, .30), transparent 45%),
        radial-gradient(ellipse at 90% 95%, rgba(20, 163, 189, .35), transparent 45%),
        linear-gradient(rgba(3, 8, 11, .72), rgba(3, 8, 11, .82));
}

.hero-tag {
    display: inline-block;
    padding: 8px 22px;
    margin-bottom: 18px;
    border-radius: 50px;
    background: var(--painel);
    backdrop-filter: blur(10px);
    border: 1px solid var(--borda);
    color: var(--azul-claro);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 { line-height: 1; margin-bottom: 22px; }

.titulo-infinity {
    display: block;
    font-family: var(--fonte-script);
    font-weight: 400;
    font-size: clamp(64px, 12vw, 150px);
    color: var(--azul-claro);
    transform: rotate(-4deg);
    margin-bottom: -.28em;
    position: relative;
    z-index: 2;
    text-shadow:
        0 0 12px rgba(166, 241, 251, .7),
        0 0 40px rgba(79, 214, 234, .65),
        0 0 90px rgba(20, 163, 189, .5);
}

.titulo-car {
    display: block;
    font-family: var(--fonte-titulo);
    font-weight: 700;
    font-size: clamp(60px, 11vw, 140px);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 6px 30px rgba(0, 0, 0, .6), 0 0 30px rgba(255, 255, 255, .12);
}

.hero p {
    font-size: 21px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--texto-suave);
    margin-bottom: 30px;
    color: #cfe6ec;
}

/* ==========================================================
   BOTÃO PRINCIPAL (.btn) + brilho + bolhas
========================================================== */

.btn-area {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 36px;
    width: 100%;
}

.btn {
    position: relative;
    width: 350px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: none;
    border-radius: 16px;
    text-decoration: none;
    cursor: pointer;
    font-family: var(--fonte);
    background: var(--grad-btn);
    color: #03242c;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .45), 0 0 34px rgba(79, 214, 234, .40), inset 0 1px 0 rgba(255, 255, 255, .55);
    transition: transform .25s ease, box-shadow .25s ease;
}

.btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .5), 0 0 55px rgba(79, 214, 234, .65), inset 0 1px 0 rgba(255, 255, 255, .6);
}

.btn:active { transform: scale(.97); }

.texto {
    position: relative;
    z-index: 30;
    font-size: 22px;
    font-weight: 700;
    color: #03242c;
    letter-spacing: 1.5px;
}

.shine {
    position: absolute;
    left: -120px; top: 0;
    width: 70px; height: 100%;
    background: linear-gradient(transparent, rgba(255, 255, 255, .8), transparent);
    transform: skewX(-25deg);
    animation: shine 3.8s infinite;
    pointer-events: none;
}

@keyframes shine { 0% { left: -120px; } 100% { left: 420px; } }

.bubble {
    position: absolute;
    bottom: -20px;
    background: radial-gradient(circle, rgba(255, 255, 255, .85), rgba(79, 214, 234, .08));
    border-radius: 50%;
    pointer-events: none;
    animation: subirBolha 3s ease-out forwards;
}

@keyframes subirBolha {
    0% { transform: translateY(0) scale(.5); opacity: 0; }
    20% { opacity: 1; }
    70% { opacity: .8; }
    100% { transform: translateY(-180px) scale(1.5); opacity: 0; }
}

/* ==========================================================
   SETAS INDICANDO PARA BAIXO (abaixo do botão principal)
========================================================== */

.setas-scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-top: 16px;
    padding: 6px 14px;
    text-decoration: none;
}

.setas-scroll span {
    display: block;
    width: 22px;
    height: 22px;
    margin-top: -9px;
    border-right: 3px solid var(--azul);
    border-bottom: 3px solid var(--azul);
    transform: rotate(45deg);
    opacity: 0;
    filter: drop-shadow(0 0 8px var(--azul));
    animation: setaDescendo 2.1s ease-in-out infinite;
}

.setas-scroll span:nth-child(2) { animation-delay: .3s; }
.setas-scroll span:nth-child(3) { animation-delay: .6s; }

@keyframes setaDescendo {
    0%   { opacity: 0;  transform: translateY(-14px) rotate(45deg); }
    30%  { opacity: 1; }
    65%  { opacity: .55; }
    100% { opacity: 0;  transform: translateY(16px) rotate(45deg); }
}

/* ==========================================================
   SEÇÕES (base)
========================================================== */

.servicos, .galeria, .diferenciais, .orcamento {
    position: relative;
    padding: 90px 10%;
    text-align: center;
}

.servicos h2, .galeria h2, .diferenciais h2, .orcamento h2 {
    font-family: var(--fonte-titulo);
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 14px;
}

.subtitulo {
    margin-bottom: 46px;
    font-size: 19px;
    color: var(--texto-suave);
}

/* ==========================================================
   SERVIÇOS
========================================================== */

.servicos {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(79, 214, 234, .14), transparent 60%),
        var(--bg);
    scroll-margin-top: 70px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    justify-content: center;
}

.card-link { text-decoration: none; color: inherit; display: block; width: 100%; }

.card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 290px;
    padding: 28px 24px;
    text-align: center;
    border-radius: 22px;
    cursor: pointer;
    background:
        radial-gradient(circle at 100% 0%, rgba(79, 214, 234, .22), transparent 55%),
        linear-gradient(160deg, rgba(20, 44, 56, .62), rgba(6, 14, 19, .72));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--borda);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
    transition: transform .35s, border-color .35s, box-shadow .35s;
}

.card::before {
    content: "";
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(166, 241, 251, .18), transparent);
    transform: skewX(-20deg);
    transition: .9s;
}

.card::after {
    content: "";
    position: absolute;
    top: 14px; right: 14px;
    width: 26px; height: 26px;
    border-top: 2px solid var(--azul);
    border-right: 2px solid var(--azul);
    border-top-right-radius: 8px;
    opacity: .7;
    filter: drop-shadow(0 0 6px var(--azul));
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--azul);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .55), 0 0 38px rgba(79, 214, 234, .32);
}

.card:hover::before { left: 160%; }

.card h3 {
    font-family: var(--fonte-titulo);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 14px;
    padding: 0 22px;
}

.card p {
    color: var(--texto-suave);
    font-size: 17px;
    line-height: 1.55;
    min-height: 90px;
}

.btn-servico {
    position: relative;
    display: inline-block;
    align-self: center;
    margin-top: auto;
    padding: 12px 24px;
    border-radius: 12px;
    background: var(--grad-btn);
    color: #03242c;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35), 0 0 18px rgba(79, 214, 234, .25);
    transition: .3s;
}

.card:hover .btn-servico, .btn-servico:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .4), 0 0 30px rgba(79, 214, 234, .55);
}

/* ==========================================================
   GALERIA
========================================================== */

.galeria { background: var(--bg-2); }

.fotos { display: flex; justify-content: center; gap: 26px; }

.fotos img {
    width: 320px; height: 230px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--borda);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
    transition: .4s;
}

.fotos img:hover {
    transform: translateY(-6px);
    border-color: var(--azul);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 0 32px rgba(79, 214, 234, .35);
}

/* ==========================================================
   DIFERENCIAIS
========================================================== */

.diferenciais { background: var(--bg); }

.lista-diferenciais { display: flex; justify-content: center; gap: 26px; margin-top: 40px; }

.item {
    flex: 1;
    max-width: 320px;
    padding: 30px 24px;
    border-radius: 20px;
    background: var(--painel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--borda);
    transition: .35s;
}

.item:hover {
    transform: translateY(-6px);
    border-color: var(--azul);
    box-shadow: 0 0 32px rgba(79, 214, 234, .25);
}

.item h3 { font-size: 23px; margin-bottom: 12px; color: var(--azul-claro); }
.item p { line-height: 1.6; color: var(--texto-suave); }

/* ==========================================================
   CONTATO / WHATSAPP
========================================================== */

.orcamento {
    background:
        radial-gradient(ellipse at 50% 100%, rgba(79, 214, 234, .25), transparent 60%),
        var(--bg-2);
}

.orcamento p { font-size: 21px; margin-bottom: 34px; color: var(--texto-suave); }

.btn-whatsapp {
    display: inline-block;
    padding: 17px 42px;
    border-radius: 16px;
    background: var(--grad-btn);
    color: #03242c;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .45), 0 0 34px rgba(79, 214, 234, .40);
    transition: .3s;
}

.btn-whatsapp:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 34px rgba(0, 0, 0, .5), 0 0 55px rgba(79, 214, 234, .65); }

/* ==========================================================
   PÁGINA DE AGENDAMENTO
========================================================== */

.agendamento {
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--texto);
    user-select: none;
    background:
        radial-gradient(ellipse at 10% 0%, rgba(79, 214, 234, .22), transparent 45%),
        radial-gradient(ellipse at 95% 100%, rgba(20, 163, 189, .25), transparent 45%),
        var(--bg);
}

.agendamento input, .agendamento select, .agendamento textarea { user-select: text; }

.agendamento h1 {
    font-family: var(--fonte-titulo);
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 0 0 26px rgba(79, 214, 234, .4);
}

.agendamento p { margin-bottom: 28px; text-align: center; color: var(--texto-suave); }

.agendamento form {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 28px;
    border-radius: 24px;
    background: var(--painel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--borda);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5), 0 0 40px rgba(79, 214, 234, .10);
}

.agendamento label { font-size: 15px; font-weight: 600; color: var(--azul-claro); letter-spacing: .5px; }

.agendamento input, .agendamento select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--borda);
    background: rgba(4, 10, 14, .7);
    color: var(--texto);
    font-family: var(--fonte);
    font-size: 17px;
    font-weight: 500;
    transition: .25s;
}

.agendamento input::placeholder { color: #5f7c86; }

.agendamento input:focus, .agendamento select:focus {
    outline: none;
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(79, 214, 234, .18), 0 0 20px rgba(79, 214, 234, .25);
}

.campo-servico { background: rgba(79, 214, 234, .10) !important; color: var(--azul-claro) !important; font-weight: 700 !important; cursor: not-allowed; }

.opcoes-veiculo { width: 100%; display: flex; flex-direction: column; gap: 12px; }

.opcoes-veiculo label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: 14px;
    background: rgba(4, 10, 14, .7);
    color: var(--texto);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--borda);
    transition: .3s;
}

.opcoes-veiculo label:hover { border-color: var(--azul); box-shadow: 0 0 20px rgba(79, 214, 234, .2); }

.opcoes-veiculo input[type="radio"] { width: 18px; height: 18px; padding: 0; accent-color: var(--azul); cursor: pointer; }

.agendamento .btn { align-self: center; margin-top: 8px; width: 300px; height: 68px; font-size: 19px; }

/* Localização e veículo + placa */

.localizacao-container { display: flex; gap: 15px; width: 100%; align-items: flex-end; }
.localizacao-container label { display: flex; flex-direction: column; flex: 1; gap: 6px; }
.localizacao-container input { width: 100%; }

.veiculo-placa-container { display: flex; gap: 15px; width: 100%; align-items: flex-start; }
.veiculo-placa-container .campo-autocomplete { flex: 2; min-width: 0; }
.veiculo-placa-container > input[name="placa"] { flex: 1; min-width: 0; }

/* Autocomplete */

.campo-autocomplete { position: relative; width: 100%; }

.lista-veiculos {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    max-height: 220px;
    overflow-y: auto;
    border-radius: 12px;
    background: var(--painel-forte);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--borda);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .55);
    z-index: 999;
}

.lista-veiculos:empty { display: none; }

.item-veiculo {
    padding: 13px 15px;
    color: var(--texto);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid rgba(90, 220, 240, .12);
    transition: .2s;
}

.item-veiculo:hover { background: var(--azul); color: #03242c; }
.item-veiculo:last-child { border-bottom: none; }

/* ==========================================================
   CALENDÁRIO + JANELA DE DATA E HORÁRIO
========================================================== */

.botao-data-horario {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid var(--azul);
    border-radius: 12px;
    background: rgba(79, 214, 234, .08);
    color: var(--texto);
    font-family: var(--fonte);
    font-size: 17px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: .25s;
}

.botao-data-horario:hover { background: rgba(79, 214, 234, .16); box-shadow: 0 0 22px rgba(79, 214, 234, .3); }

.janela-data-horario {
    display: none;
    width: 100%;
    max-width: 450px;
    margin-top: 5px;
    padding: 10px;
    gap: 10px;
    align-items: stretch;
    background: rgba(4, 10, 14, .8);
    border: 1px solid var(--borda);
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .5);
}

.calendario-container {
    width: 100%;
    max-width: 450px;
    padding: 18px;
    background: rgba(12, 26, 34, .6);
    border: 1px solid var(--borda);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.janela-data-horario .calendario-container {
    flex: 1;
    width: auto;
    max-width: none;
    padding: 12px;
    border: none;
    border-radius: 12px;
    box-shadow: none;
}

.calendario-cabecalho { display: grid; grid-template-columns: 45px 1fr 45px; align-items: center; gap: 10px; margin-bottom: 18px; }

.calendario-mes { text-align: center; font-family: var(--fonte-titulo); font-size: 20px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--azul-claro); }

.calendario-navegacao {
    width: 42px; height: 42px;
    border: 1px solid var(--borda);
    border-radius: 12px;
    background: rgba(4, 10, 14, .7);
    color: var(--azul);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: .25s;
}

.calendario-navegacao:hover { background: var(--azul); color: #03242c; transform: scale(1.06); box-shadow: 0 0 18px rgba(79, 214, 234, .5); }

.calendario-semana { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 8px; }
.calendario-semana div { text-align: center; font-size: 13px; font-weight: 700; color: var(--texto-suave); padding: 7px 0; text-transform: uppercase; }

.calendario-dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }

.dia-calendario {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: none;
    border-radius: 10px;
    font-family: var(--fonte);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .25s;
}

/* Contorno levemente mais aceso nas datas disponíveis */
.dia-disponivel { background: rgba(4, 10, 14, .7); color: var(--texto); cursor: pointer; border: 1px solid rgba(110, 232, 248, .5); }

.dia-disponivel:hover { background: var(--azul); color: #03242c; transform: translateY(-2px); box-shadow: 0 5px 16px rgba(79, 214, 234, .4); }

.dia-indisponivel { background: rgba(4, 8, 11, .6); color: #4a5f66; cursor: not-allowed; border: 1px solid rgba(90, 220, 240, .08); opacity: .7; }

.dia-vazio { width: 100%; aspect-ratio: 1 / 1; }

.dia-calendario.dia-indisponivel { position: relative; }

.dia-calendario.dia-indisponivel::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--vermelho); bottom: 5px; }

/* Dias que já passaram: opacos e sem clique (não há ponto vermelho: o ponto é só de data bloqueada / esgotada) */
.dia-calendario.dia-passado { background: rgba(4, 8, 11, .45); color: #7d98a1; border: 1px solid rgba(90, 220, 240, .08); opacity: .6; cursor: not-allowed; }

/* Hoje: frisado, para bater o olho e saber qual é a data atual */
.dia-calendario.dia-hoje { border: 2px solid var(--azul); box-shadow: 0 0 16px rgba(79, 214, 234, .5); }

.dia-calendario.dia-selecionado {
    background: var(--grad-btn);
    color: #03242c;
    border-color: var(--azul);
    box-shadow: 0 0 18px rgba(79, 214, 234, .55);
}

/* Painel de horários */

.painel-horarios {
    display: none;
    flex-direction: column;
    width: 150px; min-width: 150px;
    padding: 12px;
    background: rgba(12, 26, 34, .6);
    border: 1px solid var(--borda);
    border-radius: 12px;
}

.painel-horarios-titulo { color: var(--azul-claro); font-size: 15px; font-weight: 700; text-align: center; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px; }

.lista-horarios { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; align-content: start; flex: 1; }

.horario-opcao {
    width: 100%;
    padding: 7px 5px;
    border: 1px solid var(--borda);
    border-radius: 8px;
    background: rgba(4, 10, 14, .7);
    color: var(--texto);
    font-family: var(--fonte);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

.horario-opcao:hover { background: var(--azul); color: #03242c; border-color: var(--azul); }

.horario-opcao.horario-selecionado { background: var(--grad-btn); color: #03242c; border-color: var(--azul); box-shadow: 0 0 14px rgba(79, 214, 234, .5); }

.horario-indisponivel { width: 100%; padding: 12px 5px; color: var(--texto-suave); font-size: 13px; text-align: center; line-height: 1.4; }

.botao-confirmar-data-horario {
    width: 100%;
    margin-top: auto;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: var(--grad-btn);
    color: #03242c;
    font-family: var(--fonte);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: .25s;
}

.botao-confirmar-data-horario:hover { transform: translateY(-1px); box-shadow: 0 0 20px rgba(79, 214, 234, .5); }
.botao-confirmar-data-horario:disabled { background: #22333a; color: #647981; cursor: not-allowed; transform: none; box-shadow: none; }

/* Campo real do horário (fica só para o Flask) */
.campo-horario-real { display: none !important; }

/* ==========================================================
   PÁGINA DE PAGAMENTO
========================================================== */

.pagamento {
    min-height: 100vh;
    padding: 30px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--texto);
    background:
        radial-gradient(ellipse at 10% 0%, rgba(79, 214, 234, .22), transparent 45%),
        radial-gradient(ellipse at 95% 100%, rgba(20, 163, 189, .25), transparent 45%),
        var(--bg);
}

.pagamento h1 {
    font-family: var(--fonte-titulo);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 8px;
    text-shadow: 0 0 26px rgba(79, 214, 234, .4);
}

.pagamento > p { margin-bottom: 24px; text-align: center; color: var(--texto-suave); font-size: 16px; }

.resumo-agendamento, .valor-pagamento, .pix {
    width: 100%;
    max-width: 790px;
    background: var(--painel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--borda);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

.resumo-agendamento { padding: 18px 22px; }
.resumo-agendamento h2 { font-family: var(--fonte-titulo); font-size: 18px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--azul-claro); margin-bottom: 14px; }

.dados-resumo-container { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.coluna-resumo { display: flex; flex-direction: column; gap: 12px; }
.item-resumo { display: flex; align-items: center; gap: 12px; }

.icone-resumo {
    flex-shrink: 0;
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(79, 214, 234, .12);
    border: 1px solid var(--borda);
    font-size: 17px;
}

/* ==========================================================
   ÍCONES DO RESUMO (apenas traço, sem preenchimento)
   Cada ícone é um desenho de linha na cor azul do tema.
   Para trocar a cor, altere o background-color abaixo.
========================================================== */

.icone-resumo::before {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    background-color: var(--azul);
    -webkit-mask: var(--icone) center / contain no-repeat;
    mask: var(--icone) center / contain no-repeat;
}

/* Cliente */
.icone-cliente { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-7 8-7s8 3 8 7'/%3E%3C/svg%3E"); }

/* WhatsApp (balão de conversa) */
.icone-whatsapp { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.5 8.5 0 0 1-12.6 7.4L3 20.5l1.7-5.2A8.5 8.5 0 1 1 21 11.5z'/%3E%3Cpath d='M9 9.5c0 3 2.5 5.5 5.5 5.5l1.2-1.6-2-1-.9.7c-.8-.4-1.5-1.1-1.9-1.9l.7-.9-1-2z'/%3E%3C/svg%3E"); }

/* Localização (prédio / torre de apartamentos) */
.icone-localizacao { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='1.5'/%3E%3Cpath d='M9 7h2M13 7h2M9 11h2M13 11h2M9 15h2M13 15h2'/%3E%3Cpath d='M10.5 21v-3h3v3'/%3E%3C/svg%3E"); }

/* Veículo (carro) */
.icone-veiculo { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 17H3.5v-4.5L5.8 8.5a1.5 1.5 0 0 1 1.3-.8h9.8a1.5 1.5 0 0 1 1.3.8l2.3 4V17H19'/%3E%3Cpath d='M3.5 12.5h17'/%3E%3Ccircle cx='7.5' cy='17' r='2'/%3E%3Ccircle cx='16.5' cy='17' r='2'/%3E%3Cpath d='M9.5 17h5'/%3E%3C/svg%3E"); }

/* Serviço (gota d'água) */
.icone-servico { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3s6 6.2 6 10.5a6 6 0 0 1-12 0C6 9.2 12 3 12 3z'/%3E%3Cpath d='M9.5 14a2.6 2.6 0 0 0 2.5 2.5'/%3E%3C/svg%3E"); }

/* Data (calendário) */
.icone-data { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }

/* Horário (relógio) */
.icone-horario { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }

/* Acesso ao veículo (chave) */
.icone-chave { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M11 12l9-9M16 7l3 3M14 9l2 2'/%3E%3C/svg%3E"); }

.item-resumo small { display: block; color: var(--texto-suave); font-size: 12px; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 1px; }
.item-resumo span { font-size: 16px; font-weight: 600; color: #fff; }

.valor-pagamento { margin-top: 10px; padding: 14px 22px; display: flex; justify-content: space-between; align-items: center; }
.valor-pagamento span { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.valor-pagamento strong { color: var(--azul); font-size: 30px; text-shadow: 0 0 20px rgba(79, 214, 234, .5); }

.pix { margin-top: 10px; padding: 20px; text-align: center; }
.pix h2 { color: var(--azul-claro); font-family: var(--fonte-titulo); font-size: 20px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }

.qr-code {
    width: 150px; height: 150px;
    margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 0 0 4px rgba(79, 214, 234, .35), 0 0 34px rgba(79, 214, 234, .35);
}

.qr-code img { width: 88%; height: 88%; object-fit: contain; }
.qr-code p { color: #333; font-size: 13px; padding: 8px; }

.codigo-pix { width: 100%; max-width: 580px; margin: auto; }
.codigo-pix h3 { color: #fff; font-size: 16px; margin-bottom: 8px; }
.campo-pix { display: flex; align-items: center; gap: 8px; }

.codigo-pix textarea {
    width: 100%; height: 48px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--borda);
    background: rgba(4, 10, 14, .7);
    color: var(--texto-suave);
    resize: none;
    font-size: 12px;
}

.campo-pix button {
    width: 46px; height: 46px;
    border: none;
    border-radius: 10px;
    background: var(--grad-btn);
    color: #03242c;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(79, 214, 234, .35);
    transition: .25s;
}

.campo-pix button:hover { transform: scale(1.08); }
.codigo-pix small { display: block; margin-top: 6px; color: var(--texto-suave); font-size: 12px; }

.status-pagamento {
    margin-top: 14px;
    padding: 11px;
    border-radius: 12px;
    background: rgba(4, 10, 14, .7);
    border: 1px solid var(--borda);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    flex-wrap: wrap;
}

.status-pagamento strong { color: var(--azul-claro); }
.pagamento-pendente span:last-child { color: var(--azul); font-weight: 700; }
.pagamento-pendente .icone-status { animation: pulsar 1.6s ease-in-out infinite; }
.pagamento-aprovado { border-color: rgba(52, 230, 160, .5); box-shadow: 0 0 26px rgba(52, 230, 160, .25); }
.pagamento-aprovado strong { color: var(--verde); }
.pagamento-aprovado p { color: var(--texto-suave); width: 100%; text-align: center; }

@keyframes pulsar { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ==========================================================
   RESPONSIVIDADE
========================================================== */

@media (max-width: 1100px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .navbar { padding: 16px 28px; }
    .logo { font-size: 24px; }
    .menu { gap: 20px; }
    .menu a { font-size: 15px; }
    .lista-diferenciais, .fotos { flex-direction: column; align-items: center; }
    .item { max-width: 380px; width: 100%; }
    .fotos img { width: 90%; max-width: 380px; }
    .resumo-agendamento, .valor-pagamento, .pix { max-width: 700px; }
}

@media (max-width: 600px) {
    .cards { grid-template-columns: 1fr; }
    .card-link { max-width: 380px; margin: 0 auto; }
    .card { min-height: 250px; }
    .card p { min-height: 0; margin-bottom: 20px; }
    .navbar { padding: 14px 18px; }
    .logo { font-size: 21px; letter-spacing: 2px; }
    .menu { gap: 14px; }
    .menu a { font-size: 13px; }
    .servicos, .galeria, .diferenciais, .orcamento { padding: 64px 20px; }
    .servicos h2, .galeria h2, .diferenciais h2, .orcamento h2 { font-size: 32px; }
    .hero { padding: 100px 18px 50px; }
    .hero p { font-size: 18px; }
    .btn { width: 290px; height: 70px; }
    .texto { font-size: 19px; }
    .mensagem-alerta { top: 76px; }

    .agendamento { padding: 30px 14px; }
    .agendamento h1 { font-size: 30px; }
    .agendamento form { padding: 20px 16px; border-radius: 20px; }
    .agendamento input, .agendamento select { padding: 13px; font-size: 16px; }
    .agendamento .btn { width: 100%; max-width: 260px; }

    .pagamento h1 { font-size: 25px; }
    .pagamento { justify-content: flex-start; }
    .dados-resumo-container { grid-template-columns: 1fr; gap: 12px; }
    .valor-pagamento strong { font-size: 25px; }
    .status-pagamento { flex-direction: column; text-align: center; }
}

@media (max-width: 500px) {
    .calendario-container { padding: 14px; border-radius: 14px; }
    .calendario-cabecalho { grid-template-columns: 40px 1fr 40px; gap: 8px; margin-bottom: 15px; }
    .calendario-mes { font-size: 18px; }
    .calendario-navegacao { width: 38px; height: 38px; font-size: 25px; }
    .calendario-dias, .calendario-semana { gap: 5px; }
    .calendario-semana div { font-size: 11px; }
    .dia-calendario { font-size: 14px; border-radius: 8px; }

    .janela-data-horario { padding: 7px; gap: 7px; border-radius: 14px; }
    .janela-data-horario .calendario-container { padding: 8px; }
    .painel-horarios { width: 125px; min-width: 125px; padding: 8px; }
    .painel-horarios-titulo { font-size: 12px; }
    .horario-opcao { padding: 9px 4px; font-size: 14px; }
    .botao-confirmar-data-horario { padding: 9px; font-size: 14px; }
    .qr-code { width: 170px; height: 170px; }
}


/* ==========================================================
   MODAL DE AGENDAMENTO (abre ao clicar no card de serviço)
========================================================== */

.modal-agendamento {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 14px;
    background: rgba(3, 8, 11, .82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal-agendamento.aberto { display: block; }

body.modal-aberto { overflow: hidden; }

.modal-caixa {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.modal-agendamento .agendamento {
    min-height: 0;
    padding: 36px 0 20px;
    background: none;
}

.modal-agendamento .agendamento h1 { font-size: 30px; }

.modal-fechar {
    position: absolute;
    top: 4px;
    right: 0;
    z-index: 5;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--borda);
    background: var(--painel-forte);
    color: var(--texto);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: .25s;
}

.modal-fechar:hover { background: var(--azul); color: #03242c; box-shadow: 0 0 22px rgba(79, 214, 234, .5); }

@media (max-width: 600px) {
    .modal-agendamento { padding: 12px 8px; }
    .modal-agendamento .agendamento h1 { font-size: 24px; padding: 0 44px; }
    .modal-agendamento .agendamento form { padding: 20px 16px; }
}


/* ==========================================================
   MODAL DE PAGAMENTO (passo 2 dentro do mesmo modal)
========================================================== */

/* Caixa do pagamento: mesmo tamanho do modal do formulário */
.modal-caixa.larga { max-width: 520px; }

/* Painel onde entra a tela de pagamento */
.painel-pagamento { display: none; }

/* Pagamento dentro do modal: sem fundo próprio nem altura de página */
.modal-agendamento .pagamento {
    min-height: 0;
    padding: 36px 0 20px;
    background: none;
}

.modal-agendamento .pagamento h1 { font-size: 26px; padding: 0 44px; }

/* Aviso de erro no modal (ex: horário ocupado) */
.modal-aviso {
    width: 100%;
    max-width: 480px;
    margin: 0 auto 14px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 90, 90, .5);
    background: rgba(255, 90, 90, .12);
    color: #ffb4b4;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.modal-aviso:empty { display: none; }


/* ==========================================================
   CAMPOS DO FORMULÁRIO: CORREÇÃO DO FUNDO BRANCO (AUTOFILL)
   O navegador pintava de branco/azul claro os campos já
   preenchidos. Aqui mantemos o mesmo visual escuro dos campos.
========================================================== */

.agendamento input { color-scheme: dark; }

.agendamento input:-webkit-autofill,
.agendamento input:-webkit-autofill:hover,
.agendamento input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--texto);
    caret-color: var(--texto);
    -webkit-box-shadow: 0 0 0 1000px #071116 inset;
    box-shadow: 0 0 0 1000px #071116 inset;
    border: 1px solid var(--borda);
    transition: background-color 9999s ease-in-out 0s;
}

.agendamento input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--texto);
    caret-color: var(--texto);
    -webkit-box-shadow: 0 0 0 1000px #071116 inset, 0 0 0 3px rgba(79, 214, 234, .18), 0 0 20px rgba(79, 214, 234, .25);
    box-shadow: 0 0 0 1000px #071116 inset, 0 0 0 3px rgba(79, 214, 234, .18), 0 0 20px rgba(79, 214, 234, .25);
    border: 1px solid var(--azul);
    transition: background-color 9999s ease-in-out 0s;
}


/* ==========================================================
   CAMPOS CLICÁVEIS COM SETINHA (serviço e acesso ao veículo)
========================================================== */

/* Serviço escolhido: campo clicável com setinha à direita */
.campo-seletor { position: relative; width: 100%; cursor: pointer; }
.campo-seletor .campo-servico { cursor: pointer; padding-right: 46px; }
.campo-seletor:hover .campo-servico,
.campo-seletor:focus-visible .campo-servico { border-color: var(--azul); box-shadow: 0 0 20px rgba(79, 214, 234, .25); }
.campo-seletor:focus-visible { outline: none; }

/* Acesso ao veículo: campo único que abre a janela de opções */
.botao-seletor {
    position: relative;
    width: 100%;
    padding: 14px 46px 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--borda);
    background: rgba(4, 10, 14, .7);
    color: #5f7c86;
    font-family: var(--fonte);
    font-size: 17px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: .25s;
}
.botao-seletor.preenchido { color: var(--texto); }
.botao-seletor:hover,
.botao-seletor:focus-visible { outline: none; border-color: var(--azul); box-shadow: 0 0 20px rgba(79, 214, 234, .25); }

/* Setinha simples (indica que dá para clicar e escolher) */
.seta-seletor {
    position: absolute;
    right: 16px;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    color: var(--azul);
    pointer-events: none;
}


/* ==========================================================
   JANELAS FLUTUANTES (serviço, acesso e data/horário)
   Aparecem e somem com movimento suave
========================================================== */

/* Fundo escuro que cobre a tela (acima do modal de agendamento) */
.fundo-flutuante {
    position: fixed;
    inset: 0;
    z-index: 3100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    background: rgba(3, 8, 11, .72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility 0s linear .28s;
}

.fundo-flutuante.aberto {
    opacity: 1;
    visibility: visible;
    transition: opacity .28s ease, visibility 0s;
}

/* Caixa que sobe suavemente ao abrir e desce ao fechar */
.caixa-flutuante {
    opacity: 0;
    transform: translateY(18px) scale(.96);
    transition: opacity .3s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}

.fundo-flutuante.aberto .caixa-flutuante {
    opacity: 1;
    transform: none;
}

/* Caixa das opções (serviço e acesso ao veículo) */
.caixa-opcoes {
    width: 100%;
    max-width: 420px;
    padding: 22px;
    border-radius: 20px;
    background: var(--painel-forte);
    border: 1px solid var(--borda);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .55), 0 0 40px rgba(79, 214, 234, .12);
}

.caixa-opcoes-titulo {
    margin-bottom: 16px;
    text-align: center;
    font-family: var(--fonte-titulo);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--azul-claro);
}

/* Janela do calendário e horários dentro do fundo flutuante */
.fundo-flutuante .janela-data-horario {
    display: flex;
    margin: 0;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: var(--painel-forte);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .55), 0 0 40px rgba(79, 214, 234, .12);
}

.fundo-flutuante .painel-horarios { display: flex; }


/* ==========================================================
   MODAL DE AGENDAMENTO: EFEITO DE APARIÇÃO
   Ao clicar no card de serviço, o modal "surge" e expande
   suavemente (fundo escurece e a caixa cresce do centro).
   Para deixar mais lento/rápido, altere os tempos (.7s e .5s).
========================================================== */

/* Fundo escuro aparece suavemente */
.modal-agendamento.aberto {
    animation: modal-fundo-surge .5s ease both;
}

/* Caixa do formulário surge do nada e expande devagar */
.modal-agendamento.aberto .modal-caixa {
    animation: modal-caixa-surge .7s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes modal-fundo-surge {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes modal-caixa-surge {
    from { opacity: 0; transform: translateY(26px) scale(.82); filter: blur(6px); }
    60%  { opacity: 1; filter: blur(0); }
    to   { opacity: 1; transform: none; filter: none; }
}

/* Respeita quem desativa animações no aparelho */
/* ---------- Tempo esgotado: gerar pagamento novamente ---------- */

.pagamento .status-pagamento.pagamento-expirado {
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
    padding: 10px 4px 4px;
    font-size: 17px;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Relógio no mesmo estilo dos ícones do resumo (quadradinho com traço azul) */
.pagamento .expirado-icone.icone-resumo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    filter: drop-shadow(0 0 12px rgba(79, 214, 234, .35));
}

.pagamento .expirado-icone.icone-resumo::before {
    width: 32px;
    height: 32px;
}

.pagamento .status-pagamento.pagamento-expirado .expirado-titulo {
    font-family: var(--fonte-titulo);
    font-size: clamp(20px, 5vw, 28px);
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: center;
    color: var(--texto);
}

.pagamento .status-pagamento.pagamento-expirado .expirado-texto {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    font-size: clamp(15px, 3.8vw, 18px);
    line-height: 1.4;
    text-align: center;
    color: var(--texto-suave);
}

.botao-renovar {
    margin-top: 6px;
    padding: 14px 30px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-family: var(--fonte-titulo);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #04202a;
    background: var(--grad-btn);
    box-shadow: var(--brilho);
    transition: transform .2s, box-shadow .2s, opacity .2s;
}

.botao-renovar:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 0 34px rgba(79, 214, 234, .55); }
.botao-renovar:disabled { opacity: .65; cursor: wait; transform: none; }

.renovar-aviso {
    max-width: 420px;
    font-size: 15px;
    text-align: center;
    color: var(--vermelho);
}

.link-novo-horario {
    font-size: 14px;
    color: var(--texto-suave);
    text-decoration: underline;
}

.link-novo-horario:hover { color: var(--azul-claro); }


@media (prefers-reduced-motion: reduce) {
    .modal-agendamento.aberto,
    .modal-agendamento.aberto .modal-caixa { animation: none; }
}


/* ==========================================================
   MODAL DE AGENDAMENTO: VERSÃO COMPACTA (computador/notebook)
   Reduz alturas e espaços para o formulário caber na tela
   sem precisar rolar. Só vale dentro do modal (a página
   agendamento.html separada não é afetada) e só em telas
   maiores que 600px (o celular mantém o ajuste próprio).
========================================================== */

@media (min-width: 601px) {

    .modal-agendamento { padding: 10px 14px; }

    /* Título e subtítulo menores */
    .modal-agendamento .agendamento { padding: 18px 0 8px; }
    .modal-agendamento .agendamento h1 { font-size: 27px; margin-bottom: 5px; }
    .modal-agendamento .agendamento p { margin-bottom: 16px; font-size: 14px; }
    .modal-fechar { top: 0; width: 38px; height: 38px; font-size: 24px; }

    /* Formulário: menos espaço interno e entre os campos */
    .modal-agendamento .agendamento form { padding: 22px 24px; gap: 12px; border-radius: 20px; }
    .modal-agendamento .agendamento label { font-size: 13px; }

    /* Campos de texto mais baixos */
    .modal-agendamento .agendamento input { padding: 11px 14px; font-size: 15px; border-radius: 10px; }
    .modal-agendamento .agendamento .campo-seletor .campo-servico { padding: 11px 40px 11px 14px; }
    .localizacao-container { gap: 12px; }
    .modal-agendamento .localizacao-container label { gap: 4px; }
    .veiculo-placa-container { gap: 12px; }

    /* Botões que abrem janelas (data/horário e acesso) */
    .modal-agendamento .botao-data-horario { padding: 12px 14px; font-size: 15px; border-radius: 10px; }
    .modal-agendamento .botao-seletor { padding: 11px 40px 11px 14px; font-size: 15px; border-radius: 10px; }
    .modal-agendamento .seta-seletor { right: 14px; width: 16px; height: 16px; margin-top: -8px; }

    /* Botão Confirmar Agendamento menor */
    .modal-agendamento .agendamento .btn {
        width: 250px;
        height: 52px;
        margin-top: 6px;
        font-size: 14px;
        letter-spacing: .5px;
        white-space: nowrap;
        border-radius: 14px;
    }
}

/* Botão Confirmar menor também no celular */
@media (max-width: 600px) {
    .modal-agendamento .agendamento .btn { max-width: 220px; height: 52px; font-size: 15px; }
}


/* ==========================================================
   MODAL DE AGENDAMENTO: CELULAR
   Modal centralizado, mais estreito e com a mesma folga nas
   duas laterais, para não ocupar a tela de um lado ao outro.
   Para deixar ainda menor/maior, altere o padding lateral
   (hoje 9%) do .modal-agendamento.
========================================================== */

@media (max-width: 600px) {

    /* Folga igual dos dois lados (modal centralizado) */
    .modal-agendamento { padding: 14px 10%; }

    /* Centraliza também na vertical (meio da tela).
       Se o conteúdo for maior que a tela, fica no topo e rola. */
    .modal-agendamento.aberto { display: flex; }
    .modal-agendamento .modal-caixa { margin: auto; }

    /* Título, subtítulo e botão X menores */
    .modal-agendamento .agendamento { padding: 28px 0 12px; }
    .modal-agendamento .agendamento h1 { font-size: 20px; padding: 0 32px; margin-bottom: 5px; }
    .modal-agendamento .agendamento p { font-size: 12.5px; margin-bottom: 12px; }
    .modal-fechar { top: 0; width: 34px; height: 34px; font-size: 22px; }

    /* Formulário mais compacto */
    .modal-agendamento .agendamento form { padding: 14px 12px; gap: 9px; border-radius: 16px; }
    .modal-agendamento .agendamento label { font-size: 11.5px; }

    /* Campos mais baixos (fonte 16px evita o zoom automático do iPhone) */
    .modal-agendamento .agendamento input { padding: 9px 11px; font-size: 16px; border-radius: 9px; }
    .modal-agendamento .agendamento .campo-seletor .campo-servico { padding: 9px 34px 9px 11px; }
    .localizacao-container { gap: 10px; }
    .veiculo-placa-container { gap: 10px; }

    /* Botões que abrem janelas (data/horário e acesso) */
    .modal-agendamento .botao-data-horario { padding: 10px 11px; font-size: 13.5px; border-radius: 9px; }
    .modal-agendamento .botao-seletor { padding: 9px 34px 9px 11px; font-size: 13.5px; border-radius: 9px; }
    .modal-agendamento .seta-seletor { right: 12px; width: 15px; height: 15px; margin-top: -7px; }

    /* Botão Confirmar */
    .modal-agendamento .agendamento .btn { max-width: 220px; height: 44px; font-size: 12.5px; letter-spacing: 0; border-radius: 12px; }
}


/* ==========================================================
   MODAL DE AGENDAMENTO: TABLET
   Modal centralizado no meio da tela (laterais e também
   em cima e embaixo). Se o conteúdo for maior que a tela,
   ele volta a ficar no topo e rola normalmente.
========================================================== */

@media (min-width: 601px) and (max-width: 1100px) {

    .modal-agendamento.aberto { display: flex; }

    /* margin:auto centraliza na vertical e na horizontal */
    .modal-agendamento .modal-caixa { margin: auto; }
}


/* ==========================================================
   MODAL DE AGENDAMENTO: EFEITO AO FECHAR
   Faz o caminho inverso da abertura: a caixa encolhe e some
   suavemente e o fundo clareia. O tempo (.4s) deve ser igual
   ao setTimeout(..., 400) da função fecharModalAgendamento
   no index.html.
========================================================== */

.modal-agendamento.aberto.fechando {
    animation: modal-fundo-some .4s ease both;
    pointer-events: none;
}

.modal-agendamento.aberto.fechando .modal-caixa {
    animation: modal-caixa-some .4s cubic-bezier(.4, 0, .6, 1) both;
}

@keyframes modal-fundo-some {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@keyframes modal-caixa-some {
    from { opacity: 1; transform: none; filter: none; }
    to   { opacity: 0; transform: translateY(20px) scale(.88); filter: blur(4px); }
}

@media (prefers-reduced-motion: reduce) {
    .modal-agendamento.aberto.fechando,
    .modal-agendamento.aberto.fechando .modal-caixa { animation: none; }
}


/* ==========================================================
   CARDS DE SERVIÇO NO CELULAR
   Dois cards lado a lado (e os demais seguem embaixo,
   sempre de dois em dois), com folga nas laterais da tela.
   Para mudar o espaço entre os cards, altere o "gap".
========================================================== */

@media (max-width: 600px) {

    .servicos, .galeria, .diferenciais, .orcamento { padding-left: 16px; padding-right: 16px; }

    /* Grade de 2 colunas */
    .cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    /* Folga dos cards com as laterais da tela: mesma distância do
       modal do formulário (10% da largura da tela de cada lado).
       O -16px desconta o espaço que a seção já tem. */
    .cards { margin-left: calc(10vw - 16px); margin-right: calc(10vw - 16px); }
    .card-link { max-width: none; margin: 0; }

    /* Card reduzido de forma proporcional (altura, laterais, textos e
       botão diminuem juntos, mantendo o formato de antes).
       A altura mínima acompanha a largura do card: ~1,08 x a largura.
       Medidas em "vw" = proporção da largura da tela do celular. */
    .card {
        min-height: calc(43.4vw - 6.5px);
        padding: 4vw 2.5vw;
        border-radius: 16px;
    }
    .card h3 { font-size: clamp(13px, 3.8vw, 16px); padding: 0; margin-bottom: 2vw; }
    .card p { font-size: clamp(11px, 3vw, 13px); line-height: 1.4; margin-bottom: 3vw; }
    /* Enfeite do canto superior direito, também proporcional */
    .card::after { top: 3vw; right: 3vw; width: 5vw; height: 5vw; border-top-right-radius: 6px; }
    .btn-servico { padding: 2.3vw 2vw; font-size: clamp(10px, 2.7vw, 11.5px); letter-spacing: .3px; border-radius: 9px; }
}


/* ==========================================================
   MODAL DE PAGAMENTO: APARIÇÃO E CENTRALIZAÇÃO
   - Aparece com o mesmo efeito suave do modal do formulário
     (usa a animação "modal-caixa-surge").
   - Fica no centro da tela (laterais, topo e base).
     A classe "passo-pagamento" é colocada pelo JavaScript
     (função mostrarPagamento no index.html).
========================================================== */

/* Efeito de aparição ao trocar do formulário para o pagamento */
.painel-pagamento { animation: modal-caixa-surge .7s cubic-bezier(.16, 1, .3, 1) both; }

/* Centraliza o modal no meio da tela, na vertical e na horizontal.
   Se o conteúdo for maior que a tela, fica no topo e rola. */
.modal-agendamento.passo-pagamento.aberto { display: flex; }
.modal-agendamento.passo-pagamento .modal-caixa { margin: auto; }

@media (prefers-reduced-motion: reduce) {
    .painel-pagamento { animation: none; }
}


/* ==========================================================
   MODAL DE PAGAMENTO: VERSÃO COMPACTA (todas as telas)
   Mesma ideia do formulário: tamanho reduzido para o modal
   caber inteiro na tela, sem precisar rolar. Só vale dentro
   do modal (a página pagamento.html separada não é afetada).
========================================================== */

@media all {

    /* Título e subtítulo */
    .modal-agendamento .pagamento { padding: 14px 0 6px; }
    .modal-agendamento .pagamento h1 { font-size: 24px; margin-bottom: 4px; padding: 0 40px; }
    .modal-agendamento .pagamento > p { font-size: 13.5px; margin-bottom: 12px; }

    /* Resumo do serviço */
    .modal-agendamento .resumo-agendamento { padding: 12px 16px; border-radius: 16px; }
    .modal-agendamento .resumo-agendamento h2 { font-size: 15px; margin-bottom: 10px; }
    .modal-agendamento .dados-resumo-container { gap: 10px; }
    .modal-agendamento .coluna-resumo { gap: 8px; }
    .modal-agendamento .item-resumo { gap: 9px; }
    .modal-agendamento .icone-resumo { width: 30px; height: 30px; border-radius: 8px; }
    .modal-agendamento .icone-resumo::before { width: 18px; height: 18px; }
    .modal-agendamento .item-resumo small { font-size: 10px; }
    .modal-agendamento .item-resumo span { font-size: 13.5px; }

    /* Valor total */
    .modal-agendamento .valor-pagamento { margin-top: 8px; padding: 9px 16px; border-radius: 16px; }
    .modal-agendamento .valor-pagamento span { font-size: 13px; }
    .modal-agendamento .valor-pagamento strong { font-size: 24px; }

    /* Pix: QR Code, código copia e cola e status */
    .modal-agendamento .pix { margin-top: 8px; padding: 12px 16px; border-radius: 16px; }
    .modal-agendamento .pix h2 { font-size: 16px; margin-bottom: 8px; }
    .modal-agendamento .qr-code { width: 128px; height: 128px; margin-bottom: 8px; border-radius: 12px; }
    .modal-agendamento .codigo-pix h3 { font-size: 13px; margin-bottom: 5px; }
    .modal-agendamento .codigo-pix textarea { height: 38px; padding: 8px; font-size: 11px; }
    .modal-agendamento .campo-pix button { width: 38px; height: 38px; font-size: 16px; }
    .modal-agendamento .codigo-pix small { margin-top: 4px; font-size: 11px; }
    .modal-agendamento .status-pagamento { margin-top: 10px; padding: 8px; font-size: 13px; }
}


/* ==========================================================
   MODAL DE PAGAMENTO: CELULAR
   Segue a mesma referência do modal do formulário: centralizado,
   com 10% de folga nas laterais (definido no .modal-agendamento)
   e igual distância em cima e embaixo. Para caber melhor na tela,
   o resumo passa a ter duas colunas e tudo fica mais compacto.
========================================================== */

@media (max-width: 600px) {

    /* Título e subtítulo */
    .modal-agendamento .pagamento { padding: 28px 0 12px; }
    .modal-agendamento .pagamento h1 { font-size: 20px; padding: 0 32px; margin-bottom: 5px; }
    .modal-agendamento .pagamento > p { font-size: 12px; margin-bottom: 12px; }

    /* Resumo do serviço em duas colunas */
    .modal-agendamento .resumo-agendamento { padding: 11px 11px; border-radius: 14px; }
    .modal-agendamento .resumo-agendamento h2 { font-size: 14px; margin-bottom: 9px; }
    .modal-agendamento .dados-resumo-container { grid-template-columns: 1fr 1fr; gap: 8px; }
    .modal-agendamento .coluna-resumo { gap: 9px; }
    .modal-agendamento .item-resumo { gap: 6px; align-items: flex-start; }
    .modal-agendamento .icone-resumo { width: 24px; height: 24px; border-radius: 7px; }
    .modal-agendamento .icone-resumo::before { width: 15px; height: 15px; }
    .modal-agendamento .item-resumo small { font-size: 8.5px; letter-spacing: .3px; }
    .modal-agendamento .item-resumo span { font-size: 11.5px; line-height: 1.25; display: block; }

    /* Valor total */
    .modal-agendamento .valor-pagamento { margin-top: 8px; padding: 8px 12px; border-radius: 14px; }
    .modal-agendamento .valor-pagamento span { font-size: 11.5px; letter-spacing: .5px; }
    .modal-agendamento .valor-pagamento strong { font-size: 21px; }

    /* Pix */
    .modal-agendamento .pix { margin-top: 8px; padding: 11px 11px; border-radius: 14px; }
    .modal-agendamento .pix h2 { font-size: 15px; margin-bottom: 7px; }
    .modal-agendamento .qr-code { width: 118px; height: 118px; margin-bottom: 7px; }
    .modal-agendamento .codigo-pix h3 { font-size: 12px; margin-bottom: 5px; }
    .modal-agendamento .codigo-pix textarea { height: 34px; padding: 7px; font-size: 10.5px; }
    .modal-agendamento .campo-pix button { width: 34px; height: 34px; font-size: 14px; }
    .modal-agendamento .codigo-pix small { font-size: 10px; }
    .modal-agendamento .status-pagamento { margin-top: 9px; padding: 7px 4px; gap: 4px; font-size: 10.5px; }
}


/* ==========================================================
   EFEITO PARALLAX: HERO EM CAMADAS
   Fundo, brilhos, riscos de luz e partículas em profundidades
   diferentes. As posições são controladas pelo JavaScript
   (final do script.js); aqui ficam só os visuais.
========================================================== */

.hero { perspective: 1200px; }

.hero-parallax {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.px-camada { position: absolute; inset: 0; will-change: transform; }

/* Camada 1: imagem de fundo (maior que a tela para poder se mover) */
.px-fundo {
    inset: -10% -5%;
    background:
        linear-gradient(rgba(3, 8, 11, .72), rgba(3, 8, 11, .82)),
        url("../img/InfinitBackgroundTeste.png");
    background-size: cover;
    background-position: center;
}

/* Se existir vídeo de fundo, ele toma o lugar da imagem */
.hero.tem-video .px-fundo { display: none; }

/* Conteúdo do hero (título, texto e botão) se move em profundidade */
.hero-content { will-change: transform, opacity; transform-style: preserve-3d; }

/* Barra fina de progresso da rolagem (topo da tela) */
.px-progresso {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    z-index: 2000;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, #14a3bd, #4fd6ea, #bff6ff);
    box-shadow: 0 0 14px rgba(79, 214, 234, .9);
    pointer-events: none;
}


/* ==========================================================
   EFEITO PARALLAX: REVELAR AO ROLAR
   Títulos, cards, fotos e itens surgem suavemente (sobem e
   aparecem) quando entram na tela, com atraso em sequência.
   A classe "revelar" é colocada pelo JavaScript.
========================================================== */

body .revelar {
    opacity: 0;
    translate: 0 48px;
    scale: .96;
    transition: opacity .9s cubic-bezier(.16, 1, .3, 1), translate .9s cubic-bezier(.16, 1, .3, 1), scale .9s cubic-bezier(.16, 1, .3, 1);
}

body .revelar.revelado { opacity: 1; translate: 0 0; scale: 1; }


/* ==========================================================
   EFEITO PARALLAX: CARDS EM 3D (computador)
   O card inclina acompanhando o mouse.
   Só vale em telas com mouse (no celular não aparece).
========================================================== */

.card-link { position: relative; }

@media (hover: hover) and (pointer: fine) {

    .card-link {
        transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
        transition: transform .5s cubic-bezier(.2, .8, .2, 1);
    }

    /* Enquanto o mouse está em cima, acompanha rápido */
    .card-link.inclinando { transition: transform .08s linear; }
}


/* Quem desativa animações no aparelho não vê o efeito */
@media (prefers-reduced-motion: reduce) {
    body .revelar { opacity: 1; translate: none; scale: none; transition: none; }
}


/* ==========================================================
   FUNDO FIXO (VÍDEO / IMAGEM PERMANECE NA TELA)
   O vídeo de fundo e as camadas do parallax ficam parados atrás
   da página inteira. Ao rolar (ou clicar em "Agendar lavagem"),
   o fundo permanece e os títulos, cards e demais seções passam
   por cima dele.
========================================================== */

/* O fundo do hero passa a ser o fundo fixo (não rola mais junto) */
.hero {
    background: none;
    perspective: none;   /* perspectiva aqui impediria o fundo de ficar fixo */
}

/* Sem a faixa de transição escura no fim do hero */
.hero::after { display: none; }

/* Fundo fixo atrás de tudo */
.hero-parallax { position: fixed; z-index: -1; }
.hero-video { position: fixed; z-index: -1; }

/* O véu escuro do vídeo também fica fixo (substitui o ::before do hero) */
.hero.tem-video::before { display: none; }

.px-veu {
    display: none;
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(3, 8, 11, .72), rgba(3, 8, 11, .82));
}
.hero.tem-video .px-veu { display: block; }

/* Escurece aos poucos ao rolar (valor controlado pelo JavaScript) */
.hero-parallax::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #03080b;
    opacity: var(--escuro, 0);
}

/* Seções ficam translúcidas para o fundo fixo aparecer por trás
   (escuras o bastante para manter os textos legíveis) */
.servicos {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(79, 214, 234, .14), transparent 60%),
        linear-gradient(180deg, rgba(4, 8, 11, 0) 0, rgba(4, 8, 11, .6) 180px, rgba(4, 8, 11, .6) 100%);
}
.galeria      { background: rgba(8, 18, 26, .74); }
.diferenciais { background: rgba(4, 8, 11, .66); }
/* Contato (botão do WhatsApp): sem a faixa neon; mesmo véu da seção de cima */
.orcamento { background: rgba(4, 8, 11, .66); }


/* ==========================================================
   PAGAMENTO: CRONÔMETRO E CONFIRMAÇÃO
   (static/js/pagamento.js)
========================================================== */

.pagamento [hidden] { display: none !important; }


/* ---------- Título do topo: "Status: Aguardando pagamento" ---------- */

.pagamento h1.titulo-status {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pagamento h1.titulo-status .icone-status { animation: pulsar 1.6s ease-in-out infinite; }
.pagamento h1.titulo-status strong { color: var(--azul-claro); }
.pagamento h1.titulo-status .status-texto { color: var(--azul); }


/* ---------- Cronômetro (só o relógio) ---------- */

.bloco-contador {
    display: flex;
    justify-content: center;
    margin: 4px 0 16px;
}

.contador-tempo {
    display: inline-block;
    min-width: 76px;
    padding: 3px 14px;
    border-radius: 10px;
    font-family: var(--fonte-titulo);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
    color: var(--azul-claro);
    background: rgba(79, 214, 234, .10);
    border: 1px solid var(--borda);
    box-shadow: var(--brilho);
    transition: color .3s, background .3s, border-color .3s, box-shadow .3s;
}

/* Último minuto: vermelho e pulsando */
.contador-tempo.contador-urgente {
    color: var(--vermelho);
    background: rgba(255, 92, 108, .12);
    border-color: rgba(255, 92, 108, .55);
    box-shadow: 0 0 18px rgba(255, 92, 108, .4);
    animation: contadorPulsa 1s ease-in-out infinite;
}

@keyframes contadorPulsa {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.07); }
}


/* ---------- Título do topo quando confirmado ---------- */

.pagamento h1.confirmado {
    color: var(--verde);
    text-shadow: 0 0 24px rgba(52, 230, 160, .5);
}


/* ---------- Caixa do Pix quando confirmado ---------- */

.pix.pix-confirmado {
    padding: 24px 20px 22px;
    border-color: rgba(52, 230, 160, .5);
    box-shadow: 0 0 40px rgba(52, 230, 160, .22), 0 10px 30px rgba(0, 0, 0, .45);
}


/* ---------- Tela de confirmação ---------- */

.pagamento .status-pagamento.pagamento-confirmado {
    flex-direction: column;
    gap: 10px;
    margin-top: 0;
    padding: 6px 4px 0;
    font-size: 17px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.selo-confirmado {
    width: 80px;
    height: 80px;
    margin: 2px auto 4px;
}

.selo-check {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 14px rgba(52, 230, 160, .55));
    animation: seloPop .55s cubic-bezier(.2, 1.4, .4, 1) both;
}

.selo-circulo {
    fill: rgba(52, 230, 160, .12);
    stroke: var(--verde);
    stroke-width: 2.5;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: seloDesenha .6s .1s ease-out forwards;
}

.selo-visto {
    fill: none;
    stroke: var(--verde);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: seloDesenha .4s .6s ease-out forwards;
}

@keyframes seloDesenha { to { stroke-dashoffset: 0; } }

@keyframes seloPop {
    from { transform: scale(.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.pagamento .status-pagamento.pagamento-confirmado .confirmado-titulo {
    font-family: var(--fonte-titulo);
    font-size: clamp(19px, 4.6vw, 25px);
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.15;
    text-transform: uppercase;
    text-align: center;
    color: var(--verde);
    text-shadow: 0 0 22px rgba(52, 230, 160, .5);
}

.pagamento .status-pagamento.pagamento-confirmado .confirmado-texto {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    font-size: clamp(16px, 4vw, 20px);
    line-height: 1.4;
    text-align: center;
    color: var(--texto);
}

.pagamento .status-pagamento.pagamento-confirmado .confirmado-texto strong {
    color: var(--verde);
}

@media (prefers-reduced-motion: reduce) {
    .selo-check, .selo-circulo, .selo-visto, .contador-tempo.contador-urgente { animation: none; }
    .selo-circulo, .selo-visto { stroke-dashoffset: 0; }
}


/* ---------- Telas pequenas ---------- */

@media (max-width: 600px) {

    .bloco-contador { margin: 2px 0 12px; }
    .contador-tempo { font-size: 20px; min-width: 68px; padding: 2px 12px; }
    .pagamento h1.titulo-status { gap: 6px; }

    .selo-confirmado { width: 70px; height: 70px; }
    .pix.pix-confirmado { padding: 16px 12px 14px; }
}


/* ==========================================================
   PAGAMENTO CONFIRMADO NO MODAL: BOTÃO X (FECHAR)
   Sem o título do topo, o resumo subia até o botão X.
   Agora o conteúdo começa mais abaixo e o X fica um pouco
   mais acima, com uma distância entre os dois.
========================================================== */

/* Computador / notebook: só a posição (tamanho igual) */
.modal-agendamento .pagamento.pagamento-confirmada { padding-top: 46px; }

.modal-caixa:has(.pagamento-confirmada) .modal-fechar { top: -6px; }

/* Celular: posição e X um pouco maior */
@media (max-width: 600px) {

    .modal-agendamento .pagamento.pagamento-confirmada { padding-top: 50px; }

    .modal-caixa:has(.pagamento-confirmada) .modal-fechar {
        top: -6px;
        width: 40px;
        height: 40px;
        font-size: 27px;
    }
}


/* ==========================================================
   TEMPO ESGOTADO: ajustes só para computador / notebook
   Título menor e vermelho; texto de apoio menor.
========================================================== */
@media (min-width: 601px) {

    .pagamento .status-pagamento.pagamento-expirado .expirado-titulo {
        font-size: 22px;
        color: var(--vermelho);
        text-shadow: 0 0 18px rgba(255, 92, 108, .35);
    }

    .pagamento .status-pagamento.pagamento-expirado .expirado-texto {
        font-size: 15px;
        max-width: 400px;
    }
}


/* ==========================================================
   CELULAR: TELAS "AGUARDANDO PAGAMENTO" E "TEMPO ESGOTADO"
   - Botão X um pouco maior e mais perto do formulário
   - Título "Status: Aguardando pagamento" menor
   - Botão "Gerar pagamento novamente" menor
   (a tela de pagamento confirmado tem ajuste próprio, acima)
========================================================== */
@media (max-width: 600px) {

    /* Botão X: levemente maior e um pouco mais abaixo */
    .modal-caixa:has(.pagamento:not(.pagamento-confirmada)) .modal-fechar {
        top: 8px;
        width: 38px;
        height: 38px;
        font-size: 25px;
    }

    /* Menos espaço em cima: o formulário sobe e fica perto do X */
    .modal-agendamento .pagamento:not(.pagamento-confirmada) {
        padding-top: 22px;
    }

    /* Espaço dos lados do título livre para o X */
    .modal-agendamento .pagamento:not(.pagamento-confirmada) h1 {
        padding: 0 44px;
    }

    /* "⏳ Status: Aguardando pagamento" menor */
    .modal-agendamento .pagamento h1.titulo-status {
        font-size: 15px;
        gap: 5px;
        line-height: 1.25;
        letter-spacing: .5px;
    }

    /* Botão "Gerar pagamento novamente" menor */
    .botao-renovar {
        align-self: center;
        width: auto;
        padding: 9px 20px;
        font-size: 14px;
        letter-spacing: .5px;
        border-radius: 11px;
        margin-top: 2px;
    }
}


/* ==========================================================
   TEMPO ESGOTADO: TÍTULO E RELÓGIO EM VERMELHO
   (computador e celular)
========================================================== */

.pagamento .status-pagamento.pagamento-expirado .expirado-titulo {
    color: var(--vermelho);
    text-shadow: 0 0 18px rgba(255, 92, 108, .35);
}

.pagamento .expirado-icone.icone-resumo {
    background: rgba(255, 92, 108, .12);
    border-color: rgba(255, 92, 108, .5);
    filter: drop-shadow(0 0 12px rgba(255, 92, 108, .35));
}

.pagamento .expirado-icone.icone-resumo::before {
    background-color: var(--vermelho);
}


/* ==========================================================
   MODAL RESTAURADO AO ATUALIZAR A PÁGINA (F5)
   O modal reaparece pronto, sem a animação de entrada,
   para não "piscar".
========================================================== */
.modal-agendamento.aberto.sem-animacao:not(.fechando),
.modal-agendamento.aberto.sem-animacao:not(.fechando) .modal-caixa,
.modal-agendamento.sem-animacao .painel-pagamento {
    animation: none;
}

.modal-agendamento.sem-animacao .selo-check,
.modal-agendamento.sem-animacao .selo-circulo,
.modal-agendamento.sem-animacao .selo-visto {
    animation: none;
}

.modal-agendamento.sem-animacao .selo-circulo,
.modal-agendamento.sem-animacao .selo-visto {
    stroke-dashoffset: 0;
}


/* ==========================================================
   LOGO E FRASE DE CIMA DA TELA INICIAL
   Ordem: logo, frase de cima (selo), frase de baixo, botão.
   Tudo vem do painel (Gestão de Mídias, "Textos e logo"),
   inclusive o tamanho (--esc) e a posição (--x, --y).
========================================================== */
.hero h1.hero-logo {
    position: relative;
    left: calc(var(--x, 0) * 1%);
    top: calc(var(--y, 0) * 1px);
    display: flex;
    justify-content: center;
    line-height: 0;
    margin-bottom: 14px;
}

.hero-logo img {
    display: block;
    width: auto;
    height: calc(clamp(110px, 24vw, 240px) * var(--esc, 1));
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .45));
}

.hero .hero-tag {
    position: relative;
    left: calc(var(--x, 0) * 1%);
    top: calc(var(--y, 0) * 1px);
    font-size: calc(15px * var(--esc, 1));
    padding: calc(8px * var(--esc, 1)) calc(22px * var(--esc, 1));
    letter-spacing: calc(2px * var(--esc, 1));
    margin-bottom: calc(18px * var(--esc, 1));
}

/* Frase de baixo: mesma cor da frase de cima, com tamanho e posição do painel */
.hero .hero-texto {
    --base: 21px;
    position: relative;
    left: calc(var(--x, 0) * 1%);
    top: calc(var(--y, 0) * 1px);
    font-size: calc(var(--base) * var(--esc, 1));
    margin-bottom: calc(30px * var(--esc, 1));
    color: var(--azul-claro);
}

@media (max-width: 600px) {
    .hero .hero-texto { --base: 18px; }
}


/* ==========================================================
   CELULAR: LOGO UM POUCO MAIOR E FRASE DE CIMA EM UMA LINHA SÓ
   (o JavaScript ainda diminui a letra, se precisar, para a frase
   nunca quebrar em duas linhas)
========================================================== */
@media (max-width: 600px) {

    .hero-logo img {
        height: calc(clamp(135px, 35vw, 220px) * var(--esc, 1));
    }

    .hero .hero-tag {
        white-space: nowrap;
        max-width: none;
        font-size: calc(15px * var(--esc, 1));
        letter-spacing: calc(.3px * var(--esc, 1));
        padding: calc(7px * var(--esc, 1)) calc(11px * var(--esc, 1));
    }
}
