/**
 * Giao diện chi tiết sự kiện + đặt vé — bám theo MVC Finalproject (Event/Details + booking form).
 */
.mvc-event-detail,
.mvc-booking-page {
    font-family: 'UTM Avo';
    color: #333;
}

/* —— Hero cover —— Ẩn banner lớn trên trang chi tiết */
.mvc-event-hero-wrap {
    display: none !important;
}

/* —— Về sự kiện —— */
.mvc-event-about-title {
    text-align: center;
    font-family: 'SVN-Bon Voyage';
    color: #000;
    font-weight: lighter;
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    margin-bottom: 1.75rem;
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
}

.mvc-event-about-content {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 0 1.25rem;
}

.mvc-event-description {
    max-width: 960px;
    line-height: 1.95;
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    text-align: justify;
}

/* —— Poster + info —— */
.mvc-event-detail-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.mvc-event-header {
    display: flex;
    gap: clamp(24px, 3vw, 40px);
    margin-bottom: 50px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Poster: vừa đủ nổi bật, nhường chỗ cho cột chữ lớn hơn */
.mvc-event-poster {
    flex-shrink: 0;
    width: clamp(260px, 30vw, 340px);
    max-width: 100%;
    aspect-ratio: 3 / 4;
    max-height: min(440px, 52vh);
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mvc-event-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 10px;
}

.mvc-event-info {
    flex: 1;
    min-width: min(100%, 280px);
    font-size: 1.05rem;
}

.mvc-event-title {
    font-size: clamp(1.85rem, 3.5vw, 2.85rem);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    line-height: 1.2;
    color: #8b5e3c;
    font-family: 'UTM Avo';
}

.mvc-event-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    font-style: italic;
    color: #555;
    margin-bottom: 22px;
    line-height: 1.45;
}

.mvc-event-details {
    font-size: clamp(1.1rem, 1.6vw, 16rem);
    line-height: 1.9;
    color: #3a3a3a;
    margin-bottom: 1.1rem;
}

.mvc-event-details p {
    margin-bottom: 0.75rem;
}

.mvc-event-detail-body p:last-child {
    margin-bottom: 0;
}

.mvc-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #ddd;
}

.mvc-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.4;
}

.mvc-meta-item i {
    color: #8b5e3c;
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 1.25em;
    text-align: center;
}

/* —— Video —— */
.mvc-event-media-section {
    margin: 50px 0;
}

.mvc-video-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
    background: #000;
    border: 3px solid #e8e8e8;
}

.mvc-video-wrapper iframe,
.mvc-video-wrapper video {
    display: block;
    width: 100%;
    min-height: 400px;
    border: none;
}

/* —— Giá khu vực (legend kiểu MVC) —— */
.mvc-price-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 2rem 0;
}

.mvc-price-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 20px;
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
}

.mvc-price-color {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #333;
    flex-shrink: 0;
}

.mvc-price-label { font-weight: 700; font-size: 0.9rem; color: #333; }
.mvc-price-amount { font-size: 0.85rem; color: #666; }

/* Ghế không bán (blocked) trên sơ đồ đặt vé */
#seatMap svg g.seat-blocked rect,
#seatMap svg g.seat-blocked path {
    stroke-dasharray: 3 2;
}

/* Ghế đang chọn — hiệu ứng lấp lánh */
@keyframes mvc-seat-selected-sparkle {
    0%, 100% {
        filter: drop-shadow(0 0 2px rgba(255, 200, 0, 0.65));
    }
    35% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 200, 0.95))
            drop-shadow(0 0 10px rgba(255, 165, 0, 0.75));
    }
    70% {
        filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.8))
            drop-shadow(0 0 14px rgba(255, 240, 150, 0.55));
    }
}

#seatMap svg g.selected:not(.booked) rect,
#seatMap svg g.selected:not(.booked) path {
    animation: mvc-seat-selected-sparkle 1.6s ease-in-out infinite;
    will-change: filter;
}

@media (prefers-reduced-motion: reduce) {
    #seatMap svg g.selected:not(.booked) rect,
    #seatMap svg g.selected:not(.booked) path {
        animation: none;
        filter: drop-shadow(0 0 4px rgba(255, 180, 0, 0.85));
    }
}

