/* Event Detail Page Styles */
:root {
    --primary-color: #FFA500;
    --primary-dark: #FF8C00;
    --gold: #FFB800;
    --gold-light: #FFF3E0;
    --gold-dark: #F57C00;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --border-color: #e0e0e0;
    --success: #4CAF50;
    --danger: #FF4444;
    --warning: #FFB800;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #ffffff;
}

/* Container */
.bmr-event-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Breadcrumb */
.bmr-event-breadcrumb {
    padding: 1rem 0;
    font-size: 0.85rem !important; /* PC: ~13.6px */
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Mobile breadcrumb font-size */
@media (max-width: 768px) {
    .bmr-event-breadcrumb {
        font-size: 0.75rem !important; /* Mobile: ~12px */
    }
}

.bmr-event-breadcrumb a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s;
}

.bmr-event-breadcrumb a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.bmr-event-hero {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: white;
}

.bmr-event-hero-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.bmr-event-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bmr-event-hero-content {
    padding: 1rem;
    background: white;
    color: var(--text-dark);
    position: relative;
}

.bmr-event-badges {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    z-index: 10;
}

.bmr-event-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.bmr-event-badges-below {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.bmr-event-badge-small {
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.bmr-event-hero-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: var(--text-dark);
}

.bmr-event-hero-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.6;
}

/* Sticky Navigation */
.bmr-sticky-nav {
    background: white;
    border-bottom: 0px solid var(--border-color);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
}

.bmr-sticky-nav.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border-radius: 0;
}

.bmr-nav-tabs {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.bmr-nav-tabs::-webkit-scrollbar {
    display: none;
}

.bmr-nav-tab {
    padding: 1rem 1.5rem;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    cursor: pointer;
}

.bmr-nav-tab:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.bmr-nav-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Main Layout */
.bmr-single-page-container {
    margin-bottom: 4rem;
}

.bmr-single-page-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}

/* Content Section */
.bmr-single-page-content {
    background: white;
}

.bmr-single-content-wrapper {
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow-x: hidden;
}

.bmr-event-content-section {
    margin-bottom: 3rem;
    scroll-margin-top: 150px;
}

.bmr-event-section-header {
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--primary-color);
    /* padding-bottom: 0.75rem; */
    /* font-size: smaller; */
    padding-left: 5px;
}

.bmr-event-content-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.content-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    max-width: 100%;
    overflow-x: auto;
    word-wrap: break-word;
}

/* Fix images overflow and stretching */
.content-text img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
    margin: 1rem auto;
    object-fit: contain;
}

.content-text iframe,
.content-text video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* Override inline width/height styles from TinyMCE */
.content-text img[style*="width"] {
    width: auto !important;
    max-width: 100% !important;
}

.content-text img[style*="height"] {
    height: auto !important;
}

/* Fix tables overflow */
.content-text table {
    max-width: 100% !important;
    table-layout: auto;
    word-wrap: break-word;
    overflow-x: auto;
    display: block;
}

.content-text h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--text-dark);
}

.content-text h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: var(--text-dark);
}

.content-text ul, .content-text ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.content-text li {
    margin-bottom: 0.5rem;
}

.content-text p {
    margin-bottom: 1rem;
}

/* Pricing Table Styles - Simple & Clean */
.bmr-pricing-phase-info {
    background: var(--gray-100);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.bmr-phase-badge {
    display: inline-block;
    background: var(--text-dark);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    margin-right: 0.5rem;
}

.bmr-phase-period {
    color: var(--text-gray);
    font-size: 14px;
}

.bmr-pricing-table {
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    overflow: hidden;
}

.bmr-pricing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
}

.bmr-pricing-row:last-child {
    border-bottom: none;
}

.bmr-pricing-distance {
    display: flex;
    flex-direction: column;
}

.bmr-distance-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.bmr-distance-km {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.bmr-pricing-price {
    text-align: right;
}

.bmr-price-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.bmr-price-free {
    font-size: 1rem;
    font-weight: 600;
    color: var(--success);
}

.bmr-pricing-note {
    margin-top: 1.5rem;
    padding: 0.875rem 1rem;
    background: var(--gray-100);
    border-radius: 6px;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-gray);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .bmr-pricing-row {
        padding: 0.875rem 1rem;
    }

    .bmr-distance-name {
        font-size: 0.9375rem;
    }

    .bmr-price-amount {
        font-size: 1.125rem;
    }
}

/* Gallery Grid - Modern Professional Design */
.bmr-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.bmr-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 16/10;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    background: var(--gray-100);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.bmr-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.08);
}

.bmr-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

