/* ==========================================================================
   MYTRA PUBLIC EVENT DETAIL PAGE (AUTHENTIC MYTRA DESIGN SYSTEM)
   Brand Colors: Navy #063149, Blue #01517a, Red #d81f26, Border #dfe9ee
   Clean, Human, Corporate & Cohesive Layout
   ========================================================================== */

.mytra-public-event-detail {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #153243;
    background-color: #f8fafc;
    padding-top: 130px;
    padding-bottom: 80px;
    min-height: calc(100vh - 200px);
}

.mytra-public-event-detail *,
.mytra-public-event-detail *::before,
.mytra-public-event-detail *::after {
    box-sizing: border-box;
}

/* Ensure all SVGs in the detail page have proper stroke and no black fill */
.mytra-public-event-detail svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 1. Breadcrumbs */
.mytra-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13.5px;
    color: #687f8d;
    flex-wrap: wrap;
}

.mytra-breadcrumb a {
    color: #687f8d;
    text-decoration: none;
    font-weight: 500;
    transition: color 150ms ease;
}

.mytra-breadcrumb a:hover {
    color: #01517a;
}

.mytra-breadcrumb-separator {
    color: #cbd5e1;
    user-select: none;
}

.mytra-breadcrumb-current {
    color: #063149;
    font-weight: 600;
    max-width: 380px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mytra-back-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #01517a;
    text-decoration: none;
    padding: 7px 14px;
    background: #ffffff;
    border: 1px solid #dfe9ee;
    border-radius: 8px;
    transition: all 150ms ease;
    box-shadow: 0 2px 6px rgba(6, 49, 73, 0.04);
}

.mytra-back-link-btn:hover {
    background: #f0f7fa;
    color: #003e5e;
    border-color: #c7dce5;
    transform: translateX(-2px);
}

/* 2. Cohesive MyTRA Card System */
.mytra-event-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #dfe9ee;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(6, 49, 73, 0.05);
    transition: border-color 180ms ease, box-shadow 180ms ease;
    overflow: hidden;
}

/* Hero Poster Frame */
.mytra-hero-card {
    padding: 24px;
}

.mytra-poster-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e5edf1;
    background: #f1f5f9;
    margin-bottom: 24px;
}

.mytra-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Badges */
.mytra-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.mytra-pill-badge--cat {
    background: rgba(1, 81, 122, 0.08);
    color: #01517a;
    border: 1px solid rgba(1, 81, 122, 0.2);
}

.mytra-pill-badge--type {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.mytra-pill-badge--status {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.mytra-status-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.mytra-badge--warning {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.mytra-badge--danger {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.mytra-badge--neutral {
    background: #f8fafc;
    color: #64748b;
    border-color: #cbd5e1;
}

/* Event Title & Header Typography */
.mytra-event-main-title {
    color: #063149;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.mytra-event-lead {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.mytra-organizer-row {
    color: #687f8d;
    font-size: 13px;
}

.mytra-organizer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eef6fa;
    color: #01517a;
    flex-shrink: 0;
}

.mytra-organizer-label strong {
    color: #063149;
    font-weight: 600;
}

/* Section Headings */
.mytra-card-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #063149;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.mytra-heading-accent {
    width: 3.5px;
    height: 16px;
    border-radius: 99px;
    background: #01517a;
    flex-shrink: 0;
}

/* Narrative Section Divider */
.mytra-narrative-divider {
    border: 0;
    border-top: 1px solid #e2e8f0;
    opacity: 1;
    margin: 26px 0;
    display: block;
    width: 100%;
}

/* Prose Text */
.mytra-prose {
    color: #334e5d;
    font-size: 15px;
    line-height: 1.8;
    word-break: break-word;
}

.mytra-prose p {
    margin-bottom: 14px;
}

.mytra-prose p:last-child {
    margin-bottom: 0;
}

.mytra-prose ul {
    margin: 10px 0 16px;
    padding-left: 24px;
    list-style-type: disc !important;
}

.mytra-prose ol {
    margin: 10px 0 16px;
    padding-left: 24px;
    list-style-type: decimal !important;
}

.mytra-prose li {
    display: list-item !important;
    list-style-type: inherit !important;
    margin-bottom: 6px;
}

.mytra-prose li:last-child {
    margin-bottom: 0;
}

.mytra-prose strong,
.mytra-prose b {
    font-weight: 550;
    color: #1a2e3b;
}

/* Agenda / Rundown */
.mytra-agenda-list {
    display: flex;
    flex-direction: column;
}

.mytra-agenda-row {
    display: flex;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.mytra-agenda-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mytra-agenda-time-col {
    flex-shrink: 0;
}

.mytra-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: #01517a;
    background: #eef6fa;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #d8eaf3;
    white-space: nowrap;
}

.mytra-agenda-body {
    flex: 1;
}

.mytra-agenda-title {
    font-size: 14.5px;
    font-weight: 550;
    color: #063149;
    margin: 0 0 6px;
}

.mytra-agenda-speaker,
.mytra-agenda-room {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    margin-right: 14px;
    margin-bottom: 4px;
}

.mytra-agenda-desc {
    font-size: 13.5px;
    color: #475569;
    margin: 6px 0 0;
    line-height: 1.6;
}

/* Speakers */
.mytra-speaker-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.mytra-speaker-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(6, 49, 73, 0.08);
    flex-shrink: 0;
}

.mytra-speaker-avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #01517a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.mytra-speaker-name {
    font-size: 14.5px;
    font-weight: 600;
    color: #063149;
    margin: 0 0 2px;
}