/* —— CTA đặt vé —— */
.mvc-event-cta-bar {
    text-align: center;
    padding: 2.5rem 1rem;
    margin: 2rem 0 3rem;
    background: linear-gradient(180deg, #fff 0%, #f8f5f0 100%);
    border-radius: 14px;
    border: 1px solid #efdfcf;
}

.mvc-btn-book-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #8b5e3c;
    color: #fff !important;
    padding: 16px 48px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    font-family: 'UTM Avo';
}

.mvc-btn-book-primary:hover {
    background: #6b4423;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mvc-btn-book-primary--disabled {
    background: #9a8f88;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.9;
}

.mvc-btn-book-primary--disabled:hover {
    background: #9a8f88;
    transform: none;
    box-shadow: none;
}

.mvc-btn-book-secondary {
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
    padding: 14px 28px;
    border-radius: 8px;
    border: 2px solid #8b5e3c;
    color: #8b5e3c !important;
    text-decoration: none;
    font-weight: 600;
}

.mvc-btn-book-secondary:hover {
    background: #faf6f2;
    color: #6b4423 !important;
}

/* —— Booking create page —— */
.mvc-booking-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
    align-items: start;
}

@media (max-width: 991px) {
    .mvc-booking-layout {
        grid-template-columns: 1fr;
    }
}

.mvc-booking-event-card {
    background: #fff;
    border-radius: 12px;
    border: 2px solid #e8e8e8;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mvc-booking-event-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 280px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: block;
}

.mvc-booking-event-card h2 {
    font-family: 'SVN-Bon Voyage';
    color: #8b5e3c;
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    font-weight: lighter;
}

.mvc-booking-form-card {
    background: #fff;
    border-radius: 12px;
    border: 2px solid #e8e8e8;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 1rem;
}

.mvc-booking-form-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #8b5e3c;
    margin: 0 0 1.25rem;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8e8e8;
    text-transform: uppercase;
}

.mvc-booking-form-card .input,
.mvc-booking-form-card .input input,
.mvc-booking-form-card .input select,
.mvc-booking-form-card .input textarea,
.mvc-booking-form-card select,
.mvc-booking-form-card textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    margin-bottom: 0.25rem;
    font-family: 'UTM Avo';
    box-sizing: border-box;
}

.mvc-booking-form-card fieldset {
    border: none;
    padding: 0;
    margin: 0 0 1rem;
}

.mvc-booking-form-card .input label {
    margin-bottom: 8px;
}

.mvc-booking-form-card .input:focus,
.mvc-booking-form-card select:focus {
    outline: none;
    border-color: #8b5e3c;
    box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.12);
}

.mvc-booking-form-card label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.mvc-booking-form-card .checkbox label {
    font-weight: 400;
    display: inline;
}

.mvc-booking-form-card .submit input[type="submit"],
.mvc-booking-form-card button[type="submit"] {
    width: 100%;
    background: #8b5e3c;
    color: #fff;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.5rem;
    font-family: 'UTM Avo';
    transition: all 0.3s;
}

.mvc-booking-form-card .submit input[type="submit"]:hover,
.mvc-booking-form-card button[type="submit"]:hover {
    background: #6b4423;
}

.mvc-booking-page-title {
    font-family: 'SVN-Bon Voyage';
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: #8b5e3c;
    margin: 1rem 0 1.5rem;
    text-transform: uppercase;
    font-weight: lighter;
}

/* —— Pay page (bank transfer / QR) —— */
.mvc-pay-page {
    width: 100%;
    max-width: 100%;
    padding: 0 clamp(0.75rem, 3vw, 1.5rem);
    box-sizing: border-box;
}

.mvc-booking-layout--pay {
    display: block;
    grid-template-columns: none;
    max-width: 1080px;
    margin: 0 auto 3rem;
    padding: 0;
}

.mvc-pay-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 1.75rem);
    align-items: stretch;
}

.mvc-pay-info-card,
.mvc-pay-qr-card {
    position: static;
    width: 100%;
    margin: 0;
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1.35rem, 3vw, 2rem);
    border-radius: 14px;
    min-height: 100%;
}

.mvc-pay-info-card {
    display: flex;
    flex-direction: column;
}

.mvc-pay-qr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, #faf7f3 100%);
}