/* Prevent lightbox image overflow */
.glightbox-container .gslide-image img, 
.glightbox-clean .gslide-image img {
    max-width: 100vw !important;
    max-height: 85vh !important;
    height: auto !important;
    width: auto !important;
}

.bmr-gallery-item:hover img {
    transform: scale(1.05);
}

/* Subtle overlay - chỉ hiển thị khi hover */
.bmr-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.02);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.bmr-gallery-item:hover .bmr-gallery-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.08);
}

/* Loading placeholder */
.bmr-gallery-item img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Distance Grid */
.distance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.distance-card {
    background: var(--gray-100);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.distance-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.2);
}

.distance-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.distance-desc {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
}

.distance-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Expandable Content */
.expandable-content {
    max-height: none;
    overflow: visible;
    transition: max-height 0.5s ease-out;
}

.expandable-content.collapsed {
    max-height: 0;
    overflow: hidden;
}

/* Expand Button */
.expand-btn {
    padding: 0.875rem 2rem;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.expand-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
}

.widget-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}


/* Registration Widget */
.registration-widget {
    text-align: center;
}

.widget-price-display {
    margin-bottom: 1.5rem;
    background: #FFF9F0;
    padding: 20px 16px;
    border-radius: 12px;
}

.widget-price-label {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.widget-price-value {
    font-size: 2rem;
    font-weight: 800;
    color: #FF8C00;
    line-height: 1;
}

/* Action Buttons */
.action-buttons {
    width: 100%;
}

.action-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.register-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    padding: 1.1rem 1.5rem;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.4);
}

