/* =========================================================
   PVG FORM — VIVID DYNAMIC EDITION
   Palette: Indaco profondo · Corallo · Menta · Ambra
   Stessa struttura HTML/classi del file originale
   ========================================================= */


/* =========================================================
   DESIGN TOKENS
   ========================================================= */

:root {

    /* Colori primari — vivaci ma equilibrati */
    --pvg-indigo: #4b2fd9;
    --pvg-indigo-dark: #2e1a99;
    --pvg-indigo-light: #8b7bff;

    --pvg-coral: #ff5d73;
    --pvg-coral-dark: #e8415b;

    --pvg-mint: #00d8a3;
    --pvg-mint-dark: #00b389;

    --pvg-amber: #ffb238;
    --pvg-amber-dark: #f59a0c;

    --pvg-sky: #33c1ff;

    /* Neutrali */
    --pvg-ink: #1c1830;
    --pvg-text: #26203f;
    --pvg-muted: #6f6690;

    --pvg-white: #ffffff;
    --pvg-cream: #fffaf3;

    --pvg-border: rgba(75, 47, 217, 0.16);

    --pvg-radius: 20px;
    --pvg-radius-small: 14px;

    --pvg-ease: cubic-bezier(.22, 1, .36, 1);
    --pvg-bounce: cubic-bezier(.34, 1.56, .64, 1);

    /* Gradiente "firma" — usato nel bottone, riepilogo, accenti */
    --pvg-gradient-signature:
        linear-gradient(115deg,
            var(--pvg-indigo) 0%,
            var(--pvg-coral) 45%,
            var(--pvg-amber) 75%,
            var(--pvg-mint) 100%);
}


/* =========================================================
   WRAPPER
   ========================================================= */