.mvc-pay-timer {
    margin: 0 0 1.35rem;
    padding: 0.85rem 1rem;
    background: #fff5f5;
    border: 1px solid #f5c6c6;
    border-radius: 10px;
    color: #c0392b;
    font-size: clamp(1.05rem, 2.4vw, 1.2rem);
    line-height: 1.5;
}

.mvc-pay-timer strong {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.mvc-pay-timer--expired {
    background: #f5f5f5;
    border-color: #ddd;
    color: #666;
}

.mvc-pay-timer-icon {
    margin-right: 0.15rem;
}

.mvc-pay-section {
    margin-bottom: 1.35rem;
}

.mvc-pay-section-title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.08rem, 2.4vw, 1.22rem);
    font-weight: 700;
    color: #8b5e3c;
    line-height: 1.45;
    font-family: 'UTM Avo';
}

.mvc-pay-bank-lines {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: clamp(1.02rem, 2.2vw, 1.14rem);
    line-height: 1.7;
    color: #333;
}

.mvc-pay-bank-lines li {
    margin-bottom: 0.45rem;
    word-break: break-word;
}

.mvc-pay-bank-lines strong {
    color: #2c2c2c;
    font-weight: 700;
}

.mvc-pay-bank-lines li:last-child {
    margin-bottom: 0;
}

.mvc-pay-line-label {
    color: #666;
    margin-right: 0.2rem;
}

.mvc-pay-account-inline {
    color: #555;
    font-size: 0.95em;
}

.mvc-pay-transfer-content {
    word-break: break-all;
}

.mvc-pay-booking-summary {
    margin: 0;
    font-size: clamp(1.02rem, 2.2vw, 1.14rem);
    line-height: 1.65;
    color: #333;
}

.mvc-pay-booking-summary strong {
    color: #2c2c2c;
    font-weight: 700;
}

.mvc-pay-summary-sep {
    margin: 0 0.45rem;
    color: #ccc;
}

.mvc-pay-tip {
    margin: 0 0 1.35rem;
    padding: 0.9rem 1.05rem;
    background: #fffbf0;
    border: 1px solid #f0e0b8;
    border-radius: 10px;
    font-size: clamp(0.98rem, 2vw, 1.08rem);
    line-height: 1.6;
    color: #5c4a1f;
}

.mvc-pay-tip-icon {
    margin-right: 0.2rem;
}

.mvc-pay-qr-badge {
    margin: 0 0 0.35rem;
    font-size: clamp(1.05rem, 2.2vw, 1.18rem);
    font-weight: 700;
    color: #8b5e3c;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mvc-pay-qr-sublabel {
    margin: 0 0 1.15rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #a94442;
    font-weight: 600;
}

.mvc-pay-qr-frame {
    width: 100%;
    max-width: min(100%, 300px);
    padding: 0.65rem;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(139, 94, 60, 0.1);
}

.mvc-pay-qr-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.mvc-pay-qr-hint {
    margin: 0.9rem 0 0;
    font-size: clamp(0.92rem, 2vw, 1.02rem);
    color: #777;
}

.mvc-pay-qr-missing {
    margin: 1rem 0 0;
    color: #a94442;
    font-size: clamp(0.85rem, 2vw, 0.92rem);
    line-height: 1.5;
}

.mvc-pay-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid #eee;
}

.mvc-pay-form {
    margin: 0;
    width: 100%;
}

.mvc-pay-btn {
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    font-family: 'UTM Avo';
    font-size: clamp(1rem, 2.4vw, 1.12rem);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    white-space: normal;
    line-height: 1.4;
    min-height: 52px;
    padding: 14px 18px;
    height: auto;
    letter-spacing: normal;
    text-transform: none;
}

.mvc-pay-btn--primary {
    background: #8b5e3c !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700;
}

.mvc-pay-btn--primary:hover {
    background: #6b4423 !important;
}

.mvc-pay-btn--secondary {
    background: #fff !important;
    color: #8b5e3c !important;
    border: 2px solid #8b5e3c !important;
    font-weight: 600;
}

.mvc-pay-btn--secondary:hover {
    background: #faf6f2 !important;
    color: #6b4423 !important;
    border-color: #6b4423 !important;
}

@media (min-width: 769px) {
    .mvc-pay-qr-frame {
        max-width: min(100%, 280px);
    }
}

