/* EventHub Frontend Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.eventhub-checkout-container,
.eventhub-event-container,
.eventhub-events-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.eventhub-checkout-wrapper {
    display: flex;
    gap: 30px;
}

.eventhub-left-column {
    flex: 1;
}

.eventhub-right-column {
    width: 400px;
}

.eventhub-order-summary {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 25px;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

/* Section Titles */
.eventhub-section-title {
    font-size: 28px;
    font-weight: bold;
    color: #2c2c2c;
    margin-bottom: 25px;
}

.eventhub-section {
    margin-bottom: 50px;
}

.eventhub-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.eventhub-card-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.eventhub-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eventhub-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eventhub-card-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c2c2c;
    margin: 0;
}

.eventhub-card-description {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.eventhub-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.eventhub-quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eventhub-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none !important;
    background: #e8e8e8 !important;
    color: #2c2c2c !important;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.1s;
    box-shadow: none !important;
    outline: none !important;
}

.eventhub-qty-btn:hover {
    background: #d0d0d0 !important;
    color: #2c2c2c !important;
    transform: scale(1.05);
}

.eventhub-qty-btn:active,
.eventhub-qty-btn:focus {
    background: #b8b8b8 !important;
    color: #2c2c2c !important;
    transform: scale(0.95);
    outline: none !important;
    box-shadow: none !important;
}

/* Specific styles for plus and minus buttons to override Elementor */
.eventhub-qty-btn.eventhub-plus,
.eventhub-qty-btn.eventhub-minus {
    background: #e8e8e8 !important;
    color: #2c2c2c !important;
    border: none !important;
}

.eventhub-qty-btn.eventhub-plus:hover,
.eventhub-qty-btn.eventhub-minus:hover {
    background: #d0d0d0 !important;
    color: #2c2c2c !important;
}

.eventhub-qty-btn.eventhub-plus:active,
.eventhub-qty-btn.eventhub-plus:focus,
.eventhub-qty-btn.eventhub-minus:active,
.eventhub-qty-btn.eventhub-minus:focus {
    background: #b8b8b8 !important;
    color: #2c2c2c !important;
}

.eventhub-qty-value {
    font-size: 16px;
    color: #2c2c2c;
    min-width: 20px;
    text-align: center;
}

.eventhub-card-price {
    font-size: 20px;
    font-weight: bold;
    color: #2c2c2c;
}

.per-day-label {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

/* Order Summary */
.eventhub-summary-items {
    margin-bottom: 20px;
}

.eventhub-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    color: #2c2c2c;
}

.eventhub-summary-event-header {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ddd;
}

.eventhub-summary-day-item {
    padding-left: 20px;
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
}

.eventhub-summary-day-item:last-of-type {
    margin-bottom: 15px;
}

.eventhub-summary-accommodation-item {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    margin-bottom: 15px;
}

.eventhub-summary-item-name {
    color: #666;
}

.eventhub-summary-item-name-wrapper {
    display: flex;
    flex-direction: column;
}

.eventhub-summary-unit-price {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.eventhub-summary-item-price {
    font-weight: 500;
    color: #2c2c2c;
}

.eventhub-summary-category-header {
    margin-top: 15px;
    margin-bottom: 8px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
    font-size: 16px;
    color: #23282d;
    font-weight: 600;
}

.eventhub-summary-category-header:first-child {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

.eventhub-summary-addon-item {
    padding-left: 20px;
}

.eventhub-summary-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 20px 0;
}

.eventhub-summary-totals {
    margin-bottom: 25px;
}

.eventhub-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    color: #2c2c2c;
}

.eventhub-total-final {
    font-size: 22px;
    font-weight: bold;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

/* Checkout Form */
.eventhub-checkout-form {
    margin-top: 25px;
    text-align: center;
}

/* Checkout Error Message */
.eventhub-checkout-error {
    background-color: #ffe6e6;
    border: 1px solid #ff9999;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 30px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.eventhub-checkout-error .eventhub-error-icon {
    font-size: 24px;
    color: #d32f2f;
    flex-shrink: 0;
}

.eventhub-checkout-error .eventhub-error-message {
    color: #d32f2f;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.eventhub-checkout-form h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.eventhub-form-group {
    margin-bottom: 15px;
}

.eventhub-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    text-align: left;
}

.eventhub-form-group input,
.eventhub-form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #000000 !important;
    border-radius: 4px !important;
    font-size: 14px;
    background-color: #fff !important;
    color: #2c2c2c !important;
    font-family: inherit !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#billing_state_text {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #000000 !important;
    border-radius: 4px !important;
    font-size: 14px;
    background-color: #fff !important;
    color: #2c2c2c !important;
    font-family: inherit !important;
}

.eventhub-form-group input:focus,
.eventhub-form-group select:focus,
#billing_state_text:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.eventhub-form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
    cursor: pointer;
}

#eventhub-stripe-container {
    margin-top: 20px;
    margin-bottom: 20px;
}

#eventhub-stripe-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c2c2c;
    text-align: left;
}

#stripe-card-element {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

#stripe-card-errors {
    color: #d63638;
    font-size: 14px;
    margin-top: 8px;
    min-height: 20px;
}

.eventhub-stripe-error {
    background-color: #ffeaea;
    border: 1px solid #ffb3b3;
    border-radius: 4px;
    padding: 15px 20px;
    margin: 20px 0;
    color: #cc0000;
    font-size: 14px;
    line-height: 1.5;
}

