/**
 * Victoria Events Booking - CSS for booking popup and checkout
 */

/* Popup Overlay */
.booking-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.booking-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Content */
.booking-popup-content {
    background-color: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.booking-popup-content.active {
    transform: translateY(0);
    opacity: 1;
}

/* Custom scrollbar for popup */
.booking-popup-content::-webkit-scrollbar {
    width: 8px;
}

.booking-popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.booking-popup-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.booking-popup-content::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Close Button */
.booking-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
}

.booking-popup-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

/* Popup Header */
.booking-popup-header {
    margin-bottom: 20px;
    text-align: center;
}

.booking-popup-header h2 {
    font-size: 24px;
    color: #333;
    margin: 0 0 5px;
}

.booking-popup-header h3 {
    font-size: 18px;
    color: #666;
    margin: 0;
    font-weight: normal;
}

/* Popup Info Section */
.booking-popup-info {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.booking-popup-info p {
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.booking-popup-info p i {
    margin-right: 10px;
    color: #4CAF50;
    width: 20px;
    text-align: center;
}

.category-communications .booking-popup-info p i {
    color: #a191f2; /* Communication category color */
}

.category-actors .booking-popup-info p i {
    color: #62d99b; /* Actors category color */
}

/* Description Section */
.booking-popup-description {
    margin-bottom: 25px;
}

.booking-popup-description h4 {
    font-size: 18px;
    margin: 0 0 10px;
    color: #333;
}

.booking-popup-description p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* Book Now Button */
.popup-book-now-button {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
}

.popup-book-now-button:hover {
    background-color: #45a049;
}

/* Category specific colors */
.category-communications .popup-book-now-button {
    background-color: #a191f2;
}

.category-communications .popup-book-now-button:hover {
    background-color: #8a7de0;
}

.category-actors .popup-book-now-button {
    background-color: #62d99b;
}

.category-actors .popup-book-now-button:hover {
    background-color: #50c285;
}

/* Loading overlay */
.victoria-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.victoria-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.victoria-loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4CAF50;
    border-radius: 50%;
    animation: victoria-spin 1s linear infinite;
}

.category-communications .victoria-loading-spinner {
    border-top-color: #a191f2;
}

.category-actors .victoria-loading-spinner {
    border-top-color: #62d99b;
}

.victoria-loading-text {
    color: white;
    margin-top: 15px;
    font-size: 16px;
}

@keyframes victoria-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .booking-popup-content {
        padding: 20px;
    }
    
    .booking-popup-header h2 {
        font-size: 20px;
    }
    
    .booking-popup-header h3 {
        font-size: 16px;
    }
}

/* Popup Title */
.popup-title {
    font-size: 1.8rem;
    margin: 0 0 25px 0;
    color: #333;
    border-bottom: 3px solid #eee;
    padding-bottom: 20px;
    text-align: center;
    font-weight: 600;
    position: relative;
    border-bottom-color: #62d99b;
}

.popup-title:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #4CAF50;
}

.category-communications .popup-title:after {
    background-color: #a191f2 !important;
}

.category-actors .popup-title:after {
    background-color: #62d99b !important;
}

/* Event Status Container */
.popup-event-status-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

/* Status, Price, Location */
.popup-event-status,
.popup-event-price,
.popup-event-location {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-indicator.available {
    background-color: #62d99b;
}

.price-label {
    font-weight: 600;
    margin-right: 8px;
}

/* Event Details Section */
.popup-event-details,
.popup-service-description,
.popup-contact-info {
    margin-bottom: 35px;
    padding-bottom: 5px;
}

.popup-event-details h3,
.popup-service-description h3,
.popup-contact-info h3 {
    font-size: 1.5rem;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f2f2f2;
    position: relative;
    color: #333;
    font-weight: 600;
}

.popup-event-details h3:after,
.popup-service-description h3:after,
.popup-contact-info h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: #4CAF50;
    bottom: -2px;
    left: 0;
    transition: width 0.3s ease;
}

.popup-event-details:hover h3:after,
.popup-service-description:hover h3:after,
.popup-contact-info:hover h3:after {
    width: 100px;
}

.category-communications .popup-event-details h3:after,
.category-communications .popup-service-description h3:after,
.category-communications .popup-contact-info h3:after {
    background-color: #a191f2 !important;
}

.category-actors .popup-event-details h3:after,
.category-actors .popup-service-description h3:after,
.category-actors .popup-contact-info h3:after {
    background-color: #62d99b !important;
}