@media (max-width: 768px) {
    .mvc-pay-columns {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }

    .mvc-pay-qr-card {
        order: -1;
        width: 100%;
    }

    .mvc-pay-qr-frame {
        max-width: 300px;
    }

    .mvc-pay-booking-summary {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
    }

    .mvc-pay-summary-sep {
        display: none;
    }
}

@media (max-width: 576px) {
    .mvc-pay-page {
        padding: 0 0.65rem;
    }

    .mvc-pay-info-card,
    .mvc-pay-qr-card {
        padding: 1.25rem 1.15rem;
        border-radius: 12px;
    }

    .mvc-booking-page-title {
        margin: 0.75rem 0 1rem;
        padding: 0 0.25rem;
    }
}

/* —— Success —— */
.mvc-booking-success {
    max-width: 640px;
    margin: 3rem auto;
    padding: 2.5rem 2rem;
    background: linear-gradient(180deg, #ffffff 0%, #fdf9f4 100%);
    border-radius: 14px;
    border: 1px solid #ecdccc;
    text-align: center;
    box-shadow: 0 14px 40px rgba(107, 68, 35, 0.12);
}

.mvc-booking-success h2 {
    font-family: 'SVN-Bon Voyage';
    color: #8b5e3c;
    margin-bottom: 1rem;
}

.mvc-booking-success .order-code {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin: 1rem 0;
    padding: 0.65rem 1rem;
    background: #fff;
    border: 1px dashed #d8bfa5;
    border-radius: 10px;
}

.mvc-booking-success-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.mvc-booking-success-note {
    color: #666;
    font-size: 0.9rem;
    max-width: 480px;
    margin: 0 auto 0.85rem;
}

.mvc-booking-status-line {
    margin: 0.5rem auto 0;
    padding: 0.75rem 1rem;
    max-width: 520px;
    border-radius: 10px;
    background: #f8f2ea;
    color: #5f4128;
}

.mvc-booking-pending-note {
    max-width: 500px;
    margin: 0.7rem auto 0;
    font-size: 0.95rem;
}

.mvc-booking-meta-grid {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
    text-align: left;
}

.mvc-booking-meta-grid p {
    display: flex;
    justify-content: space-between;
    gap: 0.9rem;
    margin: 0;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #efe1d2;
    color: #444;
}

.mvc-booking-meta-grid span {
    color: #7a6652;
}

.mvc-booking-meta-grid strong {
    color: #3f2c1f;
}

.mvc-booking-seats {
    margin-top: 1.25rem;
    text-align: left;
    background: #fff;
    border: 1px solid #efe1d2;
    border-radius: 12px;
    padding: 1rem 1rem 0.85rem;
}

.mvc-booking-seats ul {
    margin: 0.65rem 0 0;
    padding: 0;
    list-style: none;
    color: #444;
    display: grid;
    gap: 0.5rem;
}

.mvc-booking-seats li {
    border-left: 3px solid #d4b497;
    background: #faf6f1;
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
}

.mvc-ticket-qr-block {
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #ecdccc;
}

.mvc-ticket-qr-title {
    color: #8b5e3c;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

#booking-ticket-qr {
    display: flex;
    justify-content: center;
}

.mvc-ticket-qr-hint {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.6rem;
}

.mvc-ticket-qr-missing {
    color: #a94442;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.mvc-booking-success-actions {
    margin-top: 1.7rem;
}

@media (max-width: 576px) {
    .mvc-booking-success {
        margin: 1rem auto 2rem;
        padding: 1.4rem 1rem;
        border-radius: 12px;
    }

    .mvc-booking-success .order-code {
        font-size: 1.05rem;
    }

    .mvc-booking-meta-grid p {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .mvc-event-header { flex-direction: column; align-items: center; }
    .mvc-event-poster {
        width: min(100%, 380px);
        max-height: min(400px, 58vh);
        aspect-ratio: 3 / 4;
    }
    .mvc-event-info {
        width: 100%;
        text-align: left;
    }
}

/* —— Seat selection (MVC-style map + sidebar) —— */
.mvc-event-inline-seats {
    margin: 2rem 0 1rem;
}

.mvc-event-inline-seats > .mvc-section-title {
    text-align: center;
    margin-bottom: 1.25rem;
}

.mvc-event-inline-seats .mvc-seat-booking-layout {
    padding: 0;
    margin-bottom: 1rem;
}

.mvc-event-seat-continue {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.mvc-event-seat-continue[hidden] {
    display: none;
}

.mvc-event-seat-hint {
    margin: 0.8rem 0;
    font-size: 0.9rem;
    color: #666;
}

.mvc-seat-booking-page .mb-3 {
    margin-bottom: 1rem;
}

.mvc-seat-booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 1.25rem;
    align-items: start;
    max-width: 1880px;
    margin: 0 auto 3rem;
    padding: 0 0.5rem;
}

@media (max-width: 1200px) {
    .mvc-seat-booking-layout {
        grid-template-columns: 1fr;
    }
    .mvc-booking-sidebar-seat {
        position: static !important;
    }
}

.mvc-seat-selection-section {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

@media (min-width: 1440px) {
    .mvc-seat-booking-layout {
        grid-template-columns: minmax(0, 1fr) 360px;
    }
}

/* —— Seat booking sidebar form —— */
.mvc-booking-sidebar-seat .mvc-booking-event-card {
    padding: 1rem 1.15rem;
}

.mvc-booking-sidebar-seat .mvc-booking-event-card img {
    max-height: 100px;
    object-fit: cover;
}

.mvc-booking-sidebar-seat .mvc-sidebar-event-title,
.mvc-booking-sidebar-seat .mvc-booking-event-card h2 {
    font-family: 'UTM Avo';
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0.5rem 0 0;
    line-height: 1.45;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #8b5e3c;
}

.mvc-booking-sidebar-seat .mvc-booking-summary-card {
    padding: 1rem 1.15rem;
    margin-bottom: 0.85rem;
}

.mvc-booking-sidebar-seat .mvc-booking-summary-card h3 {
    font-family: 'UTM Avo';
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    letter-spacing: 0.03em;
    text-transform: none;
    line-height: 1.4;
}

.mvc-seat-booking-form {
    padding: 1.15rem 1.2rem;
    position: static;
}

.mvc-seat-booking-form h3 {
    font-family: 'UTM Avo';
    font-size: 0.98rem;
    font-weight: 700;
    margin: 0 0 0.85rem;
    padding-bottom: 0.55rem;
    letter-spacing: 0.03em;
    text-transform: none;
    line-height: 1.4;
    color: #8b5e3c;
}

.mvc-seat-booking-form fieldset {
    margin: 0 0 0.6rem;
}

.mvc-seat-booking-form .input label {
    font-size: 0.86rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #555;
}

.mvc-seat-booking-form .input input {
    padding: 0.55rem 0.7rem;
    font-size: 0.98rem;
    border-radius: 8px;
    border-color: #ddd;
    margin-bottom: 0;
}

.mvc-seat-booking-form .input input::placeholder {
    color: #aaa;
    font-weight: 400;
}

.mvc-form-row--half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-bottom: 0.15rem;
}

.mvc-form-row--half fieldset {
    margin-bottom: 0.5rem;
}

.mvc-seat-booking-terms {
    margin: 0.75rem 0 1rem;
    padding: 1rem 1.15rem;
    background: #faf7f3;
    border: 1px solid #efe5d8;
    border-radius: 10px;
}

.mvc-seat-booking-terms-label {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0;
    font-weight: 500;
    font-size: clamp(1.05rem, 2.6vw, 1.2rem);
    line-height: 1.6;
    color: #333;
    cursor: pointer;
}

.mvc-seat-booking-terms-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 1.45rem;
    height: 1.45rem;
    min-width: 1.45rem;
    min-height: 1.45rem;
    margin: 0;
    accent-color: #8b5e3c;
    cursor: pointer;
}


.mvc-seat-booking-form .mvc-seat-submit-btn,
.mvc-seat-booking-form button.mvc-seat-submit-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    margin-top: 0;
    padding: 0.85rem 1rem !important;
    min-height: 48px;
    height: auto !important;
    line-height: 1.35 !important;
    font-size: 1rem;
    font-family: 'UTM Avo';
    letter-spacing: 0.04em;
    text-transform: none;
    border-radius: 8px;
    background: #8b5e3c !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700;
    cursor: pointer;
    white-space: normal;
    text-align: center;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.mvc-seat-booking-form .mvc-seat-submit-btn:hover:not(:disabled),
.mvc-seat-booking-form button.mvc-seat-submit-btn:hover:not(:disabled) {
    background: #6b4423 !important;
}

.mvc-seat-booking-form .mvc-seat-submit-btn:disabled,
.mvc-seat-booking-form button.mvc-seat-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 576px) {
    .mvc-form-row--half {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.mvc-section-title {
    text-align: center;
    font-family: 'UTM Avo';
    font-size: 1.35rem;
    font-weight: 700;
    color: #8b5e3c;
    margin-bottom: 1.5rem;
    text-transform: none;
    letter-spacing: 0.04em;
    line-height: 1.35;
}

.mvc-stage-label {
    background: linear-gradient(to bottom, #8b5e3c, #6b4423);
    color: #fff;
    text-align: center;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* .mvc-seat-map-container — khung map: hall-seat-canvas.css (load trước file này) */

.mvc-zoom-controls {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid #e0e0e0;
}

.mvc-zoom-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b5e3c;
    transition: all 0.2s ease;
}

.mvc-zoom-btn:hover {
    background: #8b5e3c;
    color: #fff;
    border-color: #8b5e3c;
}

.mvc-zoom-level {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
    margin-top: 4px;
}

.mvc-seat-map-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* transform-origin top-left: khớp translate(pan) scale(zoom) trong booking-seat-map.js (zoom tại con trỏ) */
.mvc-seat-map-svg-container {
    transform-origin: 0 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mvc-seat-map-inner {
    width: 100%;
    min-height: var(--hall-canvas-inner-min-height, 480px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.mvc-seat-map-container svg {
    display: block;
    max-width: 100%;
    height: auto;
    shape-rendering: geometricPrecision;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: subpixel-antialiased;
}

.mvc-seat-map-container svg text {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.mvc-seat-legend-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.mvc-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mvc-legend-box {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 2px solid #333;
}

.mvc-legend-box--reserved {
    background: #f4c26b;
    border-color: #9b6a19;
}

.mvc-seat-sync-banner {
    margin: 0 0 0.75rem;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.45;
    background: #e8f4fc;
    border: 1px solid #b8d9ee;
    color: #1a4a6e;
}

.mvc-seat-sync-banner--visible {
    display: block;
}

.mvc-seat-sync-banner--error {
    background: #fff3e0;
    border-color: #ffcc80;
    color: #8a4b00;
}

.mvc-seat-map-container svg .seat-reserved {
    animation: mvc-seat-reserved-pulse 2.2s ease-in-out infinite;
}

@keyframes mvc-seat-reserved-pulse {
    0%,
    100% {
        opacity: 0.45;
    }
    50% {
        opacity: 0.72;
    }
}

.mvc-booking-sidebar-seat {
    position: sticky;
    top: 1rem;
}

.mvc-booking-summary-card {
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mvc-booking-summary-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #8b5e3c;
    margin: 0 0 1rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8e8e8;
    text-transform: uppercase;
}

.mvc-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.mvc-summary-row.mvc-summary-seats-list {
    flex-direction: column;
    align-items: stretch;
}

.mvc-summary-total {
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e8e8e8;
}

.mvc-selected-seats-display {
    margin-top: 6px;
    max-height: 220px;
    overflow-y: auto;
}

/* Ghế đã chọn — cùng ngôn ngữ với admin hall_layout (list-group + dot + badge) */
.mvc-selected-seats-empty {
    display: block;
    color: #999;
    font-size: 0.9rem;
    padding: 10px 4px;
}

.mvc-selected-seats-list {
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.375rem;
    overflow: hidden;
    background: #fff;
}

.mvc-selected-seat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-size: 0.9rem;
}

.mvc-selected-seat-item:last-child {
    border-bottom: none;
}

.mvc-selected-seat-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mvc-selected-seat-dot {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #ccc;
}

.mvc-selected-seat-text {
    min-width: 0;
}

.mvc-selected-seat-code {
    display: block;
    color: #212529;
    font-weight: 700;
    line-height: 1.2;
}

.mvc-selected-seat-zone {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 2px;
}

.mvc-selected-seat-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.mvc-selected-seat-badge {
    display: inline-block;
    padding: 0.25em 0.5em;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    background-color: #6c757d;
    border-radius: 0.25rem;
    white-space: nowrap;
}

.mvc-selected-seat-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background: #fff;
    color: #6c757d;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mvc-selected-seat-remove:hover {
    background: #f8f9fa;
    color: #dc3545;
    border-color: #dc3545;
}
