* { box-sizing: border-box; }

:root {
  --primary: #14864e;
  --primary-dark: #083d23;
  --primary-soft: #7fb89c;
  --text: #17203a;
  --muted: #68718a;
  --border: #e5e7ef;
  --background: #f8f9fc;
  --success: #14864e;
  --danger: #d64545;
  --warning: #eeba4a;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(25, 35, 65, 0.04);
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }


/* == Header == */
.site-header{
    height:50px; display:flex; align-items:center; justify-content:space-between;
    padding:0 40px; background:white; border-bottom:1px solid var(--border);
}
.site-logo{ height:42px; }
.site-title{ font-size:15px; font-weight:600; color:var(--muted); }



/* == Page Design == */
.page { margin: 30px 30px; }
.page-heading { margin-bottom: 24px; }
.page-heading h1 { margin: 0 0 5px; font-size: clamp(30px, 4vw, 42px); letter-spacing: -1px; }
.page-heading h2 { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: #1f2937; }
.page-heading p { margin: 0; color: var(--muted); }
.checkout-layout { display: grid; gap: 24px; align-items: start; grid-template-columns: minmax(0, 1fr) 500px; }
.main-column { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.sidebar { min-width: 0; position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.section-card { padding: 18px; }
.section-title h2 { margin: 0 0 3px; font-size: 18px; }
.section-title p { margin: 0; color: var(--muted); font-size: 13px; }
.inline-title { display: flex; align-items: center; justify-content: space-between; }
.inline-title strong { color: var(--primary); font-weight: 700; }



/* == Event Details Card == */
.registration-event-card {
    --event-green: #168764;
    --event-green-dark: #106b4e;
    --event-text: #26352e;
    --event-muted: #68766e;
    --event-border: #e5ece7;
    --event-surface: #f5f8f6;

    width: 100%; min-width: 0; padding: 28px;
    color: var(--event-text); background: #fff;
    border: 1px solid var(--event-border); border-radius: 18px;
    box-shadow: 0 8px 28px rgba(29, 65, 46, 0.07); box-sizing: border-box;
}
.registration-event-card *, .registration-lightbox * { box-sizing: border-box; }
/* Header */
.registration-event-header {
    display: grid; grid-template-columns: 180px minmax(0, 1fr);
    align-items: center; gap: 26px; min-width: 0;
}
.registration-event-logo {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 180px; padding: 10px; overflow: hidden;
    background: var(--event-surface); border: 1px solid var(--event-border); border-radius: 14px;
}
.registration-event-logo img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.registration-event-heading { min-width: 0; }
.registration-event-label {
    display: inline-block; margin-bottom: 10px; color: var(--event-green);
    font-size: 11px; font-weight: 750; letter-spacing: 1.5px;
}
.registration-event-title {
    margin: 0; color: var(--event-text); font-size: clamp(23px, 2.5vw, 32px);
    font-weight: 750; line-height: 1.3; overflow-wrap: anywhere;
}
.registration-event-title-ch {
    margin: 8px 0 16px; color: var(--event-green); font-size: 17px;
    font-weight: 500; line-height: 1.5; overflow-wrap: anywhere;
}
.registration-event-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; }
.registration-meta-item {
    display: flex; align-items: flex-start; gap: 8px; min-width: 0;
    color: var(--event-muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere;
}
.registration-meta-icon { display: inline-flex; flex: 0 0 17px; width: 17px; height: 17px; margin-top: 2px; color: var(--event-green); }
.registration-meta-icon svg {
    display: block; width: 100%; height: 100%; fill: none;
    stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
/* Section separators and headings */
.registration-event-section { min-width: 0; margin-top: 26px; padding-top: 23px; border-top: 1px solid var(--event-border); }
.registration-section-title { margin: 0; color: var(--event-text); font-size: 17px; font-weight: 700; line-height: 1.4; }
/* Overview */
.registration-overview-wrapper { margin-top: 12px; }
.registration-event-overview { min-width: 0; color: #56645b; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.registration-event-overview > :first-child { margin-top: 0; }
.registration-event-overview > :last-child { margin-bottom: 0; }
.registration-event-overview img, .registration-event-overview video, .registration-event-overview iframe {
    max-width: 100%;
}
.registration-event-overview img { height: auto; }
.registration-event-overview.is-collapsed { max-height: 8.8em; overflow: hidden; position: relative; }
.registration-read-more {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 0;
    color: var(--event-green); background: transparent; border: 0;
    font: inherit; font-size: 13px; font-weight: 700; ursor: pointer;
}
.registration-read-more:hover { color: var(--event-green-dark); text-decoration: underline; }
.registration-read-more:focus-visible, .registration-gallery-arrow:focus-visible,
.registration-gallery-dot:focus-visible, .registration-gallery-image-button:focus-visible,
.registration-lightbox-close:focus-visible {
    outline: 3px solid rgba(22, 135, 100, 0.35); outline-offset: 3px;
}
/* Gallery */
.registration-gallery-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 14px; }
.registration-gallery-caption { color: var(--event-muted); font-size: 12px; }
.registration-gallery { width: 100%; min-width: 0; --gallery-gap: 14px; }
.registration-gallery-viewport { position: relative; width: 100%; min-width: 0; overflow: hidden; border-radius: 12px; background: var(--event-surface); }
.registration-gallery-track {
    display: flex; align-items: stretch; gap: var(--gallery-gap); width: 100%;
    transition: transform 300ms ease; will-change: transform;
}
.registration-gallery-slide {
    flex: 0 0 calc((100% - 2 * var(--gallery-gap)) / 4); min-width: 0; height: 220px; overflow: hidden; 
    background: #fff; border: 1px solid var(--event-border); border-radius: 10px;
}
.registration-gallery-image-button {
    position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; 
    padding: 0; overflow: hidden; background: #f7f9f7; border: 0; border-radius: 6px; cursor: zoom-in;
}
.registration-gallery-image-button img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.registration-image-zoom {
    position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 28px; height: 28px;
    color: #fff; background: rgba(28, 45, 35, 0.72); border-radius: 50%; font-size: 15px;
    opacity: 0; transition: opacity 180ms ease;
}
.registration-gallery-image-button:hover .registration-image-zoom,
.registration-gallery-image-button:focus-visible .registration-image-zoom {
    opacity: 1;
}
/* Carousel arrows */
.registration-gallery-arrow {
    position: absolute; top: 50%; z-index: 2; display: grid; place-items: center;
    width: 36px; height: 36px; padding: 0; transform: translateY(-50%);
    color: var(--event-text); background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--event-border); border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); font-size: 14px; cursor: pointer;
}
.registration-gallery-arrow.is-prev { left: 8px; }
.registration-gallery-arrow.is-next { right: 8px; }
.registration-gallery-arrow:hover:not(:disabled) { color: var(--event-green); background: #fff; }
.registration-gallery-arrow:disabled { opacity: 0.45; cursor: not-allowed; }
.registration-gallery-arrow[hidden] { display: none !important; }
/* Carousel pagination */
.registration-gallery-footer { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 30px; padding-top: 10px; }
.registration-gallery-dots { display: flex; align-items: center; justify-content: center; gap: 8px; }
.registration-gallery-dot {
    display: block; flex: 0 0 7px; width: 7px; height: 7px; padding: 0;
    background: #cbd5ce; border: 0; border-radius: 50%; cursor: pointer;
}
.registration-gallery-dot.is-active { background: var(--event-green); transform: scale(1.3); }
.registration-gallery-counter { color: var(--event-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.registration-gallery-dots[hidden],.registration-gallery-counter[hidden] { display: none !important; }
/* Image lightbox */
.registration-lightbox {
    position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; touch-action: pan-y;
    justify-content: center; padding: 55px 20px 25px; background: rgba(12, 18, 15, 0.93);
}
.registration-lightbox.is-open { display: flex; }
.registration-lightbox-content {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 14px; width: min(100%, 1100px); min-width: 0;
}
.registration-lightbox img { display: block; max-width: 100%; max-height: 88vh; object-fit: contain; }
.registration-lightbox-close {
    position: absolute; top: 10px; right: 18px; display: grid; place-items: center; width: 44px; height: 44px; 
    padding: 0; color: #fff; background: transparent;  border: 0; font-size: 36px; cursor: pointer;
}
.registration-lightbox-caption{
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; width: 100%; color: #fff; font-size: 13px;
}
.registration-lightbox-caption [data-lightbox-alt] { overflow: hidden; text-overflow: ellipsis; }
.registration-lightbox-caption [data-lightbox-counter] { flex-shrink: 0; color: rgba(255, 255, 255, 0.75); font-variant-numeric: tabular-nums; }
.registration-lightbox-arrow {
    display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; 
    color: #26352e; background: rgba(255, 255, 255, 0.95); border: 0; border-radius: 50%; 
    font-size: 18px; cursor: pointer; transition: background 0.2s ease;
}
.registration-lightbox-arrow:hover { background: #fff; }
.registration-lightbox-arrow:focus-visible { outline: 3px solid #64d6ac; outline-offset: 3px; }
/* TABLET: 2 PHOTOS VISIBLE */
@media (max-width: 800px){
    .registration-event-card { padding: 22px; }
    .registration-event-header { grid-template-columns: 145px minmax(0, 1fr); gap: 20px; }
    .registration-event-logo { height: 155px; }
    .registration-gallery-slide { flex-basis: calc((100% - var(--gallery-gap)) / 2); height: 210px; }
}

/* MOBILE: 1 PHOTO VISIBLE */
@media (max-width: 520px){
    .registration-event-card { padding: 16px; border-radius: 14px; }
    .registration-event-header { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .registration-event-logo { width: 100%; height: 190px; }
    .registration-event-title { font-size: 24px; }
    .registration-event-title-ch { margin-bottom: 12px; font-size: 16px; }
    .registration-event-meta { flex-direction: column; gap: 9px; margin-top: 14px; }
    .registration-event-section { margin-top: 22px; padding-top: 19px; }
    .registration-gallery { --gallery-gap: 10px; }
    .registration-gallery-slide { flex-basis: 100%; height: 225px; padding: 7px; }
    .registration-gallery-arrow { width: 33px; height: 33px; }
    .registration-gallery-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
    .registration-image-zoom { opacity: 1; }
    .registration-lightbox { gap: 8px; padding: 60px 10px 20px; }
    .registration-lightbox-arrow {
        position: absolute; top: 50%; z-index: 2; width: 36px;
        height: 36px; flex-basis: 36px; transform: translateY(-50%); font-size: 14px;
    }
    .registration-lightbox-arrow.is-prev { left: 8px; }
    .registration-lightbox-arrow.is-next { right: 8px; }
    .registration-lightbox-content { width: 100%; }
    .registration-lightbox img { max-width: 100%; max-height: 75vh; }
    .registration-lightbox-caption { padding: 0 4px; font-size: 12px; }
}
@media (max-width: 360px){
    .registration-event-card { padding: 12px; }
    .registration-event-title { font-size: 22px; }
    .registration-gallery-slide { height: 190px; }
}
@media(prefers-reduced-motion: reduce){
    .registration-gallery-track,
    .registration-image-zoom { transition: none; }
}



/* == Tips == */
.tip { 
  margin-top: 8px; margin-bottom: 12px; padding: 9px 11px; border: 1px solid #e0d8ff; 
  background: #faf8ff; color: #5a4c9e; border-radius: 8px; font-size: 11px;
}



/* == Select Date Portion == */
.date-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.date-option {
  position: relative; font-size: 14px; padding: 16px;
  border: 1.5px solid var(--border); border-radius: 11px; background: #fff;
  text-align: center; transition: 0.15s ease;
}
.date-to { display: block; }
.date-option:hover { border-color: var(--primary); background:#abe5bc;}
.date-option.selected { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); background: #fdfcff; }
.date-radio { display: flex; align-items: flex-start; gap: 9px; font-weight: 750; }
.radio-dot { width: 16px; height: 16px; border: 1.5px solid #c9ceda; border-radius: 50%; flex: 0 0 auto; margin-top: 2px; }
.selected .radio-dot { border: 4px solid var(--primary); }



/* === BUYER / ATTENDEE #1 === */
.buyer-attendee input[readonly] { background-color: #f5f5f5; cursor: not-allowed; opacity: 0.9; }
.buyer-tag { display: block; border-radius: 4px; font-size: 12px; font-weight: 600; color: #f26262; font-style: italic; }
.buyer-attendee-note { margin-top: 10px; font-size: 13px; line-height: 1.5; color: #666; }
.attendee-header {
  padding: 12px 14px; background: #fafbfe; border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-between;
}
.attendee-title { display: flex;
  flex-direction: column; align-items: flex-start; gap: 4px;
  font-size: 13px; font-weight: 800;
}
.attendee-heading { display: flex; justify-content: space-between; align-items: flex-start; }
.attendee-list { display: grid; gap: 10px; }
.attendee-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.ticket-tag { padding: 3px 7px; border-radius: 5px; background: var(--primary-soft); color: var(--primary); font-size: 10px; }
.remove-attendee { border: 0; background: transparent; color: #9299aa; font-size: 16px; flex-shrink: 0; }
.attendee-body { padding: 14px;}
.field label { display: block; margin-bottom: 5px; color: #525a6f; font-size: 14px; font-weight: 700; }
.field label span { color: var(--danger); }
.field input {
  width: 100%; height: 38px; padding: 0 10px; border: 1px solid #dfe2ea;
  border-radius: 7px; outline: none; color: var(--text); background: #fff;
}
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91, 46, 230, 0.08); }
.attendee-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.attendee-actions { display: flex; align-items: center; gap: 15px; margin-left: auto; }
.buyer-info-checkbox {
  display: flex; align-items: center; gap: 7px;
  margin: 0; cursor: pointer; white-space: nowrap;
}
.buyer-info-checkbox input { width: auto; margin: 0; cursor: pointer; }
.attendee-card input:disabled {
  background-color: #e9ecef; color: #6c757d;
  border-color: #ced4da; cursor: not-allowed; opacity: 1;
}



/* == Order Summary Portion == */
.summary-card { padding: 22px; }
.summary-card h2 { margin: 0 0 20px; font-size: 18px; }
.summary-tickets { padding: 16px 0; display: grid; gap: 13px; border-bottom: 1px solid var(--border); }
.summary-ticket { display: flex; justify-content: space-between; gap: 15px; font-size: 13px; }
.summary-ticket small { display: block; margin-top: 2px; color: var(--muted); }
.summary-row { display: flex; justify-content: space-between; gap: 10px; padding: 16px 0; color: #50586c; font-size: 13px; }
.info { display: inline-grid; place-items: center; width: 14px; height: 14px; border: 1px solid #aeb4c2; border-radius: 50%; font-size: 9px; }
.summary-total { display: flex; align-items: center; border-top: 1px solid var(--border); padding-top: 15px; }
.summary-total strong { color: var(--primary); font-size: 23px; }
#discountMessage { margin-top: 8px; font-size: 14px; font-weight: 500; }
#discountMessage.success { color: #198754; }
#discountMessage.error { color: #dc3545; }
#discountMessage.warning { color: #b58105; }
.ticket-option-note {font-style:italic; color:#f06521; font-size: 12px;}



/* == Mobile == */
@media (max-width: 1199px) {
    .checkout-layout { grid-template-columns: 1fr; }
    .main-column { order: 1; }
    .sidebar { display: block; position: static; order: 2; width: 100%; }
}
@media (max-width: 768px) {
    .site-header { padding: 0 20px; }   
}
@media (max-width: 900px) {
    .checkout-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .date-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .site-header { padding: 0 16px; }
  .ticket-row { grid-template-columns: 1fr auto; }
  .ticket-price { grid-column: 2; grid-row: 1; }
  .ticket-main { grid-column: 1; grid-row: 1; }
  .quantity { grid-column: 1 / -1; justify-self: end; grid-row: 2; }
  .attendee-heading { gap: 12px; }
}



/* == Payment Method, TNC, Disclaimer, Proceed Button == */
.payment-method-section { margin-top: 28px; padding-top: 22px; border-top: 1px solid #e5e7eb; }
.payment-method-label { display: block; margin-bottom: 6px; color: #1e293b; font-size: 15px; font-weight: 600; }
.payment-method-hint { margin-bottom: 12px; color: #64748b; font-size: 13px; line-height: 1.5; }
.payment-method-select {
    width: 100%; height: 46px !important; padding: 10px 14px;
    border: 1px solid #cbd5e1; border-radius: 8px; background-color: #fff;
    color: #334155; font-size: 14px; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.payment-method-select:focus {
    border-color: #2563eb; outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.checkout-accordion { margin-top: 14px; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; background: #fff; }
.checkout-accordion-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; padding: 15px 16px; border: none; background: #f3ffdd; color: #334155;
    text-align: left; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color 0.2s ease;
}
.checkout-accordion-toggle:hover { background: #f1f5f9;}
.checkout-accordion-toggle:focus-visible { outline: 2px solid #2563eb; outline-offset: -3px; }
.checkout-accordion-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.checkout-accordion-title > i { font-size: 16px; flex-shrink: 0; }
.terms-accordion .checkout-accordion-title > i { color: #64748b; }
.payment-accordion .checkout-accordion-title > i { color: #0d9488; }
.accordion-chevron { flex-shrink: 0; color: #94a3b8; font-size: 12px; transition: transform 0.25s ease; }
.checkout-accordion-toggle[aria-expanded="true"] .accordion-chevron { transform: rotate(180deg); }
.checkout-accordion-content { border-top: 1px solid #e2e8f0; }
.checkout-accordion-content[hidden] { display: none !important; }
.checkout-accordion-inner {
    padding: 15px 16px; color: #475569; font-size: 13px;
    line-height: 1.75; overflow-wrap: anywhere; max-height: 260px; overflow-y: auto;
}
.terms-accordion:has(.checkout-accordion-toggle[aria-expanded="true"]) { border-color: #cbd5e1; }
.payment-accordion:has(.checkout-accordion-toggle[aria-expanded="true"]) { border-color: #99f6e4; }
.checkout-proceed-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; 
    padding: 12px 20px; border: none; border-radius: 9px; background: #2563eb; color: #fff;
    font-size: 15px; font-weight: 600; letter-spacing: 0.2px; box-shadow: 0 4px 10px rgba(37, 99, 235, 0.16);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.checkout-proceed-btn:hover { background: #1d4ed8; color: #fff; box-shadow: 0 6px 14px rgba(37, 99, 235, 0.22); }
.checkout-proceed-btn:active { transform: translateY(1px); }
.checkout-proceed-btn:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.3); outline-offset: 3px; }
.checkout-time-notice {
    display: flex; align-items: center; justify-content: center; gap: 8px; margin: 5px auto 0; padding: 10px 12px;
    color: #64748b; font-size: 12px; line-height: 1.5; text-align: center;
}
.checkout-time-notice i { color: #d97706; font-size: 15px; flex-shrink: 0; }
.checkout-time-notice strong { color: #475569; font-weight: 700; }
@media (max-width: 767px) {
    .payment-method-section { margin-top: 22px; padding-top: 18px; }
    .checkout-proceed-btn { width: 90%; max-width: 360px; margin: 22px auto 0; min-height: 48px; }
    .checkout-time-notice { max-width: 340px; padding: 10px 8px; font-size: 12px; }
    .checkout-accordion { margin-top: 12px; border-radius: 9px; }
    .checkout-accordion-toggle { padding: 14px; font-size: 13px; }
    .checkout-accordion-inner { padding: 13px 14px; font-size: 12px; line-height: 1.7; max-height: 220px; }
}
@media (min-width: 768px) and (max-width: 1200px) {
    .checkout-proceed-btn {
        display: flex !important; width: fit-content !important; min-width: 200px; margin: 22px auto 0;
    }
}



/* == Footer == */
.site-footer {
    display: flex; justify-content: center; align-items: center; width: 100%; padding: 18px 20px;
    margin-top: auto; border-top: 1px solid #e5e7eb; background: #fff; color: #64748b;
    font-size: 12px; line-height: 1.8; text-align: center; box-sizing: border-box;
}
.site-footer p { margin: 0; max-width: 100%; }
.site-footer a { text-decoration: none; font-weight: 600; transition: color 0.2s ease; }
.site-footer a:first-of-type { color: #064d29; }
.site-footer a:last-of-type { color: #278186; }
.site-footer a:hover { text-decoration: underline; }
.footer-powered { display: inline; margin-left: 4px; }
@media (max-width: 650px) {
    .site-footer { padding: 16px 14px; font-size: 11px; }
    .footer-powered { display: block; margin: 2px 0 0; }
}



/* == Select 2 == */
.select2-container .select2-selection--single {
    height: 38px !important; display: flex; align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal !important;
    padding-left: 12px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
}
.select2-container--default .select2-selection--single .select2-selection__clear {
    margin-right: 10px;
}