
/* =========================================
   SAN VALENTINO MODAL STYLES (Ported from Natale)
   Theme: Pink (#ef7cc2) & Red (#f59dd4)
   ========================================= */

:root {
    --valentino-primary: #ef7cc2;
    --valentino-secondary: #f59dd4;
    --md-z-index: 10000;
    --md-radius: 24px;
    --md-text-main: #ffffff;
    --md-text-muted: #94a3b8;
    --md-input-border: #2d3b55;
    --font-title: 'Figtree', sans-serif;
    --font-body: 'Figtree', sans-serif;
    --theme-color: #ef7cc2; /* Default theme color */
}

/* INTRO SECTION FONT SIZES (match original) */
#vesper-intro h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 700;
}

#vesper-intro h2 {
    font-size: 2rem;
    line-height: 1.4;
    font-weight: 400;
}

@media (max-width: 960px) {
    #vesper-intro h1 {
        font-size: 2.5rem;
    }
    
    #vesper-intro h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 578px) {
    #vesper-intro h1 {
        font-size: 2rem;
    }
    
    #vesper-intro h2 {
        font-size: 1.25rem;
    }
}

/* VISIBILITY HELPER */
.header-menu-item {
    display: block;
}

/* CONTAINER */
.valentino-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--md-z-index);
    visibility: hidden;
    font-family: var(--font-body);
    color: var(--md-text-main);
}

.valentino-modal.is-open {
    visibility: visible;
}

/* BACKDROP */
.valentino-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(22 32 50 / 60%);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.valentino-modal.is-open .valentino-modal-backdrop {
    opacity: 1;
}

/* MODAL PANEL */
.valentino-modal-container {
    position: absolute;
    background: #0F192D; /* Dark Pink/Red Tint */
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 107, 157, 0.2); /* Pink border */
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 90vh;
    border-radius: var(--md-radius) var(--md-radius) 0 0;
    transform: translateY(100%);
}

.valentino-modal.is-open .valentino-modal-container {
    transform: translateY(0);
}

@media only screen and (min-width: 961px) {
    .valentino-modal-container {
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: 950px;
        max-width: 90vw;
        height: 100%;
        border-radius: var(--md-radius) 0 0 var(--md-radius);
        transform: translateX(100%);
        box-shadow: 10px 9px 224px 0px rgba(255, 107, 157, 0.1);
    }

    .valentino-modal.is-open .valentino-modal-container {
        transform: translateX(0);
    }
}

/* CLOSE BTN */
.valentino-modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 50;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.valentino-modal-close:hover {
    background: var(--theme-color);
    transform: rotate(90deg);
    color: #fff;
}

.mobile-handle-bar {
    width: 50px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin: 15px auto 0;
    flex-shrink: 0;
}

@media only screen and (min-width: 961px) {
    .mobile-handle-bar {
        display: none;
    }
}

/* LAYOUT */
.valentino-modal-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media only screen and (min-width: 961px) {
    .valentino-modal-layout {
        flex-direction: row;
        overflow-y: visible; /* Reset on desktop */
    }
}

/* Left Side Summary */
.valentino-modal-summary {
    background: linear-gradient(to bottom right, #1f0810, #2d0b16);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(255, 107, 157, 0.1);
    flex-shrink: 0;
    background: #0F192D;
}

@media (min-width: 768px) {
    .valentino-modal-summary {
        width: 40%;
        border-right: 1px solid rgba(255, 107, 157, 0.1);
        border-bottom: none;
        display: flex;
        height: 100%; 
    }
}

/* GLOW BG */
.modal-card-glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--theme-color) 0%, rgba(0, 0, 0, 0) 70%);
    opacity: 0.3;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: blur(50px);
    transition: background 0.5s;
}

.modal-card-preview {
    position: relative;
    width: 100%;
    max-width: 160px;
    margin: 0 auto 20px;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
    z-index: 10;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6));
}

@media only screen and (min-width: 961px) {
    .modal-card-preview {
        max-width: 240px;
        margin-bottom: 40px;
    }

    .valentino-modal-summary:hover .modal-card-preview {
        transform: perspective(1000px) rotateY(0) scale(1.05);
    }
}

.modal-card-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: contain;
}

.modal-card-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.6rem;
    color: white;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
    z-index: 10;
    text-align: center;
}

/* PRICE BOX */
.price-mini-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: auto;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.price-label-sm {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.25rem;
    display: block;
}

.text-gold {
    color: var(--theme-color) !important; /* OVERRIDE GOLD WITH THEME COLOR */
}

.price-final-text {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--theme-color);
    line-height: 1;
}

/* FEATURES */
.modal-features-desktop {
    margin-top: 30px;
    text-align: left;
}

.modal-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-feature-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    color: #ffdce5; /* Light pinkish text */
    font-size: 0.95rem;
    line-height: 1.5;
}

.icon-box {
    margin-right: 0.5rem;
    color: #ef7cc2; /* Pink tick */
    font-weight: bold;
}

/* FORM SECTION */
.valentino-modal-form {
    flex: 1;
    padding: 1rem;
    background: #0F192D; /* Dark pinkish bg */
    overflow: visible;
    padding-bottom: 6rem;
}