.pvg-wrapper {

    max-width: 700px;
    margin: 50px auto;
    padding: 40px;

    position: relative;
    isolation: isolate;

    background:
        linear-gradient(165deg,
            #ffffff 0%,
            #fbf9ff 55%,
            #fff7ef 100%);

    border: 1px solid rgba(255,255,255,.9);
    border-radius: 28px;

    box-shadow:
        0 45px 100px rgba(43, 26, 130, .16),
        0 16px 38px rgba(20, 15, 60, .08),
        inset 0 1px 0 rgba(255,255,255,.9);

    overflow: hidden;
    transform: translateZ(0);

    animation: pvg-wrapper-in .7s var(--pvg-ease) both;
}


/* Bordo superiore arcobaleno — la firma visiva del form */
.pvg-wrapper::before {

    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;

    background: var(--pvg-gradient-signature);
    background-size: 300% 100%;

    z-index: 3;

    animation: pvg-gradient-slide 6s linear infinite;
}


/* Blob decorativo — indaco/menta */
.pvg-wrapper::after {

    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    top: -210px;
    right: -170px;

    border-radius: 50%;

    background:
        radial-gradient(circle,
            rgba(75, 47, 217, .22) 0%,
            rgba(0, 216, 163, .14) 40%,
            transparent 72%);

    filter: blur(4px);
    z-index: -1;

    animation: pvg-orb-one 9s ease-in-out infinite alternate;
}


/* Blob secondario — corallo/ambra, iniettato via elemento decorativo */
.pvg-form::before {

    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    bottom: -170px;
    left: -150px;

    border-radius: 50%;

    background:
        radial-gradient(circle,
            rgba(255, 93, 115, .16) 0%,
            rgba(255, 178, 56, .12) 45%,
            transparent 72%);

    filter: blur(6px);
    z-index: -1;
    pointer-events: none;

    animation: pvg-orb-two 11s ease-in-out infinite alternate;
}


/* =========================================================
   FORM
   ========================================================= */

.pvg-form {

    display: flex;
    flex-direction: column;
    gap: 24px;

    position: relative;
    z-index: 2;
}


/* =========================================================
   FORM ROW
   ========================================================= */

.pvg-form-row {

    display: flex;
    flex-direction: column;
    gap: 9px;

    animation: pvg-row-in .55s var(--pvg-ease) both;
}


.pvg-form-row-half {

    flex-direction: row;
    gap: 18px;
}


.pvg-form-row-half > div {

    flex: 1;
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 9px;
}


/* =========================================================
   LABEL
   ========================================================= */

.pvg-form label {

    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: var(--pvg-ink);
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .02em;
    padding-left: 2px;

    transition: color .25s ease, transform .25s ease;
}

/* Puntino colorato prima di ogni label — piccolo dettaglio "vivace" */
.pvg-form label::before {

    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;

    background: var(--pvg-gradient-signature);
    background-size: 300% 100%;

    flex: 0 0 auto;
}


/* =========================================================
   INPUT BASE
   ========================================================= */

.pvg-form input[type="text"],
.pvg-form input[type="email"],
.pvg-form input[type="tel"],
.pvg-form input[type="date"],
.pvg-form input[type="number"],
.pvg-form select {

    width: 100%;
    box-sizing: border-box;
    min-height: 50px;

    padding: 13px 16px;

    border-radius: var(--pvg-radius-small);
    border: 2px solid rgba(75, 47, 217, .10);

    background: var(--pvg-white);

    color: var(--pvg-text);
    font-size: .96rem;
    font-weight: 500;
    line-height: 1.4;

    outline: none;

    box-shadow:
        0 4px 12px rgba(43, 26, 130, .04),
        inset 0 1px 0 rgba(255,255,255,.9);

    transition:
        border-color .3s ease,
        box-shadow .3s ease,
        transform .3s var(--pvg-bounce),
        background .3s ease;
}


/* =========================================================
   INPUT HOVER
   ========================================================= */

.pvg-form input[type="text"]:hover,
.pvg-form input[type="email"]:hover,
.pvg-form input[type="tel"]:hover,
.pvg-form input[type="date"]:hover,
.pvg-form input[type="number"]:hover,
.pvg-form select:hover {

    border-color: rgba(255, 93, 115, .45);
    transform: translateY(-2px);

    box-shadow:
        0 10px 26px rgba(255, 93, 115, .10),
        inset 0 1px 0 rgba(255,255,255,.95);
}


/* =========================================================
   INPUT FOCUS
   ========================================================= */

.pvg-form input[type="text"]:focus,
.pvg-form input[type="email"]:focus,
.pvg-form input[type="tel"]:focus,
.pvg-form input[type="date"]:focus,
.pvg-form input[type="number"]:focus,
.pvg-form select:focus {

    border-color: var(--pvg-indigo);
    transform: translateY(-2px) scale(1.005);

    box-shadow:
        0 0 0 5px rgba(75, 47, 217, .13),
        0 14px 32px rgba(75, 47, 217, .14),
        inset 0 1px 0 rgba(255,255,255,1);
}

.pvg-form label:has(+ * :focus),
.pvg-form-row:focus-within > label {

    color: var(--pvg-indigo);
    transform: translateX(2px);
}


/* =========================================================
   PLACEHOLDER
   ========================================================= */

.pvg-form input::placeholder {

    color: #aca7c4;
    transition: opacity .25s ease, transform .25s ease;
}


.pvg-form input:focus::placeholder {

    opacity: .35;
    transform: translateX(5px);
}


/* =========================================================
   SELECT
   ========================================================= */

.pvg-form select {

    min-height: 50px !important;
    height: auto !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    line-height: 1.4 !important;

    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;

    overflow: visible !important;
    white-space: normal;
}


.pvg-form select option {

    padding: 8px 5px;
    line-height: 1.5;
    white-space: normal;
}


/* =========================================================
   SEPARATOR
   ========================================================= */

.pvg-separator {

    height: 3px;
    border: 0;
    margin: 6px 0;
    border-radius: 3px;

    background: var(--pvg-gradient-signature);
    background-size: 300% 100%;
    opacity: .35;

    animation: pvg-gradient-slide 8s linear infinite;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.pvg-descrizione-visita {

    color: var(--pvg-muted);
    font-size: .88rem;
    line-height: 1.65;
    padding: 2px 4px;
}


/* =========================================================
   DESCRIPTION BOX
   ========================================================= */

.pvg-descrizione-item {

    position: relative;
    margin-top: -6px;

    padding: 18px 20px 18px 24px;

    border-radius: var(--pvg-radius);
    border: 1px solid rgba(75, 47, 217, .12);

    background:
        linear-gradient(135deg,
            rgba(75, 47, 217, .05),
            rgba(0, 216, 163, .06));

    color: #56507a;
    font-size: .89rem;
    line-height: 1.65;

    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}


.pvg-descrizione-item::before {

    content: "";
    position: absolute;
    left: 0;
    top: 15px;
    bottom: 15px;
    width: 4px;
    border-radius: 5px;

    background: var(--pvg-gradient-signature);
    background-size: 100% 300%;

    animation: pvg-gradient-vertical 6s linear infinite;
}


.pvg-descrizione-item p { margin: 0 0 10px; }
.pvg-descrizione-item p:last-child { margin-bottom: 0; }

.pvg-descrizione-item ul,
.pvg-descrizione-item ol {
    margin: 0 0 10px 20px;
    padding: 0;
}

.pvg-descrizione-item li { margin-bottom: 4px; }

.pvg-descrizione-item img {
    max-width: 100%;
    height: auto;
    border-radius: var(--pvg-radius-small);
    margin: 10px 0;
    box-shadow: 0 15px 35px rgba(43, 26, 130, .14);
}


/* =========================================================
   CHECKBOX
   ========================================================= */

.pvg-checkbox-label {

    display: flex;
    align-items: flex-start;
    gap: 11px;

    font-size: .87rem;
    font-weight: 400 !important;
    line-height: 1.5;
    color: var(--pvg-muted);

    cursor: pointer;
    transition: color .25s ease;
}


.pvg-checkbox-label:hover { color: var(--pvg-text); }


.pvg-checkbox-label input[type="checkbox"] {

    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin-top: 3px;

    accent-color: var(--pvg-coral);
    cursor: pointer;
}


/* =========================================================
   PRICE SUMMARY — HERO ELEMENT ("BIGLIETTO")
   ========================================================= */

.pvg-riepilogo-costo {

    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    min-height: 74px;
    padding: 20px 26px;

    border-radius: 20px;
    overflow: hidden;

    color: #fff;

    background: var(--pvg-gradient-signature);
    background-size: 280% 280%;

    box-shadow:
        0 20px 40px rgba(75, 47, 217, .28),
        inset 0 1px 0 rgba(255,255,255,.28);

    animation: pvg-gradient-move 8s ease infinite;
}


/* Perforazioni stile biglietto */
.pvg-riepilogo-costo::before {

    content: "";
    position: absolute;
    top: 50%;
    left: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--pvg-cream);
    transform: translateY(-50%);
    box-shadow: 0 0 0 6px rgba(255,255,255,.08);
}


/* Shine */
.pvg-riepilogo-costo::after {

    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 55%;
    height: 100%;

    background:
        linear-gradient(90deg,
            transparent,
            rgba(255,255,255,.20),
            transparent);

    transform: skewX(-20deg);
    animation: pvg-shine 5s ease-in-out infinite;
}


.pvg-riepilogo-valore {

    position: relative;
    z-index: 2;

    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;

    text-shadow: 0 3px 12px rgba(0,0,0,.18);
    white-space: nowrap;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.pvg-form-actions {
    margin-top: 4px;
    position: relative;
}


/* =========================================================
   SUPER BUTTON
   ========================================================= */

.pvg-btn-submit {

    position: relative;
    width: 100%;
    min-height: 58px;
    padding: 16px 28px;

    border: 0;
    border-radius: 16px;

    color: #fff;

    background: var(--pvg-gradient-signature);
    background-size: 320% 100%;

    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: .015em;

    cursor: pointer;
    overflow: hidden;

    box-shadow:
        0 16px 34px rgba(75, 47, 217, .30),
        0 4px 10px rgba(255, 93, 115, .18),
        inset 0 1px 0 rgba(255,255,255,.28);

    transition:
        transform .35s var(--pvg-bounce),
        box-shadow .35s ease,
        background-position .8s ease;
}


.pvg-btn-submit::after {

    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -75px;
    top: -75px;
    border-radius: 50%;

    background: rgba(255,255,255,.16);
    filter: blur(9px);

    transition: transform .5s var(--pvg-bounce);
}


.pvg-btn-submit::before {

    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 55%;
    height: 100%;

    background:
        linear-gradient(90deg,
            transparent,
            rgba(255,255,255,.4),
            transparent);

    transform: skewX(-20deg);
    transition: left .65s ease;
}


.pvg-btn-submit:hover {

    transform: translateY(-4px) scale(1.008);
    background-position: 100% 0;

    box-shadow:
        0 24px 50px rgba(75, 47, 217, .38),
        0 8px 18px rgba(255, 93, 115, .22),
        inset 0 1px 0 rgba(255,255,255,.32);
}


.pvg-btn-submit:hover::before { left: 140%; }
.pvg-btn-submit:hover::after { transform: scale(1.45); }


.pvg-btn-submit:active {
    transform: translateY(-1px) scale(.995);
}


.pvg-btn-submit:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background-position: 0 0;
}


/* =========================================================
   MESSAGES
   ========================================================= */

.pvg-messaggio {

    position: relative;
    padding: 15px 18px 15px 22px;

    border-radius: 14px;

    font-size: .91rem;
    line-height: 1.55;

    animation: pvg-message .45s var(--pvg-bounce) both;
}


.pvg-messaggio.pvg-successo {

    color: #0a6b4f;
    border: 1px solid rgba(0, 216, 163, .25);

    background: linear-gradient(135deg, #e7fdf6, #dcfaef);
    box-shadow: 0 10px 25px rgba(0, 216, 163, .10);
}


.pvg-messaggio.pvg-successo::before {

    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 4px;
    border-radius: 4px;
    background: var(--pvg-mint-dark);
}


.pvg-messaggio.pvg-errore {

    color: #99253f;
    border: 1px solid rgba(255, 93, 115, .28);

    background: linear-gradient(135deg, #fff1f3, #ffe4e8);
    box-shadow: 0 10px 25px rgba(255, 93, 115, .10);
}


.pvg-messaggio.pvg-errore::before {

    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 4px;
    border-radius: 4px;
    background: var(--pvg-coral-dark);
}


.pvg-messaggio ul {
    margin: 5px 0 0 18px;
    padding: 0;
}


/* =========================================================
   ORDER NUMBER
   ========================================================= */

.pvg-numero-ordine-box {

    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;

    padding: 25px;
    text-align: center;

    border-radius: 20px;
    border: 2px dashed rgba(75, 47, 217, .22);

    background:
        linear-gradient(145deg,
            rgba(255,255,255,.97),
            rgba(247, 245, 255, .97));

    box-shadow:
        0 18px 38px rgba(43, 26, 130, .10),
        inset 0 1px 0 rgba(255,255,255,.9);

    overflow: hidden;
}


.pvg-numero-ordine-box::before {

    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    top: -115px;
    right: -95px;
    border-radius: 50%;

    background:
        radial-gradient(circle,
            rgba(255, 93, 115, .16),
            transparent 70%);
}


.pvg-numero-ordine-box::after {

    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    bottom: -95px;
    left: -75px;
    border-radius: 50%;

    background:
        radial-gradient(circle,
            rgba(0, 216, 163, .16),
            transparent 70%);
}


.pvg-numero-ordine-label {

    position: relative;
    z-index: 2;

    font-size: .73rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-weight: 800;

    color: var(--pvg-coral-dark);
}


.pvg-numero-ordine-valore {

    position: relative;
    z-index: 2;

    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: .06em;

    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;

    background: var(--pvg-gradient-signature);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    animation: pvg-gradient-slide 7s linear infinite;
}


.pvg-numero-ordine-hint {

    position: relative;
    z-index: 2;

    font-size: .81rem;
    color: #8a84a8;
    line-height: 1.5;
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes pvg-wrapper-in {
    from { opacity: 0; transform: translateY(25px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes pvg-orb-one {
    from { transform: translate3d(0,0,0) scale(1); }
    to   { transform: translate3d(-35px,25px,0) scale(1.15); }
}

@keyframes pvg-orb-two {
    from { transform: translate3d(0,0,0) scale(1); }
    to   { transform: translate3d(30px,-20px,0) scale(1.12); }
}

@keyframes pvg-gradient-move {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pvg-gradient-slide {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

@keyframes pvg-gradient-vertical {
    0%   { background-position: 50% 0%; }
    100% { background-position: 50% 300%; }
}

@keyframes pvg-shine {
    0%, 45% { left: -100%; }
    70%, 100% { left: 150%; }
}

@keyframes pvg-message {
    from { opacity: 0; transform: translateY(-8px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

    .pvg-wrapper {
        margin: 25px 12px;
        padding: 30px 22px;
        border-radius: 24px;
    }
}


@media (max-width: 560px) {

    .pvg-wrapper {
        margin: 12px 7px;
        padding: 24px 16px;
        border-radius: 21px;
    }

    .pvg-form { gap: 20px; }

    .pvg-form-row-half {
        flex-direction: column;
        gap: 18px;
    }

    .pvg-riepilogo-costo {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 18px 20px;
    }

    .pvg-riepilogo-valore { font-size: 1.42rem; }

    .pvg-btn-submit {
        min-height: 55px;
        padding: 15px 20px;
    }

    .pvg-numero-ordine-valore { font-size: 1.42rem; }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.pvg-btn-submit:focus-visible,
.pvg-form input:focus-visible,
.pvg-form select:focus-visible,
.pvg-checkbox-label input:focus-visible {

    outline: 3px solid var(--pvg-sky);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

    .pvg-wrapper,
    .pvg-form-row,
    .pvg-riepilogo-costo,
    .pvg-messaggio,
    .pvg-wrapper::before,
    .pvg-wrapper::after,
    .pvg-form::before,
    .pvg-separator,
    .pvg-descrizione-item::before,
    .pvg-numero-ordine-valore,
    .pvg-btn-submit::before,
    .pvg-btn-submit::after,
    .pvg-riepilogo-costo::after {

        animation: none !important;
        transition: none !important;
    }
}

/* =========================================================
   AGGIUNTE v1.4.0 — durata bloccata, hint, sconti minori/over65
   ========================================================= */

.pvg-form input[readonly] {
    background: rgba(0, 0, 0, 0.035);
    color: var(--pvg-muted);
    cursor: not-allowed;
}

.pvg-campo-hint {
    margin: 6px 0 0;
    font-size: 0.82rem;
    color: var(--pvg-muted);
}

.pvg-form input:invalid ~ .pvg-campo-hint,
#pvg-data-hint {
    color: var(--pvg-coral-dark);
}


/* =========================================================
   TIPOLOGIA BOX (mezza giornata / giornata intera)
   ========================================================= */

.pvg-tipo-box {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px 18px 24px;
    border-radius: var(--pvg-radius);
    border: 1px solid rgba(75, 47, 217, 0.12);
    background:
        linear-gradient(135deg,
            rgba(75, 47, 217, 0.05),
            rgba(0, 216, 163, 0.06));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: pvg-row-in 0.55s var(--pvg-ease) both;
}

.pvg-tipo-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15px;
    bottom: 15px;
    width: 4px;
    border-radius: 5px;
    background: var(--pvg-gradient-signature);
    background-size: 100% 300%;
    animation: pvg-gradient-vertical 6s linear infinite;
}

.pvg-tipo-box-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pvg-muted);
}

.pvg-tipo-box-valore {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--pvg-indigo);
    letter-spacing: 0.01em;
}


/* =========================================================
   CALENDARIO PERSONALIZZATO
   ========================================================= */

.pvg-calendar-wrap {
    width: 100%;
}

.pvg-calendar {
    width: 100%;
    max-width: 336px;
    margin: 0 auto 0 0;
    padding: 14px 12px 10px;
    border-radius: var(--pvg-radius);
    border: 2px solid rgba(75, 47, 217, 0.10);
    background: var(--pvg-white);
    box-shadow:
        0 8px 28px rgba(43, 26, 130, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    user-select: none;
}

.pvg-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 2px;
}

.pvg-cal-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--pvg-ink);
    letter-spacing: 0.02em;
}

.pvg-cal-nav {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(75, 47, 217, 0.08), rgba(0, 216, 163, 0.08));
    color: var(--pvg-indigo);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s var(--pvg-bounce), color 0.25s ease;
}

.pvg-cal-nav:hover {
    background: var(--pvg-indigo);
    color: #fff;
    transform: scale(1.08);
}

.pvg-cal-nav:active {
    transform: scale(0.96);
}

.pvg-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
    text-align: center;
}

.pvg-cal-weekdays span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pvg-muted);
    padding: 4px 0;
}

.pvg-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.pvg-cal-day {
    aspect-ratio: 1;
    min-height: 32px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--pvg-text);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s var(--pvg-bounce),
        box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.pvg-cal-day.pvg-cal-empty {
    cursor: default;
    visibility: hidden;
    pointer-events: none;
}

.pvg-cal-day.pvg-cal-available {
    background: rgba(0, 216, 163, 0.10);
    color: var(--pvg-mint-dark);
}

.pvg-cal-day.pvg-cal-available:hover {
    background: var(--pvg-mint);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 216, 163, 0.35);
}