.group-btn {
    background: linear-gradient(135deg, #FFC107, #F39C12);
    color: white;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.group-btn:hover {
    background: linear-gradient(135deg, #FFD54F, #FFA000);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.bmr-upcoming-btn {
    background: var(--gray-400);
    color: white;
    cursor: not-allowed;
}

.bmr-closed-btn {
    background: var(--gray-400);
    color: white;
    cursor: not-allowed;
}

.save-btn {
    background: transparent;
    color: #333;
    border: 2px solid transparent;
    border-radius: 8px;
    background-image: linear-gradient(white, white), linear-gradient(135deg, rgb(255, 215, 0), rgb(255, 165, 0));
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    box-shadow: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.save-btn svg {
    stroke: #ef4444;
    fill: none;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.save-btn:hover {
    background-image: linear-gradient(#fffbeb, #fffbeb), linear-gradient(135deg, rgb(255, 215, 0), rgb(255, 165, 0));
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
}

.save-btn.saved svg {
    fill: #ef4444;
    stroke: none;
}

.save-btn.saved:hover {
    background-image: linear-gradient(#fffbeb, #fffbeb), linear-gradient(135deg, rgb(255, 215, 0), rgb(255, 165, 0));
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
}

/* Mobile Sticky Register Bar */
.bmr-mobile-sticky-register {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    z-index: 999;
}

.bmr-mobile-event-details {
    background: var(--gray-100);
    padding: 0 1rem;
    border-bottom: 1px solid var(--border-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    opacity: 0;
}

.bmr-mobile-event-details.expanded {
    max-height: 200px;
    padding: 1rem;
    opacity: 1;
}

.bmr-mobile-event-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.bmr-mobile-event-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.bmr-mobile-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.bmr-mobile-register-container {
    padding: 0.75rem 1rem;
}

.bmr-mobile-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.bmr-mobile-price-section {
    flex: 1;
    cursor: pointer;
}

.bmr-mobile-price-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.bmr-mobile-price-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
}

.bmr-mobile-price-arrow {
    font-size: 0.625rem;
}

.bmr-mobile-register-btn {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.bmr-mobile-group-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #FFC107, #F39C12);
    color: white;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.bmr-mobile-status-btn {
    padding: 0.875rem 1.5rem;
    background: var(--gray-400);
    color: white;
    border-radius: 8px;
    font-weight: 700;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .bmr-event-hero-title {
        font-size: 1.75rem;
    }

    .bmr-event-hero-subtitle {
        font-size: 1rem;
    }

    .bmr-event-hero-content {
        padding: 1rem;
    }

    .bmr-event-hero-image {
        height: 220px;
    }

    .bmr-single-page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: block !important; /* Hiển thị sidebar trên mobile */
        position: static !important; /* Không sticky trên mobile, hiển thị xuống dưới */
        margin-top: 2rem; /* Thêm khoảng cách phía trên */
    }

    .bmr-single-content-wrapper {
        padding: 1.5rem;
    }

    .bmr-event-content-title {
        font-size: 1.5rem;
    }

    .content-text h3 {
        font-size: 1.25rem;
    }

    .bmr-nav-tab {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }

    .distance-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bmr-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .bmr-gallery-item {
        border-radius: 6px;
    }

    .bmr-mobile-sticky-register {
        display: block;
    }

    .bmr-single-page-container {
        margin-bottom: 20px;
    }

    .countdown-timer {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.375rem;
    }

    .countdown-item {
        padding: 0.75rem 0.375rem;
    }

    .countdown-value {
        font-size: 1.25rem;
    }

    .countdown-unit {
        font-size: 0.625rem;
    }
}

@media (max-width: 480px) {
    .bmr-gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .bmr-gallery-item {
        border-radius: 6px;
    }
    .bmr-event-hero-title {
        font-size: 1.375rem;
    }
    .bmr-event-hero-subtitle { font-size: 0.9375rem; }
    .bmr-event-hero-content { padding: 1rem; }
    .bmr-event-hero-image { height: 200px; }
    .bmr-event-content-title {
        font-size: 1.125rem;
    }

    .distance-grid {
        grid-template-columns: 1fr;
    }

    .bmr-nav-tabs {
        padding: 0;
    }

    .bmr-nav-tab {
        padding: 0.625rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* ========================================
   SIDEBAR WIDGETS - EXACT SCREENSHOT MATCH
   ======================================== */

/* Sidebar Container */
.sidebar {
    position: sticky;
    top: 120px;
}

/* Widget Cards */
.widget-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
}

/* ============ COUNTDOWN WIDGET ============ */
.countdown-widget {
    padding: 0;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    text-align: center;
}

.countdown-label {
    background: transparent;
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 1rem 1.25rem;
    text-align: center;
    margin: 0;
    opacity: 0.95;
}

.countdown-timer {
    background: transparent;
    padding: 0 1rem 1.5rem 1rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 0.5rem;
}

.countdown-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    display: block;
    margin-bottom: 0.25rem;
}

.countdown-unit {
    font-size: 0.625rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* ============ PRICE WIDGET ============ */
.registration-widget {
    padding: 0;
}

.widget-price-display {
    background: var(--gold-light);
    padding: 1.75rem 1.5rem;
    text-align: center;
}

.widget-price-label {
    font-size: 0.75rem;
    color: var(--gray-700);
    font-weight: 600;
    margin-bottom: 0.125rem;
    display: block;
}

.widget-price-value {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--gold-dark);
    line-height: 1;
    display: block;
    margin-bottom: 0;
}

.price-next-phase {
    font-size: 0.75rem;
    color: #777;
    margin-top: 0.875rem;
    line-height: 1.6;
    display: block;
}

.price-next-phase strong {
    font-weight: 700;
    color: #444;
}

.price-next-phase .price-increase {
    color: #FF4444;
    font-weight: 700;
}

/* ============ ACTION BUTTONS ============ */
.action-buttons {
    width: 100%;
    padding: 0 1rem 1rem 1rem;
}

.action-btn {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 0;
}

.register-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    box-shadow: 0 4px 14px rgba(245, 124, 0, 0.35);
    padding: 17.6px 20px;  /* 10% increase from 16px */
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 124, 0, 0.45);
}

.group-btn {
    background: linear-gradient(135deg, #FFC107, #F39C12);
    color: white;
    padding: 17.6px 20px;
    box-shadow: 0 4px 14px rgba(243, 156, 18, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.group-btn:hover {
    background: linear-gradient(135deg, #FFD54F, #FFA000);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.45);
}

.save-btn {
    background: transparent;
    color: #333;
    border: 2px solid transparent;
    border-radius: 8px;
    background-image: linear-gradient(white, white), linear-gradient(135deg, rgb(255, 215, 0), rgb(255, 165, 0));
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    box-shadow: none;
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.save-btn svg {
    stroke: #ef4444;
    fill: none;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.save-btn:hover {
    background-image: linear-gradient(#fffbeb, #fffbeb), linear-gradient(135deg, rgb(255, 215, 0), rgb(255, 165, 0));
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
}

.save-btn.saved svg {
    fill: #ef4444;
    stroke: none;
}

.save-btn.saved:hover {
    background-image: linear-gradient(#fffbeb, #fffbeb), linear-gradient(135deg, rgb(255, 215, 0), rgb(255, 165, 0));
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
}

.bmr-upcoming-btn,
.bmr-closed-btn {
    background: #E5E5E5;
    color: #999;
    cursor: not-allowed;
}

/* ============ CONTACT WIDGET ============ */
.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 16px;
}

/* ============ MOBILE RESPONSIVE ============ */
@media (max-width: 768px) {
    .sidebar {
        display: block !important; /* Hiển thị sidebar trên mobile */
        position: static !important; /* Không sticky trên mobile, hiển thị xuống dưới */
    }
    
    .countdown-value {
        font-size: 30px;
    }
    
    .countdown-item {
        padding: 10px 6px;
    }
    
    .widget-price-value {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .countdown-value {
        font-size: 26px;
    }

    .countdown-unit {
        font-size: 10px;
    }
}

/* Form Selection Options in Modal */
.bmr-form-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bmr-form-option {
    width: 100%;
    padding: 1.25rem;
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.bmr-form-option:hover {
    border-color: var(--primary-color);
    background: rgba(255, 165, 0, 0.05);
    transform: translateX(4px);
}

.bmr-form-option-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.bmr-form-option-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.4;
}

/* Modal Styles */
.bmr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.bmr-modal.active {
    display: flex;
}

.bmr-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: bmrModalFadeIn 0.3s ease;
}

@keyframes bmrModalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bmr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.bmr-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.bmr-modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-gray);
}

.bmr-modal-close:hover {
    background: var(--gray-200);
    transform: rotate(90deg);
}

.bmr-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.bmr-modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 1.25rem;
}

.bmr-distance-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bmr-distance-option {
    width: 100%;
    padding: 1.25rem;
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.bmr-distance-option:hover {
    border-color: var(--primary-color);
    background: rgba(255, 165, 0, 0.05);
    transform: translateX(4px);
}

.bmr-distance-option-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.bmr-distance-option-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.bmr-distance-option-km {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

.bmr-distance-option-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bmr-distance-option-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.bmr-distance-option-slots {
    font-size: 0.85rem;
    color: var(--success-color);
    font-weight: 500;
}

/* Mobile Adjustments for Modal */
@media (max-width: 768px) {
    .bmr-modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 5vh 0; /* Thêm margin */
    }

    .bmr-modal-header {
        padding: 1rem;
        flex-shrink: 0; /* Header không co lại */
    }

    .bmr-modal-title {
        font-size: 1.125rem;
        line-height: 1.3;
    }

    .bmr-modal-body {
        padding: 1rem;
        overflow-y: auto !important; /* Force scroll */
        max-height: calc(90vh - 100px); /* Trừ header */
        -webkit-overflow-scrolling: touch;
    }

    .bmr-modal-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .bmr-distance-option,
    .bmr-form-option {
        padding: 0.875rem;
        font-size: 0.9375rem;
    }

    .bmr-distance-option-name,
    .bmr-form-option-name {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .bmr-distance-option-price {
        font-size: 1.125rem;
    }
}

/* Extra Small Mobile - Màn hình rất nhỏ */
@media (max-width: 480px) {
    .bmr-modal-content {
        width: 98%;
        max-height: 95vh; /* Tăng lên 95vh */
        margin: 2.5vh 0; /* Giảm margin */
    }

    .bmr-modal-header {
        padding: 0.75rem;
        flex-shrink: 0;
        border-bottom: 1px solid var(--gray-200);
    }

    .bmr-modal-title {
        font-size: 0.9375rem; /* ~15px */
        line-height: 1.3;
    }

    .bmr-modal-close {
        width: 28px;
        height: 28px;
        font-size: 1.5rem;
        flex-shrink: 0;
    }

    .bmr-modal-body {
        padding: 0.75rem;
        overflow-y: auto !important;
        max-height: calc(95vh - 80px); /* Trừ header */
        -webkit-overflow-scrolling: touch;
    }

    .bmr-modal-subtitle {
        font-size: 0.8125rem;
        margin-bottom: 0.625rem;
        line-height: 1.4;
    }

    .bmr-distance-options,
    .bmr-form-options {
        gap: 0.5rem;
    }

    .bmr-distance-option,
    .bmr-form-option {
        padding: 0.625rem;
        border-radius: 6px;
    }

    .bmr-distance-option-name,
    .bmr-form-option-name {
        font-size: 0.875rem; /* ~14px */
        margin-bottom: 0.375rem;
        line-height: 1.3;
    }

    .bmr-form-option-desc {
        font-size: 0.75rem; /* ~12px */
        line-height: 1.4;
        margin-top: 0.25rem;
    }

    .bmr-distance-option-header {
        margin-bottom: 0.375rem;
    }

    .bmr-distance-option-km {
        font-size: 0.75rem; /* ~12px */
    }

    .bmr-distance-option-footer {
        font-size: 0.75rem;
        margin-top: 0.375rem;
    }

    .bmr-distance-option-price {
        font-size: 0.9375rem; /* ~15px */
        font-weight: 700;
    }

    .bmr-distance-option-slots {
        font-size: 0.6875rem; /* ~11px */
    }
}
