.wpcv-container {
    max-width: 100%;
    margin: 0 auto;
    font-family: inherit;
    color: #333;
}
/* --- VOUCHER GRID & CARDS --- */
.wpcv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 20px 0;
}

.wpcv-card {
    background: #ffffff;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.wpcv-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.wpcv-card hr.wpcv-divider {
    background-color: #BCAB85;
    margin: 0;
    margin-bottom: 10px;
}
div#wpcv-success-msg {
    font-family: 'Glacial Indifference';
}
/* Image Section with Background Property */
.wpcv-card-image-wrap {
    position: relative;
    width: 100%;
    height: 340px;
    
    /* Default gradient if no featured image is uploaded */
    background-color: #f4edd9;
    background-image: linear-gradient(to bottom right, #f4edd9, #e6d7b8);
    
    /* Background sizing properties for the inline featured image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Remove the old img rule if it's still there */
.wpcv-card-image-wrap img {
    display: none; 
}

.wpcv-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #fff; /* Assuming white text for contrast, adjust if needed */
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: bold;
    z-index: 2;
    opacity: 0.8;
}

/* Content Section */
.wpcv-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.wpcv-card-content h2 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #111;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.13px;
    font-family: 'Avenir LT STD Black';
}

.wpcv-desc {
    font-size: 16px;
    color: #000;
    line-height: 1.6;
    margin: 0 0 25px 0;
    flex-grow: 1;
    font-family: 'Glacial Indifference';
}

/* Learn More Link */
.wpcv-learn-more {
    color: #800020;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    letter-spacing: 1.96px;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
}

.wpcv-arrow {
    margin-left: 8px;
    font-size: 16px;
}

.wpcv-learn-more:hover {
    color: #5c0017;
}

/* Footer Layout */
.wpcv-divider {
    border: 0;
    height: 1px;
    background: #e0d8c8; /* Soft beige/gold line */
    margin: 0 0 20px 0;
}

.wpcv-card-footer {
    display: flex;
    align-items: center;
    gap: 70px;
}

.wpcv-footer-meta {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #000;
    font-family: 'Glacial Indifference';
}

.wpcv-footer-meta svg {
    margin-right: 8px;
}

.wpcv-price {
    font-weight: 400;
}

.wpcv-currency {
    margin-right: 8px;
}

.wpcv-btn {
    background-color: #800020;
    color: white;
    border: 1px solid #800020;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 14.5px;
    border-radius: 2px;
    transition: background 0.3s;
    letter-spacing: 2.1px;
    font-family: 'Avenir LT STD Black';
    font-weight: 700;
}

.wpcv-btn:hover { background-color: #fff; color: #000;}
.wpcv-form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}
.wpcv-form-group input, .wpcv-container textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #BCAB85;
    border-radius: 0;
    font-family: 'Glacial Indifference';
}
.wpcv-payment-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    font-family: 'Avenir LT STD Black';
}
.wpcv-tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}
.wpcv-tab-btn.active {
    border-bottom: 3px solid #800020;
    font-weight: bold;
    background-color: #800020;
    color: #fff;
}
button.wpcv-tab-btn {
    color: #800020;
}
/* --- POPUP MODAL STYLES --- */
.wpcv-modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65); /* Dark transparent background */
    z-index: 999999; /* Sit on top of everything including headers */
    align-items: center; 
    justify-content: center;
    backdrop-filter: blur(3px);
}

.wpcv-modal-content {
    background: #F2EDE2;
    padding: 35px;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.wpcv-modal-content input {
    border: 1px solid #BCAB85 !important;
    border-radius: 0 !important;
    font-family: 'Glacial Indifference';
}
p#wpcv-selected-item-text {
    font-family: 'Glacial Indifference';
    font-size: 20px;
}
.wpcv-step span.modal-title {
    font-size: 34px;
    font-family: 'Avenir LT STD Black';
    font-weight: 700;
    color: #000;
    width: 100%;
    display: block;
}
.wpcv-modal-close {
    position: absolute;
    top: 15px; 
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    line-height: 1;
    transition: color 0.2s;
}

.wpcv-modal-close:hover {
    color: #800020;
}
@media (max-width:1400px){
    .wpcv-card-image-wrap {
    height: 260px;
}
}
@media (max-width:1024px){
    .wpcv-card-image-wrap {
    height: 220px;
}
}
@media (max-width:991px){
    .wpcv-card-image-wrap {
    height: 380px;
}
}
@media (max-width:940px){
    .wpcv-grid {
    grid-template-columns: repeat(1, 1fr);
}
}
@media (max-width:767px){
    .wpcv-card-image-wrap {
    height: 300px;
}
}
/* Ensure form group splits properly in the modal */
@media (max-width: 600px) {
    .wpcv-form-group {
        grid-template-columns: 1fr; /* Stack inputs on mobile */
    }
    .wpcv-card-content h2 {
    font-size: 18px;
}
.wpcv-desc {
    font-size: 14px;
}
p#wpcv-selected-item-text {
    font-size: 17px;
}
}
@media (max-width:576px){
    .wpcv-card-footer {
    gap: 20px;
    justify-content: space-between;
}
.wpcv-card-content {
    padding: 18px;
}
.wpcv-step span.modal-title {
    font-size: 22px;
}
.wpcv-footer-meta {
    font-size: 12px;
}
.wpcv-footer-meta svg {
    width: 12px;
}
.wpcv-card-image-wrap {
    height: 150px;
}
}

/* --- POPUP ANIMATION (SLIDE UP) --- */
@keyframes wpcvSlideUp {
    from { 
        transform: translateY(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

/* --- MOBILE & TABLET BOTTOM SHEET (1024px and below) --- */
@media (max-width: 1024px) {
    .wpcv-modal-overlay {
        align-items: flex-end !important; /* Pushes the popup to the bottom */
        padding: 0 !important; /* Removes side padding so it touches the edges */
    }
    
    .wpcv-modal-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 20px 20px 0 0 !important; /* Rounds only the top corners */
        max-height: 85vh; /* Prevents it from covering the entire screen */
        overflow-y: auto; /* Allows scrolling inside the popup if it gets too tall */
        
        /* Applies the slide-up animation */
        animation: wpcvSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards !important; 
    }

    /* Optional: Move the close button slightly so it looks better on mobile */
    .wpcv-modal-close {
        top: 15px !important;
        right: 20px !important;
    }
}