.pvg-cal-day.pvg-cal-disabled {
    background: rgba(111, 102, 144, 0.06);
    color: #c5c0d4;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.7;
    pointer-events: none;
}

.pvg-cal-day.pvg-cal-selected {
    background: var(--pvg-indigo) !important;
    color: #fff !important;
    font-weight: 800;
    box-shadow:
        0 0 0 3px rgba(75, 47, 217, 0.25),
        0 8px 20px rgba(75, 47, 217, 0.35);
    transform: scale(1.08);
}

.pvg-cal-day.pvg-cal-today:not(.pvg-cal-selected):not(.pvg-cal-disabled) {
    box-shadow: inset 0 0 0 2px var(--pvg-coral);
}

.pvg-cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(75, 47, 217, 0.08);
    justify-content: center;
}

.pvg-cal-leg-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pvg-muted);
}

.pvg-cal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.pvg-cal-dot-ok {
    background: var(--pvg-mint);
}

.pvg-cal-dot-no {
    background: #c5c0d4;
}

.pvg-cal-dot-sel {
    background: var(--pvg-indigo);
}

@media (max-width: 480px) {
    .pvg-calendar {
        padding: 10px 8px 8px;
        max-width: 100%;
    }

    .pvg-cal-day {
        min-height: 28px;
        border-radius: 8px;
        font-size: 0.78rem;
    }

    .pvg-cal-nav {
        width: 28px;
        height: 28px;
    }

    .pvg-cal-legend {
        gap: 6px 10px;
    }
}