.mytra-speaker-position {
    display: block;
    font-size: 12.5px;
    color: #687f8d;
    line-height: 1.4;
}

.mytra-speaker-desc {
    font-size: 12px;
    color: #475569;
    margin: 4px 0 0;
    line-height: 1.5;
}

/* Venue & Execution Info */
.mytra-venue-container,
.mytra-venue-content {
    background: transparent;
    border: none;
    padding: 0;
}

.mytra-venue-badge-icon {
    width: 28px;
    height: 28px;
    background: transparent;
    color: #01517a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.mytra-venue-title {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

.mytra-venue-subtitle {
    font-size: 13.5px;
    color: #687f8d;
    line-height: 1.5;
}

.mytra-venue-notice {
    font-size: 13px;
    color: #0284c7;
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 6px;
}

/* Contact Pill */
.mytra-contact-pill,
.mytra-contact-content {
    background: transparent;
    border: none;
    padding: 0;
}

.mytra-contact-icon-box {
    width: 28px;
    height: 28px;
    background: transparent;
    color: #01517a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mytra-contact-val {
    font-size: 14.5px;
    font-weight: 600;
    color: #063149;
}

/* 3. Sticky Ticketing Sidebar (Right Column) */
.mytra-ticket-sidebar-sticky {
    position: sticky;
    top: 110px;
}

.mytra-ticket-widget {
    padding: 26px;
    border: 1px solid #dfe9ee;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(6, 49, 73, 0.08);
}

.mytra-widget-caption {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #687f8d;
}

.mytra-widget-price {
    font-size: 18px;
    font-weight: 600;
    color: #063149;
    letter-spacing: -0.01em;
}

.mytra-quota-badge {
    font-size: 11.5px;
    font-weight: 500;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 3px 10px;
    border-radius: 99px;
}

/* Specs Items in Widget */
.mytra-spec-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #eef6fa;
    color: #01517a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mytra-spec-icon-box svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.mytra-spec-label {
    font-size: 11.5px;
    color: #687f8d;
    font-weight: 450;
}

.mytra-spec-val {
    font-size: 13.5px;
    font-weight: 500;
    color: #063149;
    line-height: 1.4;
}

/* Tier Preview Cards */
.mytra-tier-section-title {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    color: #687f8d;
    margin-bottom: 0;
}

.mytra-tier-stock-plain {
    font-size: 11.5px;
    font-weight: 500;
    color: #64748b;
    background: transparent;
    border: none;
    padding: 0;
    line-height: 1.2;
}

.mytra-tier-card {
    background: #ffffff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(6, 49, 73, 0.05);
    transition: all 140ms ease;
}

.mytra-tier-card:hover:not(.is-disabled) {
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(6, 49, 73, 0.08);
}

.mytra-tier-card.is-disabled {
    opacity: 0.6;
    background: #f8fafc;
    box-shadow: none;
    border: none;
}

.mytra-tier-name {
    font-size: 13px;
    color: #063149;
    font-weight: 500;
}

.mytra-tier-class-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 500;
    color: #01517a;
    background: #eef4f8;
    padding: 1px 6px;
    border-radius: 4px;
}

.mytra-tier-price strong,
.mytra-tier-price .mytra-tier-amount {
    font-size: 13.5px;
    font-weight: 600;
    color: #01517a;
}

.mytra-tier-soldout {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    color: #dc2626;
    background: #fee2e2;
    padding: 1px 6px;
    border-radius: 4px;
}

/* ─── In-Widget Stepper & Quantity Picker ─── */
.mytra-tier-card.has-selected {
    border: none;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(6, 49, 73, 0.05);
}

.mytra-step-indicator-text {
    font-size: 11px;
    font-weight: 600;
    color: #01517a;
    background: #eef6fa;
    padding: 2px 8px;
    border-radius: 99px;
}

.mytra-selected-ticket-badge {
    font-size: 12.5px;
    font-weight: 600;
    color: #063149;
    background: transparent;
    border: none;
    padding: 0;
    max-width: 65%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    text-align: right;
}

.mytra-qty-picker {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #d1dfe6;
    border-radius: 8px;
    padding: 2px;
    gap: 2px;
}

.mytra-qty-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: #f1f6f9;
    color: #01517a;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 120ms ease;
    user-select: none;
}

.mytra-qty-btn:hover:not(:disabled) {
    background: #01517a;
    color: #ffffff;
}

.mytra-qty-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: #f8fafc;
    color: #94a3b8;
}

.mytra-qty-input {
    width: 28px;
    text-align: center;
    font-size: 13.5px;
    font-weight: 600;
    color: #063149;
    border: none;
    background: transparent;
    padding: 0;
    -moz-appearance: textfield;
}

