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

:root {
    --pet-bg: #fff1f3;
    --pet-bg-soft: #fff8f9;
    --pet-primary: #d65a7e;
    --pet-primary-dark: #b94a6a;
    --pet-primary-light: #e987a2;
    --pet-brown: #ad8b78;
    --pet-gray: #8a8383;
    --pet-text: #4d3f43;
    --pet-border: #f1c7d2;
    --pet-card: #ffffff;
    --pet-shadow: rgba(182, 99, 122, .18);
    --whatsapp: #25D366;
    --whatsapp-dark: #128C7E;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--pet-bg);
    background-image:
        linear-gradient(135deg, rgba(255, 241, 243, .78), rgba(255, 248, 249, .82)),
        url('background-petlyne.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--pet-text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Elementos decorativos laterais premium */
body::before,
body::after {
    content: "";
    position: fixed;
    top: 190px;
    width: 260px;
    height: 520px;
    pointer-events: none;
    z-index: -1;
    opacity: .30;
    filter: blur(.1px);
}

body::before {
    left: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(214, 90, 126, .20) 0 24px, transparent 25px),
        radial-gradient(circle at 40% 36%, rgba(255, 255, 255, .65) 0 38px, transparent 39px),
        radial-gradient(circle at 18% 68%, rgba(233, 135, 162, .24) 0 58px, transparent 59px),
        radial-gradient(circle at 58% 86%, rgba(173, 139, 120, .16) 0 42px, transparent 43px);
    border-radius: 0 260px 260px 0;
}

body::after {
    right: 0;
    background:
        radial-gradient(circle at 82% 18%, rgba(214, 90, 126, .20) 0 24px, transparent 25px),
        radial-gradient(circle at 60% 36%, rgba(255, 255, 255, .65) 0 38px, transparent 39px),
        radial-gradient(circle at 82% 68%, rgba(233, 135, 162, .24) 0 58px, transparent 59px),
        radial-gradient(circle at 42% 86%, rgba(173, 139, 120, .16) 0 42px, transparent 43px);
    border-radius: 260px 0 0 260px;
}

.site-header {
    background: linear-gradient(135deg, rgba(255, 247, 248, .88), rgba(247, 213, 222, .92));
    color: var(--pet-text);
    text-align: center;
    padding: 24px 20px;
    box-shadow: 0 4px 22px rgba(214,90,126,.18);
    border-bottom: 1px solid rgba(214,90,126,.18);
    backdrop-filter: blur(8px);
}

.header-content {
    max-width: 1050px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.logo-petlyne {
    width: 92px;
    height: 92px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 24px rgba(214,90,126,.18);
}

.header-text h1 {
    font-size: 34px;
    margin-bottom: 5px;
    color: var(--pet-primary-dark);
    letter-spacing: .2px;
}

.header-text p {
    font-size: 15px;
    opacity: .9;
    color: var(--pet-brown);
    font-weight: bold;
}

.container {
    max-width: 1050px;
    margin: 28px auto;
    padding: 18px;
}

.card {
    background: rgba(255,255,255,.90);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 46px rgba(182, 99, 122, .20);
    border: 1px solid rgba(241, 199, 210, .88);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.card h2 {
    margin-bottom: 22px;
    font-size: 26px;
    color: var(--pet-primary-dark);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 18px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
    font-size: 14px;
    color: var(--pet-text);
}

input,
select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--pet-border);
    border-radius: 14px;
    font-size: 15px;
    background: rgba(255, 253, 253, .94);
    color: var(--pet-text);
    outline: none;
    transition: .2s;
}

input::placeholder {
    color: #9b8d91;
}

input:focus,
select:focus {
    border-color: var(--pet-primary);
    box-shadow: 0 0 0 3px rgba(214,90,126,.16);
    background: #fff;
}

button,
.whatsapp-button {
    width: 100%;
    margin-top: 22px;
    background: linear-gradient(135deg, var(--pet-primary), var(--pet-primary-dark));
    color: white;
    border: none;
    padding: 15px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: .2s;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

button:hover,
.whatsapp-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(214,90,126,.3);
}

.conditional-field {
    display: none;
}

.adicionais-box,
.resumo-box {
    margin-top: 20px;
    padding: 18px;
    border-radius: 18px;
}

.adicionais-box {
    background: rgba(255, 246, 248, .84);
    border: 1px solid var(--pet-border);
}

.resumo-box {
    background: rgba(255, 240, 244, .88);
    border: 1px solid #efb9c8;
}

.adicionais-box h3,
.resumo-box h3 {
    color: var(--pet-primary-dark);
    font-size: 18px;
    margin-bottom: 12px;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-line input {
    width: auto;
    accent-color: var(--pet-primary);
}

.resumo-box p {
    color: #8b737b;
    line-height: 1.5;
}

.resumo-item {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 9px 0;
    border-bottom: 1px solid #efc5cf;
    font-size: 15px;
}

.total-line {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 2px solid var(--pet-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-line strong {
    color: var(--pet-primary-dark);
    font-size: 21px;
}

.alerta-resumo {
    color: #b24545 !important;
    font-weight: bold;
}

.pacotes-card {
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,240,244,.90));
}

.pacotes-card p {
    line-height: 1.6;
    color: var(--pet-text);
}

.whatsapp-button {
    background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
}

.whatsapp-button:hover {
    box-shadow: 0 8px 22px rgba(37,211,102,.28);
}

.whatsapp-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
    flex-shrink: 0;
}

.popup-whatsapp {
    margin-top: 8px;
    margin-bottom: 8px;
}

.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(77, 63, 67, .55);
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 999;
}