/* Event details content */
.popup-event-details p {
    margin: 12px 0;
    line-height: 1.6;
    color: #555;
}

.popup-event-details p strong {
    font-weight: 600;
    color: #333;
    min-width: 80px;
    display: inline-block;
}

/* Service Description List */
.popup-service-description ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.popup-service-description li {
    padding: 12px 0 12px 35px;
    position: relative;
    line-height: 1.6;
    font-size: 1.05rem;
    color: #555;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
}

.popup-service-description li:last-child {
    border-bottom: none;
}

.popup-service-description li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.2rem;
    background-color: rgba(76, 175, 80, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-communications .popup-service-description li:before {
    color: #a191f2 !important;
    background-color: rgba(161, 145, 242, 0.1);
}

.category-actors .popup-service-description li:before {
    color: #62d99b !important;
    background-color: rgba(98, 217, 155, 0.1);
}

/* Contact Info */
.popup-contact-info p {
    margin: 12px 0;
    line-height: 1.6;
    color: #555;
}

.popup-contact-info a {
    color: #2196F3;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.popup-contact-info a:hover {
    color: #0b7dda;
}

.popup-contact-info a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #0b7dda;
    transition: width 0.3s ease;
}

.popup-contact-info a:hover:after {
    width: 100%;
}

/* Book Workshop Button */
.book-workshop-button {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.book-workshop-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4);
    color: white;
    text-decoration: none;
}

.category-communications .book-workshop-button {
    background-color: #a191f2 !important;
    box-shadow: 0 4px 10px rgba(161, 145, 242, 0.3);
}

.category-communications .book-workshop-button:hover {
    box-shadow: 0 6px 15px rgba(161, 145, 242, 0.4);
}

.category-actors .book-workshop-button {
    background-color: #62d99b !important;
    box-shadow: 0 4px 10px rgba(98, 217, 155, 0.3);
}

.category-actors .book-workshop-button:hover {
    box-shadow: 0 6px 15px rgba(98, 217, 155, 0.4);
}

/* Checkout Error Message */
.victoria-events-checkout-error {
    max-width: 600px;
    margin: 80px auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    animation: fade-in 0.5s ease-out;
}

.victoria-events-checkout-error h1 {
    font-size: 2.2rem;
    color: #F44336;
    margin: 0 0 20px 0;
}

.victoria-events-checkout-error p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

.return-to-events-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.return-to-events-button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}

/* Victoria Events Booking - Enhanced Checkout Styling */

/* Main Checkout Container - Improved Full Width & Theme Integration */
.victoria-events-checkout {
    max-width: 100%;
    width: 100%;
    margin: 30px auto 60px;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    font-family: inherit;
}

/* Redesigned Checkout Header */
.checkout-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f5f5f5;
    width: 100% !important;
    max-width: 100% !important;
}

.checkout-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.checkout-subtitle {
    font-size: 18px;
    color: #666;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
}

/* Enhanced Checkout Columns Layout */
.checkout-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
    align-items: flex-start;
    width: 100% !important;
}

.checkout-column {
    flex: 1;
    min-width: 300px;
}

/* Section Styling - More Theme Aligned */
.checkout-section {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.checkout-section:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.checkout-section-title {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
}

.checkout-section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #ff5e5e; /* Match Krisp Productions brand color */
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Better Event Details */
.checkout-event-details {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.checkout-event-detail {
    display: flex;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #eee;
}

.checkout-event-detail:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.checkout-event-detail-label {
    flex: 0 0 120px;
    font-weight: 600;
    color: #555;
}

.checkout-event-detail-value {
    flex: 1;
    color: #333;
    font-weight: 500;
    line-height: 1.5;
}

/* Improved Form Styling */
.checkout-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.checkout-form-group {
    flex: 1;
    margin-bottom: 24px;
    position: relative;
}

.checkout-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 15px;
}

.checkout-form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #333;
}

.checkout-form-input:focus {
    outline: none;
    border-color: #ff5e5e; /* Match Krisp Productions brand color */
    box-shadow: 0 0 0 3px rgba(255, 94, 94, 0.15);
}

/* Enhanced Order Summary */
.checkout-total {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    border: 1px solid #eaeaea;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
}

.checkout-grand-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #eee;
}