.mytra-qty-input::-webkit-outer-spin-button,
.mytra-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Step 2 Form Styling */
.mytra-step-back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 0;
    color: #01517a;
    font-size: 12.5px;
    font-weight: 550;
    cursor: pointer;
    transition: color 120ms ease;
}

.mytra-step-back-link:hover {
    color: #003652;
    text-decoration: underline;
}

.mytra-order-summary-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: #063149;
    line-height: 1.5;
}

.mytra-field-label {
    display: block;
    font-size: 12px;
    font-weight: 550;
    color: #334e5d;
    margin-bottom: 4px;
}

.mytra-field-input {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #d1dfe6;
    border-radius: 8px;
    font-size: 13px;
    color: #063149;
    background: #ffffff;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.mytra-field-input:focus {
    border-color: #01517a;
    outline: none;
    box-shadow: none;
}

.mytra-field-input.is-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.mytra-field-hint {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 3px;
    line-height: 1.35;
}

.mytra-agree-check label {
    cursor: pointer;
    user-select: none;
}

/* Step 3: Informasi Pembelian & Konfirmasi */
.mytra-step3-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #063149;
}

.mytra-purchase-summary-box {
    background: #ffffff;
    border: 1px solid #dce8ef;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 2px 10px rgba(6, 49, 73, 0.04);
}

.mytra-purchase-summary-box .border-top {
    border-top: 1px solid #edf4f8 !important;
}

.mytra-summary-section {
    font-size: 13px;
}

.mytra-summary-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #01517a;
}

.mytra-summary-tickets-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: #1e293b;
    padding: 4px 0;
}

.mytra-summary-attendee-info {
    font-size: 12.5px;
    color: #334155;
    line-height: 1.5;
}

.mytra-summary-total {
    font-size: 13.5px;
}

/* Action CTA Buttons */
.mytra-btn-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 20px;
    background: #01517a;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(1, 81, 122, 0.22);
    transition: all 150ms ease;
}

.mytra-btn-primary-action:hover {
    background: #003e5e;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(1, 81, 122, 0.3);
}

.mytra-btn-primary-action.is-disabled {
    background: #e2e8f0;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

/* 4. Mobile Sticky Bottom CTA (<992px) */
.mytra-mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: #ffffff;
    border-top: 1px solid #dfe9ee;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 20px rgba(6, 49, 73, 0.08);
}

.mytra-mobile-cta-label {
    font-size: 11px;
    color: #687f8d;
    font-weight: 500;
}

.mytra-mobile-cta-price {
    font-size: 16px;
    font-weight: 800;
    color: #063149;
}

.mytra-mobile-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 20px;
    background: #01517a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(1, 81, 122, 0.2);
}

.mytra-mobile-cta-btn:hover {
    background: #003e5e;
    color: #ffffff;
}

.mytra-mobile-cta-btn.is-disabled {
    background: #e2e8f0;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

@media (max-width: 991.98px) {
    .mytra-public-event-detail {
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .mytra-ticket-sidebar-sticky {
        position: static;
        margin-top: 10px;
    }
}

/* 5. Terms & Conditions Modal Dialog & Blue Link */
.mytra-terms-link {
    color: #01517a !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: color 150ms ease;
}

.mytra-terms-link:hover {
    color: #003652 !important;
    text-decoration: underline !important;
}

.mytra-terms-modal {
    border: 0;
    border-radius: 14px;
    padding: 0;
    max-width: 680px;
    width: 92vw;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    margin: auto;
}

.mytra-terms-modal::backdrop {
    background: rgba(15, 23, 42, 0.62);
}

.mytra-terms-modal-card {
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.mytra-terms-modal-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.mytra-terms-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    text-align: center;
    width: 100%;
}

.mytra-terms-modal-close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    transition: background-color 0.15s ease;
}

.mytra-terms-modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.mytra-terms-modal-body {
    padding: 18px 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
}

.mytra-terms-modal-foot {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

.mytra-terms-accept-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border-radius: 9999px !important;
    border: none;
    background: #01517a;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    opacity: 0.38;
    cursor: not-allowed;
    transition: opacity 0.3s ease, background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    user-select: none;
    box-shadow: none;
    text-align: center;
}

.mytra-terms-accept-btn:not(:disabled),
.mytra-terms-accept-btn.is-active {
    opacity: 1 !important;
    cursor: pointer !important;
    background: #01517a;
    box-shadow: 0 4px 14px rgba(1, 81, 122, 0.28);
}

.mytra-terms-accept-btn:not(:disabled):hover,
.mytra-terms-accept-btn.is-active:hover {
    background: #003e5e;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(1, 81, 122, 0.35);
}

.mytra-terms-accept-btn:not(:disabled):active,
.mytra-terms-accept-btn.is-active:active {
    transform: translateY(0);
}

@media (max-width: 991.98px) {
    body:has(.mytra-public-event-detail) .mytra-chatbot-trigger,
    body:has(.mytra-public-event-detail) .mytra-chatbot-window {
        display: none !important;
    }
}