.eventhub-stripe-error strong {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.eventhub-stripe-error-inline {
    background-color: #ffeaea;
    border: 1px solid #ffb3b3;
    border-radius: 4px;
    padding: 12px;
    color: #cc0000;
    font-size: 14px;
    text-align: center;
}

.eventhub-stripe-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.eventhub-checkout-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.eventhub-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.eventhub-form-row .eventhub-form-group {
    margin-bottom: 0;
}

.eventhub-half {
    flex: 1;
}

@media (max-width: 768px) {
    .eventhub-form-row {
        flex-direction: column;
        gap: 0;
    }
}

.eventhub-checkout-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: #2271b1;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    margin: 0 auto;
}

.eventhub-checkout-btn:hover {
    background: #135e96;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.eventhub-checkout-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.eventhub-checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Terms and Conditions Error Styling */
.eventhub-terms-error input[type="checkbox"] {
    border: 2px solid #dc3232 !important;
    outline: 2px solid rgba(220, 50, 50, 0.2) !important;
    outline-offset: 2px;
}

.eventhub-terms-error label {
    color: #dc3232 !important;
}

/* Ensure terms checkbox is clickable above Stripe elements */
#eventhub-terms-wrapper {
    position: relative !important;
    z-index: 9999 !important;
    isolation: isolate !important;
}

#eventhub-terms-wrapper input[type="checkbox"] {
    position: relative !important;
    z-index: 10000 !important;
    pointer-events: auto !important;
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
    min-width: 18px !important;
    min-height: 18px !important;
}

#eventhub-terms-wrapper label {
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
}

#eventhub-terms-wrapper a {
    pointer-events: auto !important;
    color: #0073aa !important;
    text-decoration: underline !important;
}

/* Ensure Stripe Payment Element doesn't overlay terms */
#stripe-payment-element {
    position: relative !important;
    z-index: 1 !important;
}

.eventhub-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.eventhub-btn-primary {
    background: #2271b1;
    color: #fff;
}

.eventhub-btn-primary:hover {
    background: #135e96;
    color: #fff;
}

/* Events List */
.eventhub-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.eventhub-event-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.eventhub-event-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.eventhub-event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eventhub-event-card-content {
    padding: 20px;
}

.eventhub-event-card-content h2 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.eventhub-event-card-dates {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.eventhub-event-card-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .eventhub-checkout-wrapper {
        flex-direction: column;
    }
    
    .eventhub-right-column {
        width: 100%;
    }
    
    .eventhub-order-summary {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .eventhub-checkout-container,
    .eventhub-event-container,
    .eventhub-events-container {
        padding: 15px;
    }
    
    .eventhub-checkout-wrapper {
        gap: 20px;
    }
    
    .eventhub-section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .eventhub-card {
        flex-direction: column;
        padding: 15px;
    }
    
    .eventhub-card-image {
        width: 100%;
        height: 200px;
    }
    
    .eventhub-order-summary {
        padding: 20px;
    }
    
    .eventhub-events-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .eventhub-section-title {
        font-size: 20px;
    }
    
    .eventhub-card-title {
        font-size: 18px;
    }
    
    .eventhub-card-price {
        font-size: 18px;
    }
    
    .eventhub-total-final {
        font-size: 20px;
    }
}

/* Pagination Styles */
.eventhub-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 40px 0 20px;
    padding: 20px 0;
}

.eventhub-pagination-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid #0073aa;
    border-radius: 8px;
    color: #0073aa;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.eventhub-pagination-arrow:hover {
    background: #0073aa;
    color: #fff;
    transform: scale(1.05);
}

.eventhub-pagination-arrow:active {
    transform: scale(0.95);
}

.eventhub-pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.eventhub-pagination-number:hover {
    background: #f0f0f0;
    border-color: #0073aa;
    color: #0073aa;
    transform: translateY(-2px);
}

.eventhub-pagination-number.active {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
    font-weight: bold;
    cursor: default;
}

.eventhub-pagination-number.active:hover {
    background: #0073aa;
    transform: none;
}

.eventhub-pagination-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: #666;
    font-size: 16px;
    font-weight: bold;
}

/* Mobile Responsive Pagination */
@media (max-width: 768px) {
    .eventhub-pagination {
        gap: 6px;
        margin: 30px 0 15px;
        padding: 15px 0;
    }
    
    .eventhub-pagination-arrow {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .eventhub-pagination-number {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 14px;
    }
    
    .eventhub-pagination-dots {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .eventhub-pagination {
        gap: 4px;
        margin: 20px 0 10px;
        padding: 10px 0;
    }
    
    .eventhub-pagination-arrow {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .eventhub-pagination-number {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 13px;
    }
    
    .eventhub-pagination-dots {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

/* Ticket Display Styles */
.eventhub-cart-item-display {
    line-height: 1.6;
    padding: 15px 0;
}

.eventhub-cart-event-name {
    font-weight: 700;
    color: #1d2327;
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.eventhub-cart-venue {
    color: #0073aa;
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: 500;
}

.eventhub-cart-date {
    color: #50575e;
    font-size: 14px;
    margin-bottom: 10px;
}

.eventhub-cart-seat-info {
    color: #23282d;
    font-size: 13px;
    background: #f0f6fc;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 8px;
    border: 1px solid #c8d7e1;
    font-weight: 500;
}

@media screen and (max-width: 782px) {
    .eventhub-cart-item-display {
        padding: 12px 0;
    }
    
    .eventhub-cart-event-name {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .eventhub-cart-venue {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .eventhub-cart-date {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .eventhub-cart-seat-info {
        font-size: 12px;
        padding: 6px 10px;
    }
}