@media (min-width: 768px) {
    .valentino-modal-form {
        padding: 2.5rem;
        overflow-y: auto; 
        height: 100%;
        padding-bottom: 2.5rem;
    }
}

.modal-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    margin: 0;
}

/* V2 FORM INPUTS */
.form-group-v2 {
    margin-bottom: 1.25rem;
}

.form-label-v2 {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffbfd0; /* Soft pink label */
    text-transform: uppercase;
    margin-bottom: 0.375rem;
    margin-left: 0.25rem;
}

.input-wrapper-v2 {
    position: relative;
}

.input-icon-v2 {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: #ef7cc2; /* Icon pink */
}

.input-field-v2 {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 107, 157, 0.3); /* Pink border */
    border-radius: 0.75rem;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    color: white;
    font-size: 1rem;
    transition: all 0.2s;
}

.input-field-v2:focus {
    outline: none;
    border-color: var(--theme-color);
    box-shadow: 0 0 0 2px rgba(255, 107, 157, 0.2);
}

.input-field-v2::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
}

@media (min-width: 600px) {
    .form-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* ACTIONS */
.form-actions {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0F192D;
    backdrop-filter: blur(8px);
    padding: 1rem;
    margin: 0 -1rem -1rem -1rem;
    border-top: 1px solid rgba(255, 107, 157, 0.1);
    z-index: 20;
    box-shadow: 0 -10px 20px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
    .form-actions {
        position: static;
        background: transparent;
        padding: 0;
        margin: 0;
        border: none;
        backdrop-filter: none;
        box-shadow: none;
    }
}

.modal-submit-btn-v2 {
    width: 100%;
    background: linear-gradient(135deg, #ef7cc2 0%, #f59dd4 100%); /* Pink to Red Gradient */
    color: #fff;
    font-weight: 900;
    padding: 1.25rem;
    border-radius: 1rem;
    border: none;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 20px 25px -5px rgba(255, 23, 68, 0.3);
    transition: all 0.2s;
    margin-top: 1rem;
}

.modal-submit-btn-v2:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.modal-legal-text {
    font-size: 0.85rem;
    text-align: center;
    color: #94a3b8;
    margin-top: 1rem;
}

.modal-legal-text a {
    text-decoration: underline;
    color: #ef7cc2;
}

/* CHECKBOX */
.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox .checkbox-box {
    position: relative;
    height: 1.25rem;
    width: 1.25rem;
    min-width: 1.25rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 0.375rem;
    transition: all 0.2s;
    margin-top: 0.125rem;
}

.custom-checkbox:hover .checkbox-box {
    border-color: #ef7cc2;
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkbox-box {
    background-color: #ef7cc2;
    border-color: #ef7cc2;
}

.custom-checkbox .checkbox-box::after {
    content: "";
    position: absolute;
    display: none;
    left: 50%;
    top: 50%;
    width: 0.375rem;
    height: 0.625rem;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkbox-box::after {
    display: block;
}

.label-text {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.4;
}

/* Reset box-sizing */
.valentino-modal * {
    box-sizing: border-box;
}

.font-display {
    font-family: var(--font-title);
}

/* Tooltip Styles */
.validity-period {
    margin-top: 10px;
    font-size: 0.9em;
    text-decoration: underline;
    cursor: pointer;
    color: inherit;
    opacity: 0.9;
    display: block; /* Force new line */
    width: fit-content;
}

.card__price {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.card__price .price__new {
    font-size: 4.5rem;
    line-height: 0.9;
    margin-top: -0.5rem; /* Bring closer */
}

.card__price .price__old {
    font-size: 2rem; /* Bigger */
    opacity: 0.6;
    text-decoration: line-through;
    color: #fff;
    margin-bottom: 0;
}

.validity-period:hover {
    opacity: 1;
}

/* Custom Tippy Theme for Valentino */
.tippy-box[data-theme~='valentino'] {
    background-color: #2D1A2F;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-radius: 8px;
    font-size: 14px;
    text-align: left;
}

.tippy-box[data-theme~='valentino'][data-placement^='top'] > .tippy-arrow::before {
    border-top-color: #2D1A2F;
}
.tippy-box[data-theme~='valentino'][data-placement^='bottom'] > .tippy-arrow::before {
    border-bottom-color: #2D1A2F;
}
.tippy-box[data-theme~='valentino'][data-placement^='left'] > .tippy-arrow::before {
    border-left-color: #2D1A2F;
}
.tippy-box[data-theme~='valentino'][data-placement^='right'] > .tippy-arrow::before {
    border-right-color: #2D1A2F;
}

.tippy-content {
    padding: 12px 16px;
}


/* Intro Heading Style (the one with "Credi nell'amore...") */
#vesper-intro h2 {
    color: #F07CC1 !important;
    font-size: 3rem; /* Fallback */
    font-weight: 700;
}

@media (min-width: 768px) {
    #vesper-intro h2 {
        font-size: 5rem !important;
        line-height: 1.1;
    }
}