.popup-overlay.ativo {
    display: flex;
}

.popup-card {
    background: rgba(255,255,255,.96);
    max-width: 520px;
    width: 100%;
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 14px 45px rgba(77,63,67,.28);
    animation: aparecer .25s ease;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--pet-border);
}

.popup-icon {
    font-size: 45px;
    margin-bottom: 10px;
}

.popup-card h2 {
    margin-bottom: 15px;
    color: var(--pet-primary-dark);
}

.popup-card p {
    line-height: 1.5;
    margin-bottom: 18px;
}

.popup-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--pet-gray), #6f6868);
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: scale(.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


.popup-alerta-card .popup-icon {
    color: var(--pet-primary-dark);
}

.popup-alerta-card button {
    margin-top: 10px;
}


@media (max-width: 1180px) {
    body::before,
    body::after {
        display: none;
    }
}

@media (max-width: 750px) {
    body {
        background-attachment: scroll;
        background-size: auto 100%;
    }

    .container {
        max-width: 760px;
    }

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

    .popup-actions {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        gap: 10px;
    }

    .logo-petlyne {
        width: 86px;
        height: 86px;
    }

    .header-text h1 {
        font-size: 28px;
    }
}


/* V3.8 - seletor de pets encontrados */
.pet-cadastrado-box {
    padding: 14px;
    border: 1px solid #f3b6c8;
    border-radius: 16px;
    background: rgba(255, 246, 248, .92);
}

.pet-cadastrado-box small {
    display: block;
    margin-top: 6px;
    color: #9b6f6f;
    font-weight: 600;
}


/* V3.9 - segurança anti-bypass */
button:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none !important;
}

/* V3.16 - raça selecionável e porte automático */
#porte:disabled,
.cliente-form-grid select:disabled {
    background: rgba(248, 238, 242, .9);
    color: #7b6f72;
    cursor: not-allowed;
}


/* V3.17 - Banner visual no agendamento online */
.client-hero-banner {
    width: min(1180px, calc(100% - 32px));
    margin: 26px auto 18px;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(190, 68, 112, .18);
    border: 1px solid rgba(243, 182, 200, .75);
    background: rgba(255, 246, 248, .82);
}

.client-hero-banner img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .client-hero-banner {
        width: calc(100% - 20px);
        margin: 16px auto 14px;
        border-radius: 18px;
    }

    .client-hero-banner img {
        height: 145px;
        object-fit: cover;
        object-position: 45% center;
    }
}

@media (max-width: 480px) {
    .client-hero-banner img {
        height: 120px;
        object-position: 43% center;
    }
}


/* V3.18 - Banner refinado e remoção do cabeçalho antigo */
body > header:not(.client-hero-banner),
.app-header,
.site-header,
.top-header,
.brand-header,
.client-header,
.logo-header {
    display: none !important;
}

.client-hero-banner {
    width: min(760px, calc(100% - 32px));
    margin: 22px auto 14px !important;
    border-radius: 24px !important;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(190, 68, 112, .16) !important;
    border: 1px solid rgba(243, 182, 200, .78) !important;
    background: rgba(255, 246, 248, .88) !important;
}

.client-hero-banner img {
    display: block;
    width: 100%;
    height: auto;
}

main,
.container,
.page-container {
    margin-top: 0 !important;
}

form h1,
form h2,
.card h1:first-child,
.card h2:first-child,
.form-card h1:first-child,
.form-card h2:first-child {
    display: none !important;
}

@media (max-width: 768px) {
    .client-hero-banner {
        width: calc(100% - 20px);
        margin: 14px auto 12px !important;
        border-radius: 18px !important;
    }

    .client-hero-banner img {
        height: 145px;
        object-fit: cover;
        object-position: 44% center;
    }
}

@media (max-width: 480px) {
    .client-hero-banner img {
        height: 118px;
        object-position: 42% center;
    }
}