.checkout-grand-total .checkout-total-label,
.checkout-grand-total .checkout-total-value {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

/* Deposit Option Restyling */
.checkout-deposit-option {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-top: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    border-left: 4px solid #ff5e5e; /* Match Krisp Productions brand color */
}

.checkout-deposit-option h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.deposit-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 16px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #f9f9f9;
}

.deposit-option:hover {
    border-color: #ff5e5e; /* Match Krisp Productions brand color */
    background-color: #fff;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.deposit-option input[type="radio"] {
    margin-right: 15px;
    accent-color: #ff5e5e; /* Match Krisp Productions brand color */
    transform: scale(1.2);
    cursor: pointer;
}

.option-title {
    font-weight: 600;
    color: #333;
    font-size: 17px;
}

.option-amount {
    font-weight: 700;
    color: #ff5e5e; /* Match Krisp Productions brand color */
    font-size: 17px;
    background-color: rgba(255, 94, 94, 0.08);
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    margin-left: auto;
}

/* Payment Methods Restyling */
.checkout-payment-methods {
    margin-bottom: 25px;
}

.checkout-payment-method {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.checkout-payment-method.active {
    border-color: #ff5e5e; /* Match Krisp Productions brand color */
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.checkout-payment-method-input {
    margin-right: 15px;
    accent-color: #ff5e5e; /* Match Krisp Productions brand color */
    transform: scale(1.2);
}

.checkout-payment-method-label {
    flex: 1;
    font-weight: 600;
    color: #333;
    font-size: 17px;
}

/* Enhanced Submit Button */
.checkout-submit-button {
    background: #ff5e5e; /* Match Krisp Productions brand color */
    color: white;
    border: none;
    width: 100%;
    padding: 18px 20px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 94, 94, 0.25);
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.checkout-submit-button:hover {
    background-color: #e54545;
    box-shadow: 0 6px 20px rgba(255, 94, 94, 0.35);
    transform: translateY(-2px);
}

.checkout-submit-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transition: all 0.8s ease;
}

.checkout-submit-button:hover:before {
    left: 100%;
}

/* Responsive Refinements */
@media screen and (max-width: 991px) {
    .checkout-columns {
        flex-direction: column;
        gap: 15px;
    }
    
    .checkout-column {
        width: 100%;
    }
    
    .checkout-section {
        padding: 20px;
    }
    
    .checkout-title {
        font-size: 28px;
    }
}

@media screen and (max-width: 768px) {
    .checkout-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .checkout-section-title {
        font-size: 20px;
    }
    
    .deposit-option {
        padding: 12px;
    }
    
    .option-title {
        font-size: 15px;
    }
    
    .option-amount {
        font-size: 15px;
        padding: 4px 10px;
    }
}

/* Match site's width container */
.elementor-section.elementor-section-boxed > .elementor-container .victoria-events-checkout {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Category Acting - match site colors */
.category-acting .checkout-section-title:after,
.category-acting .option-selected,
.category-acting .deposit-option:hover {
    border-color: #4c9aff;
}

.category-acting .option-amount {
    color: #4c9aff;
    background-color: rgba(76, 154, 255, 0.1);
}

.category-acting .deposit-notice {
    border-left-color: #4c9aff;
    background-color: rgba(76, 154, 255, 0.05);
}

.category-acting .checkout-submit-button {
    background: #4c9aff;
    box-shadow: 0 4px 10px rgba(76, 154, 255, 0.3);
}

.category-acting .checkout-submit-button:hover {
    background-color: #3a86e9;
    box-shadow: 0 6px 15px rgba(76, 154, 255, 0.4);
}

/* Fix Elementor Container Issues */
.elementor-section .victoria-events-checkout {
    width: 100%;
}

.elementor-column .victoria-events-checkout {
    margin-top: 0;
}

/* Animation for the PayPal Button Container */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

#paypal-button-container {
    animation: fadeIn 0.5s ease-out;
}

/* Loading Animation for PayPal Button */
.checkout-submit-button.loading {
    background: linear-gradient(270deg, #f27474, #ff9500, #f27474);
    background-size: 600% 600%;
    animation: gradientAnimation 3s ease infinite;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animations and Enhanced States */
.checkout-visible {
    animation: fadeUp 0.8s ease-out forwards;
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.section-highlight {
    border-color: #ff9500;
}

.input-focused {
    position: relative;
}

.input-focused .checkout-form-label {
    color: #ff9500;
    font-weight: 600;
    transform: translateY(-3px);
    transition: all 0.3s ease;
}

.checkout-form-input.invalid {
    border-color: #f27474;
    background-color: rgba(242, 116, 116, 0.05);
}

.checkout-form-input.valid {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.05);
}

.error-message {
    color: #f27474;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.option-selected {
    border-color: #ff9500;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(255, 149, 0, 0.1);
}

.category-acting .option-selected {
    border-color: #4c9aff;
    box-shadow: 0 5px 15px rgba(76, 154, 255, 0.1);
}

.amount-highlight {
    animation: pulse 0.7s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.notice-visible {
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}

.button-animate {
    animation: buttonPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes buttonPop {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.total-highlight {
    animation: highlightTotal 1.5s ease;
}

@keyframes highlightTotal {
    0% { background-color: transparent; }
    50% { background-color: rgba(255, 94, 94, 0.15); }
    100% { background-color: transparent; }
}

.shake {
    animation: shakeButton 0.6s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shakeButton {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Focus and Hover States */
.checkout-form-group:focus-within .checkout-form-label {
    color: #ff9500;
    transform: translateY(-3px);
    transition: all 0.3s ease;
}

.deposit-notice p:first-child {
    position: relative;
}

.deposit-notice p:first-child::before {
    content: "🔔";
    margin-right: 8px;
    display: inline-block;
    animation: ring 4s 1s ease-in-out infinite;
    transform-origin: 50% 0;
}

@keyframes ring {
    0% { transform: rotate(0); }
    1% { transform: rotate(15deg); }
    3% { transform: rotate(-10deg); }
    5% { transform: rotate(5deg); }
    7% { transform: rotate(-5deg); }
    9% { transform: rotate(0); }
    100% { transform: rotate(0); }
}

/* Page Integration Fix - Solves Alignment Issues */
.elementor-widget-container .victoria-events-checkout,
.elementor-section .victoria-events-checkout,
.entry-content .victoria-events-checkout,
#content .victoria-events-checkout {
    width: 100% !important;
    max-width: 100% !important;
}

/* Add Special Class for Krisp Production Theme */
.victoria-events-checkout.krisp-theme-aligned {
    max-width: 100%;
    margin: 40px auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.8s ease-out;
}

/* Fix Red Event Title Alignment at Top */
body h1.entry-title + .victoria-events-checkout {
    margin-top: 0 !important;
}

/* Override any Theme Margins and Paddings */
.site-content .victoria-events-checkout,
.site-main .victoria-events-checkout,
.content-area .victoria-events-checkout,
.post-content .victoria-events-checkout {
    margin-top: 0 !important;
    margin-bottom: 50px !important;
}

/* Make Checkout Content Wrap Properly */
.checkout-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
    align-items: flex-start;
    width: 100% !important;
}

/* Fix Responsive Issues */
@media (max-width: 991px) {
    .checkout-columns {
        flex-direction: column;
        gap: 20px;
    }
    
    .checkout-column {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }
    
    .checkout-section {
        padding: 20px !important;
    }
}

/* Force Main Checkout Container to Take Available Space */
#primary, 
#main,
.content-area,
.site-main {
    width: 100% !important;
    max-width: 100% !important;
}

/* Fix for Event Checkout Title at Top of Page */
.page-title-wrap + .victoria-events-checkout,
h1.page-title + .victoria-events-checkout,
h1.entry-title + .victoria-events-checkout {
    margin-top: 30px !important;
}

/* Force Form Elements to Behave */
.checkout-form-group {
    width: 100% !important;
}

.checkout-form-input {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Handle Elementor Template Builder Issues */
body.elementor-template-full-width .site-content .victoria-events-checkout,
body.page-template-elementor_header_footer .site-content .victoria-events-checkout {
    max-width: 1140px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
}

/* Make Section Titles Stand Out */
.checkout-section-title {
    color: #333 !important;
    padding-bottom: 10px !important;
    font-weight: 600 !important;
    font-size: 22px !important;
}

/* Fix the Event Checkout Title at Top of Page */
h1.entry-title,
.entry-header h1 {
    max-width: 1140px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
}

/* Krisp Productions Header Fix */
.site-header + h1 {
    margin-top: 30px !important;
}

/* Deal with specific theme padding issues that cause misalignment */
.elementor-inner,
.elementor-section-wrap,
.elementor-widget-wrap {
    padding: 0 !important;
}

/* Additional fix for proper page width on Elementor templates */
.elementor .elementor-inner,
.elementor .elementor-section-wrap {
    width: 100% !important;
    max-width: 100% !important;
}

/* Shortcode Wrapper Styles - Prevent conflicts with WooCommerce */
.victoria-events-shortcode-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 1; /* Lower than WooCommerce elements */
    box-sizing: border-box;
}

/* Override any WooCommerce styles that might interfere */
.victoria-events-shortcode-wrapper input,
.victoria-events-shortcode-wrapper textarea,
.victoria-events-shortcode-wrapper select,
.victoria-events-shortcode-wrapper button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Override WooCommerce button styles */
.victoria-events-shortcode-wrapper .checkout-submit-button {
    background: #ff5e5e !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255, 94, 94, 0.25) !important;
}

.victoria-events-shortcode-wrapper .checkout-submit-button:hover {
    background-color: #e54545 !important;
    box-shadow: 0 6px 20px rgba(255, 94, 94, 0.35) !important;
}

/* Shortcode-specific margins and paddings */
.page-template-default .victoria-events-shortcode-wrapper,
.page .victoria-events-shortcode-wrapper,
.single .victoria-events-shortcode-wrapper {
    margin: 40px auto;
}

/* Ensure proper mobile layout within page */
@media (max-width: 767px) {
    .victoria-events-shortcode-wrapper {
        padding: 0 15px;
    }
    
    .victoria-events-shortcode-wrapper .checkout-header {
        margin-bottom: 30px;
    }
    
    .victoria-events-shortcode-wrapper .checkout-title {
        font-size: 24px;
    }
}

/* Ensure proper placement when used with page builders */
.elementor-widget-container .victoria-events-shortcode-wrapper,
.fl-module-content .victoria-events-shortcode-wrapper,
.wp-block-library .victoria-events-shortcode-wrapper {
    width: 100%;
    max-width: 100%;
}

/* Enhanced checkout columns for wider layout */
.checkout-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.checkout-column {
    flex: 1;
    min-width: 300px;
}

/* Enhanced header animation */
.checkout-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeUp 0.8s ease-out;
}

.checkout-title {
    font-size: 32px;
    margin: 0 0 15px 0;
    color: #333;
    font-weight: 700;
    animation: fadeUp 0.9s ease-out;
}

.checkout-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0;
    animation: fadeUp 1s ease-out;
}

/* Enhanced deposit amount highlight in order summary */
.checkout-deposit-calculation {
    background-color: rgba(255, 94, 94, 0.05);
    border-top: 2px dashed rgba(255, 94, 94, 0.3);
    margin-top: 10px;
    padding-top: 15px;
    animation: highlightTotal 1.5s ease-out;
}

.amount-highlight {
    font-weight: 700;
    color: #ff5e5e;
    font-size: 20px;
    animation: pulse 2s infinite;
}

/* Enhanced submit button animation */
.checkout-submit-button {
    background: linear-gradient(135deg, #ff5e5e 0%, #e54545 100%);
    color: white;
    border: none;
    width: 100%;
    padding: 18px 20px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.5s ease, transform 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 94, 94, 0.35);
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    animation: buttonPop 0.5s ease-out 1.5s backwards;
}

.checkout-submit-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 94, 94, 0.5);
    background: linear-gradient(135deg, #ff4a4a 0%, #e03a3a 100%);
}

.checkout-submit-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transition: all 0.8s ease;
}

.checkout-submit-button:hover:before {
    left: 100%;
    transition: all 0.8s ease;
}

/* Additional animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes highlightTotal {
    0% {
        background-color: rgba(255, 94, 94, 0);
    }
    50% {
        background-color: rgba(255, 94, 94, 0.15);
    }
    100% {
        background-color: rgba(255, 94, 94, 0.05);
    }
}

@keyframes buttonPop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}

/* Form field focus animation */
.checkout-form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    background-color: #fff;
    color: #333;
}

.checkout-form-input:focus {
    outline: none;
    border-color: #ff5e5e;
    box-shadow: 0 0 0 3px rgba(255, 94, 94, 0.15);
    transform: translateY(-1px);
}

/* Enhanced form field animation when focused */
.checkout-form-group:focus-within .checkout-form-label {
    color: #ff5e5e;
    transform: translateY(-3px);
    transition: all 0.3s ease;
}

/* Enhanced checkout section animation */
.checkout-section {
    margin-bottom: 30px;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    animation: fadeUp 0.8s ease-out;
}

.checkout-section:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}
.checkout-total-row.checkout-deposit-calculation.total-highlight .checkout-total-label {
    padding-left: 20px;
}
label[for="payment_deposit"] br {
    display: none;
}
button#proceed-to-paypal br {
    display: none;
}
form#checkout-form br {
    display: none;
}
/* Responsive refinements for wider layout */
@media screen and (min-width: 1200px) {
    .victoria-events-checkout.krisp-theme-aligned {
        max-width: 100%;
    }
}

