/* --- VOUCHERS INTEGRATION STYLES --- */


/* --- UNIFIED CARD LAYOUT --- */
.v-unified-card {
    background: #fff;
    border-radius: 40px;
    box-shadow: 0 15px 50px rgba(181, 156, 115, 0.15);
    padding: 50px;
    max-width: 1400px;
    margin: 0 auto;
    border: 1px solid rgba(181, 156, 115, 0.2);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.selection-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    overflow: visible;
}

.selection-card .v-card-content {
    padding: 0;
}

#v-order-form-card {
    display: none;
    opacity: 0;
    visibility: hidden;
    margin: 40px auto 0 auto;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#v-order-form-card.visible {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-top: 40px;
}

.v-card-content {
    padding: 40px;
}

.v-selection-col {
    display: none;
    margin-bottom: 40px;
}

.v-selection-col.active {
    display: block;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- SELECTION GRIDS --- */
.voucher-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.v-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(250, 246, 238, 0.7));
    border: 1px solid var(--gold-light);
    border-radius: 28px;
    padding: 42px 34px;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 22px 55px rgba(156, 129, 84, 0.08);
}

.service-v-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.service-v-item {
    background: var(--bg-cream);
    border: 1px solid var(--gold-light);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    flex-direction: column; /* Stack name and price vertically */
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    position: relative; /* Added for absolute icon positioning */
}

.service-v-item:hover {
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    background: #fff;
}

.service-v-item.selected {
    background: #fff;
    border: 2px solid var(--gold-dark);
    box-shadow: 0 8px 20px rgba(181, 156, 115, 0.15);
}

.service-v-item i {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--gold-dark);
    font-size: 1rem;
    display: none; /* Hidden by default */
}
/* Consent Checkbox Styling */
.v-consent-group {
    margin: 25px 0;
    text-align: left;
}

.v-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
    color: var(--text-muted);
    line-height: 1.5;
}

.v-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.v-checkmark {
    height: 24px;
    width: 24px;
    background-color: transparent;
    border: 2px solid var(--gold-light);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.v-checkbox-container:hover input ~ .v-checkmark {
    border-color: var(--gold);
    background-color: rgba(181, 156, 115, 0.05);
}

.v-checkbox-container input:checked ~ .v-checkmark {
    background-color: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(181, 156, 115, 0.3);
}

.v-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.v-checkbox-container input:checked ~ .v-checkmark:after {
    display: block;
}

.v-checkbox-container .v-checkmark:after {
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.v-consent-text a {
    color: var(--gold-dark);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.v-consent-text a:hover {
    color: var(--gold);
}

.service-v-item.selected i {
    display: block; /* Show on selection */
}

.v-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(181, 156, 115, 0.2);
    border-color: var(--gold-dark);
}

.v-card.selected {
    background: #fff;
    border: 2px solid var(--gold-dark);
    box-shadow: 0 15px 35px rgba(181, 156, 115, 0.25);
}

/* New checkmark styles */
.v-card i {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--gold-dark);
    font-size: 1.4rem;
    display: none; /* Hidden by default as requested */
    z-index: 2;
}

.v-card.selected i {
    display: block; /* Show only on selected */
}

/* THEMATIC BACKGROUNDS WITH DISCRETE IMAGES */
.v-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.v-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    transition: 0.5s;
    z-index: -1;
    background-image: url('../assets/vouchers/v-standard.png');
}

.v-card::after {
    content: none;
}

.v-corner-ribbon {
    position: absolute;
    top: -10px;
    right: 32px;
    width: 30px;
    height: 66px;
    background:
        linear-gradient(90deg, rgba(255, 248, 218, 0.32), transparent 26% 76%, rgba(91, 61, 20, 0.12)),
        linear-gradient(180deg, rgba(231, 201, 128, 0.78) 0%, rgba(195, 154, 75, 0.78) 48%, rgba(143, 103, 41, 0.72) 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
    filter: drop-shadow(5px 7px 10px rgba(92, 66, 28, 0.08));
    opacity: 0.22;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
    z-index: 0;
}

.v-card:hover .v-corner-ribbon,
.v-card.selected .v-corner-ribbon {
    opacity: 0.82;
    transform: translateY(0);
    filter: drop-shadow(8px 11px 14px rgba(92, 66, 28, 0.14));
}

.v-corner-ribbon::before {
    content: '';
    position: absolute;
    inset: 0 5px 0 5px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.02) 48%, rgba(76, 49, 16, 0.1));
    clip-path: inherit;
}

.v-corner-ribbon::after {
    content: '';
    position: absolute;
    right: -17px;
    top: 0;
    width: 40px;
    height: 70px;
    background: linear-gradient(225deg, rgba(112, 82, 35, 0.1), rgba(112, 82, 35, 0));
    transform: skewY(33deg);
    transform-origin: top right;
}

/* Distinct hover effect for the background image */
.v-card:hover::before {
    transform: scale(1.1);
    opacity: 0.17;
}

.v-standard::before,
.v-premium::before,
.v-deluxe::before,
.v-exclusive::before { 
    background-image: url('../assets/vouchers/v-standard.png'); 
}

/* Label Styling */
.v-card .label {
    position: relative;
    z-index: 1;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.v-card.v-deluxe .label {
    color: #8E6D2F;
}

.v-sublabel {
    position: relative;
    z-index: 1;
    color: #1A1A1A;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.v-card .price {
    position: relative;
    z-index: 1;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 5px;
}

.sv-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px; /* Added to bring sublabel closer */
}

.sv-meta {
    font-size: 0.8rem;
    color: var(--gold); /* Changed to gold */
    font-weight: 700;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .v-unified-card {
        border-radius: 30px;
        margin: 0;
        padding: 20px 12px;
        border: 1px solid rgba(181, 156, 115, 0.2);
        box-shadow: 0 10px 30px rgba(181, 156, 115, 0.12);
    }
    .selection-card {
        border: 0;
        box-shadow: none;
        padding: 0;
    }
    .v-card-content {
        padding: 14px 8px;
    }
    .selection-card .v-card-content {
        padding: 0;
    }
    .voucher-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .service-v-list {
        grid-template-columns: 1fr;
    }

    .v-card {
        min-height: 190px;
        padding: 28px 18px;
    }

    .v-card .label {
        font-size: 0.9rem;
    }

    .sv-name {
        font-size: 0.85rem;
    }

    .v-form-title {
        display: none;
    }

    .v-form-side {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .v-input-group,
    .v-consent-group {
        width: 100%;
    }
}

/* --- FORM STYLES --- */
.v-form-side {
    max-width: 600px;
    margin: 0 auto;
}

.v-form-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-main);
}

.v-input-group {
    margin-bottom: 20px;
}

.v-input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: 1px;
}

.v-input-group input, .v-input-group textarea {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid var(--gold-light);
    text-align: center;
    transition: 0.3s;
    font-family: inherit; /* Ensure same font as labels/body */
    font-size: 1rem;
}

.v-input-group input:focus, .v-input-group textarea:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.1);
}

.v-btn-order {
    width: 100%;
    padding: 18px;
    background: var(--brand-gradient);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 20px;
}

.v-btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.4);
}
