/* General Styles with Modern Touch */
.pickleball-site-list {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.site-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 260px;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.site-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.card-img-container {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    flex-shrink: 0;
}

.site-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.site-card:hover .site-image {
    transform: scale(1.1);
}

.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.site-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
    line-height: 1.4;
}

.site-info {
    font-size: 0.9rem;
    color: #f37822;
    margin-bottom: 5px;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-info:hover {
    color: #d45022;
}

.btn-info,
.btn-choose-court {
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-info {
    background: linear-gradient(90deg, #f37822 0%, #d45022 45%, #e6342d 100%);
    color: #fff;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 120, 34, 0.4);
}

.btn-choose-court {
    background: linear-gradient(90deg, #f37822 0%, #d45022 45%, #e6342d 100%);
    color: #fff;
}

.btn-choose-court:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 52, 45, 0.4);
}

.store-address {
    font-size: 14px;
    margin-bottom: 8px;
    color: #4b5563;
}

.store-address i {
    margin-right: 8px;
    color: #f37822;
}

/* Modern Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup-content,
.category-popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-popup,
.close-product-popup,
.close-combined-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.3s ease;
    border: none;
}

.close-popup:hover,
.close-product-popup:hover,
.close-combined-popup:hover {
    background: #ef4444;
    color: #fff;
    transform: rotate(90deg);
}

/* Category List Modern Style */
.category-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    width: 100%;
    max-width: 100%;
}

.category-list li {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f9fafb;
    border: 2px solid transparent;
}

.category-list li:hover {
    background: linear-gradient(90deg, #f37822 0%, #d45022 45%, #e6342d 100%);
    color: #fff;
    transform: translateX(5px);
    border-color: #f37822;
}

.category-list a {
    text-decoration: none;
    color: inherit;
    display: block;
    font-weight: 500;
}

/* Modern Booking Form */
.booking-popup, .payment-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1005;
    justify-content: center;
    align-items: center;
}

.booking-popup.active, .payment-popup.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.booking-popup-content {
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    max-width: 900px;
    width: 95%;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.4s ease;
}

.webo-booking-form {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    border-radius: 24px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.form-header {
    background: linear-gradient(90deg, #f37822 0%, #d45022 45%, #e6342d 100%);
    color: #fff;
    text-align: center;
    padding: 25px;
    position: relative;
}

.form-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.form-subtitle {
    opacity: 0.95;
    font-size: 16px;
    margin: 0;
    font-weight: 400;
}

.form-body {
    padding: 30px;
    overflow: auto;
    max-height: 500px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.form-section h4 {
    color: #000;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #f3f4f6;
    position: relative;
}

.form-section h4:before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #f37822 0%, #d45022 45%, #e6342d 100%);
    border-radius: 2px;
}

.service-info {
    background: linear-gradient(90deg, #f37822 0%, #d45022 45%, #e6342d 100%);
    color: white;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(243, 120, 34, 0.3);
}

.service-info span.amount {
    color: white;
    font-size: 28px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f9fafb;
    font-family: inherit;
}

select.form-control, select.category-select {
    padding: 5px 18px !important;
}


.form-control:focus {
    outline: none;
    border-color: #f37822;
    background: white;
    box-shadow: 0 0 0 4px rgba(243, 120, 34, 0.1);
    transform: translateY(-1px);
}

.form-control:hover {
    border-color: #d1d5db;
}

/* Payment Options Modern Style */
.payment-section {
    margin: 30px 0 0 0;
}

.payment-section h4 {
    color: #000;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.payment-options {
    display: flex;
    gap: 15px;
}

.payment-option {
    flex: 1;
    min-width: 200px;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option label {
    display: block !important;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    background: #f9fafb;
    position: relative;
}

.payment-option label:hover {
    border-color: #f37822;
    transform: translateY(-2px);
}

.payment-option input[type="radio"]:checked + label {
    border-color: #f37822;
    background: linear-gradient(90deg, #f37822 0%, #d45022 45%, #e6342d 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(243, 120, 34, 0.3);
}

.submit-btn {
    width: 100%;
    padding: 10px 40px;
    background: linear-gradient(90deg, #f37822 0%, #d45022 45%, #e6342d 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(243, 120, 34, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(243, 120, 34, 0.4);
    background: linear-gradient(90deg, #d45022 0%, #e6342d 100%);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* Products Grid - 4 Columns Layout */
.products-grid,
.product-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

/* Product Cards Modern Style */
.product-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(243, 120, 34, 0.2);
    border-color: #f37822;
}

.product-card-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card-img {
    transform: scale(1.15) rotate(2deg);
}

.product-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #000;
    line-height: 1.4;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.4rem;
    color: #f37822;
    font-weight: 700;
    margin: 8px 0;
    text-shadow: 0 2px 4px rgba(243, 120, 34, 0.1);
}

.btn-book-now {
    background: linear-gradient(90deg, #f37822 0%, #d45022 45%, #e6342d 100%);
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: auto;
    box-shadow: 0 4px 12px rgba(243, 120, 34, 0.2);
}

.btn-book-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(243, 120, 34, 0.4);
    background: linear-gradient(90deg, #d45022 0%, #e6342d 100%);
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 40px;
}

.loading-spinner i {
    font-size: 32px;
    color: #f37822;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Combined Popup Modern Style */
#combined-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.combined-popup-content {
    background-color: #ffffff;
    border-radius: 24px;
    width: 95%;
    max-height: 90vh;
    padding: 40px;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

.combined-popup-content h3 {
    margin: 0 0 20px 0;
    text-align: center;
    color: #000;
    font-size: 28px;
    font-weight: 700;
}

.combined-popup-content h4 {
    margin: 30px 0 20px 0;
    color: #374151;
    font-size: 20px;
    padding-bottom: 12px;
    font-weight: 600;
}

/* Category Select Dropdown */
.category-select {
    width: 100%;
    max-width: 350px;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    color: #374151;
    background-color: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-select:hover {
    border-color: #f37822;
    background-color: #fff;
}

.category-select:focus {
    outline: none;
    border-color: #f37822;
    box-shadow: 0 0 0 4px rgba(243, 120, 34, 0.1);
}

.categories-section {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.categories-right {
    flex: 1;
}
.categories-right #category-select {
    width:300px
}
.categories-left h4 {
    margin: 0;
}

/* Peak Hour Styles */
.peak-hour-option {
    background-color: #fef3c7 !important;
    color: #92400e !important;
    font-weight: bold;
    border-color: #fbbf24 !important;
}

.wbs-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
    padding: 16px 20px;
    border-radius: 12px;
    color: #92400e;
    margin: 15px 0 25px 0;
    font-size: 14px;
    display: none;
    font-weight: 500;
}

.wbs-warning strong {
    color: #b91c1c;
    font-weight: 700;
}

.booking-success {
    text-align: center;
}

/* ==== PayOS Popup ==== */
.payment-popup-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    width: 100%;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

.payment-header {
    background: #fff;
    color: #000000;
    padding: 15px 35px;
    text-align: center;
    position: relative;
}

.tip-text {
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    font-size: 19px;
    line-height: 1.5;
    backdrop-filter: blur(10px);
    display: block;
    text-align: center;
    margin-bottom: 0;
}

.tip-text span:first-child {
    font-size: 18px;
    margin-top: 2px;
}

.payment-body {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    overflow: auto;
    height: 500px;
}

.qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 20px;
    min-height: 250px;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(90deg, #f37822 0%, #d45022 45%, #e6342d 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.payment-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    font-weight: 500;
    color: #2c3e50;
}

.amount-value {
    color: #f37822;
    font-weight: 700;
    font-size: 18px;
}

.copy-btn {
    background: linear-gradient(90deg, #f37822 0%, #d45022 45%, #e6342d 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 120, 34, 0.3);
    background: linear-gradient(90deg, #d45022 0%, #e6342d 100%);
}

.copy-btn.copied {
    animation: copyFeedback 0.3s ease;
}

.warning-section {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 15px;
}

.warning-title {
    color: #856404;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-text {
    color: #856404;
    font-size: 13px;
    line-height: 1.4;
}

.payment-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.action-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0;
}

.huy-btn {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.huy-btn:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-2px);
}

.btn-online {
    background: linear-gradient(90deg, #f37822 0%, #d45022 45%, #e6342d 100%);
    color: white;
}

.btn-online:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(243, 120, 34, 0.3);
    background: linear-gradient(90deg, #d45022 0%, #e6342d 100%);
}

.peak-hour-option {
    background-color: #fff3cd !important;
    color: #856404 !important;
    font-weight: bold;
}

.peak-hour-pricing {
    font-weight: bold;
}

.peak-hour-notice {
    font-size: 0.9em;
    font-style: italic;
    color: #fff;
    font-weight: bold;
}

.service-info {
    margin: 10px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.service-price {
    display: block;
    margin-top: 5px;
}

/* Animation cho price update */
.service-price {
    transition: all 0.3s ease;
}

.service-price.updating {
    opacity: 0.7;
    transform: scale(0.98);
}

.wbs-warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 10px 15px;
    border-radius: 6px;
    color: #856404;
    margin: 15px 0 25px 0;
    font-size: 14px;
    display:none;
}
.wbs-warning strong {
    color: #d9534f;
}
/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid,
    .product-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 992px) {
    .products-grid,
    .product-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-header {
        padding: 30px 20px;
    }

    .form-title {
        font-size: 24px;
    }

    .form-body {
        padding: 20px;
    }

    .payment-options {
        flex-direction: column;
    }

    .site-card {
        width: 100%;
    }

    .combined-popup-content {
        padding: 25px;
        width: 95%;
    }

    .products-grid,
    .product-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-card-img-container {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .form-title {
        font-size: 20px;
    }

    .form-control {
        padding: 12px 16px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 14px 30px;
        font-size: 14px;
    }

    .products-grid,
    .product-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-card-img-container {
        height: 180px;
    }

    .product-price {
        font-size: 1.2rem;
    }

    .product-card-body {
        padding: 16px;
    }
}

.weekday-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.weekday-option {
    display: flex !important;
    align-items: center;
    padding: 5px;
    gap: 5px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}
.weekday-option:hover {
    background: linear-gradient(90deg, #f37822 0%, #d45022 45%, #e6342d 100%);
    color:#fff;
    box-shadow: 0 8px 20px rgba(243, 120, 34, 0.3);
}
.weekday-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-right: 8px;
    cursor: pointer;
    position: relative;
    background-color: #fff;
    transition: all 0.2s ease;
}

.weekday-option input[type="checkbox"]:checked {
    background-color: white; /* màu nền khi checked */
    border-color: #d9534f; /* viền xanh nếu muốn nổi bật */
}

.weekday-option input[type="checkbox"]:checked::before {
    content: '✔';
    position: absolute;
    top: 50%;
    left: 50%;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
}

.weekday-option input[type="checkbox"]:checked {
    font-weight: bold;
    background: linear-gradient(90deg, #f37822 0%, #d45022 45%, #e6342d 100%);
    box-shadow: 0 8px 20px rgba(243, 120, 34, 0.3);
}
.recurring-summary {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}