@media screen and (max-width: 991px) {
    .victoria-events-checkout.krisp-theme-aligned {
        max-width: 90%;
        padding: 30px;
    }
    
    .checkout-columns {
        flex-direction: column;
        gap: 20px;
    }
    
    .checkout-column {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .victoria-events-checkout.krisp-theme-aligned {
        padding: 20px;
    }
    
    .checkout-header {
        margin-bottom: 20px;
    }
    
    .checkout-title {
        font-size: 24px;
    }
}

/* Loading Overlay */
.victoria-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.victoria-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.victoria-loading-spinner {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    animation: victoria-spin 1s linear infinite;
}

.victoria-loading-text {
    position: absolute;
    margin-top: 100px;
    color: white;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
}

@keyframes victoria-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Button loading state */
.popup-book-now-button.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.popup-book-now-button.loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    margin-left: -12px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    animation: victoria-spin 0.8s linear infinite;
}

/* Button color fixes for categories */
/* Actors - Green buttons */
.category-actors .popup-book-now-button,
.category-actors .BOOK_NOW {
    background-color: #62d99b !important;
    border-color: #62d99b !important;
    box-shadow: 0 6px 15px rgba(98, 217, 155, 0.3);
}

.category-actors .popup-book-now-button:hover,
.category-actors .BOOK_NOW:hover {
    background-color: #4fc588 !important;
    box-shadow: 0 10px 20px rgba(98, 217, 155, 0.4);
}

/* Communications - Purple buttons */
.category-communications .popup-book-now-button,
.category-communications .BOOK_NOW {
    background-color: #a191f2 !important;
    border-color: #a191f2 !important;
    box-shadow: 0 6px 15px rgba(161, 145, 242, 0.3);
}

.category-communications .popup-book-now-button:hover,
.category-communications .BOOK_NOW:hover {
    background-color: #8f7fe0 !important;
    box-shadow: 0 10px 20px rgba(161, 145, 242, 0.4);
}

/* BOOK NOW Button in Popup - Updated to match single event page styling */
.BOOK_NOW {
    display: block;
    width: 100%;
    padding: 18px 30px;
    margin-top: 25px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.BOOK_NOW:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    background-color: #45a049;
}

/* Category-specific button styles */
.category-actors .BOOK_NOW {
    background-color: #62d99b !important;
    box-shadow: 0 4px 10px rgba(98, 217, 155, 0.3);
}

.category-actors .BOOK_NOW:hover {
    background-color: #56c88c !important;
    box-shadow: 0 6px 15px rgba(98, 217, 155, 0.4);
}

.category-communications .BOOK_NOW {
    background-color: #a191f2 !important;
    box-shadow: 0 4px 10px rgba(161, 145, 242, 0.3);
}

.category-communications .BOOK_NOW:hover {
    background-color: #9282e8 !important;
    box-shadow: 0 6px 15px rgba(161, 145, 242, 0.4);
}

/* Add these styles after existing popup styles */

/* Multi-line date/time display in popup */
.popup-event-details p span {
    display: inline-block;
    line-height: 1.5;
}

/* Event details in checkout page */
.checkout-event-detail-value {
    line-height: 1.5;
}

/* Ensure the popup has a proper size for multiple date entries */
.booking-popup-content {
    max-height: 90vh;
    overflow-y: auto;
}

/* Fix order summary to display clean prices (no parenthesis) */
.checkout-total-value {
    font-weight: 600;
}

/* Styling for the calendar icon and date/time display in popup */
.popup-event-details p {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.6;
}

.popup-event-details p strong {
    display: inline-block;
    width: 80px;
    color: #555;
}

/* Add a green underline to the popup title to match reference */
.popup-title {
    border-bottom-color: #62d99b;
}

.category-communications .popup-title {
    border-bottom-color: #a191f2;
}

.category-actors .popup-title {
    border-bottom-color: #62d99b;
} 