/* ==========================================================================
   October Event Tickets — Checkout Styles
   ========================================================================== */

/* ---------- CSS custom properties — override these to retheme ---------- */
.oct-checkout {
  --oct-accent:    #d14900;   /* brand highlight (buttons, focus rings, active borders) */
  --oct-text:      #222222;   /* primary text */
  --oct-border:    #222222;   /* ticket row dividers */
  --oct-row-hover: #f5f5f5;   /* hovered / selected row background */
  --oct-btn-bg:    #d14900;   /* primary button background */
  --oct-btn-text:  #ffffff;   /* primary button text */
  --oct-radius:    50px;      /* primary button corner radius */

  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--oct-text);
  line-height: 1.5;
}

/* ---------- Sections ---------- */
.oct-section {
  margin-bottom: 28px;
}

.oct-section__title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--oct-text);
  margin-bottom: 14px;
  letter-spacing: -1px;
  line-height: 1;
}

/* ---------- Ticket type rows ---------- */
.oct-ticket-list {
  width: 100%;
}

.oct-ticket-row {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 20px !important;
  padding: 20px !important;
  border-bottom: 3px solid var(--oct-border);
  cursor: pointer;
  transition: background 0.1s;
}

.oct-ticket-row:first-child {
  border-top: 3px solid var(--oct-border);
}

.oct-ticket-row:hover:not(.oct-ticket-row--unavailable),
.oct-ticket-row--selected {
  background: var(--oct-row-hover);
}

.oct-ticket-row--selected .oct-ticket-row__name {
  font-weight: 800;
}

.oct-ticket-row--unavailable {
  cursor: default;
  opacity: 0.55;
}

.oct-ticket-row__info {
  flex: 1;
  min-width: 0;
}

.oct-ticket-row__name {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--oct-text);
  line-height: 1;
}

.oct-ticket-row__desc {
  font-size: 1.5em !important;
  color: #000000 !important;
  line-height: 1;
  margin-top: 3px;
}

.oct-ticket-row__admissions {
  font-size: 12px;
  color: #888;
  margin-top: 3px;
}

.oct-ticket-row__price {
  text-align: right;
  flex-shrink: 0;
  line-height: 1.2;
}

.oct-price-current {
  display: block !important;
  font-size: 3em !important;
  font-weight: 600;
  color: var(--oct-text);
}

.oct-price-old {
  display: block !important;
  font-size: 1.5em !important;
  color: #999;
  text-decoration: line-through !important;
  line-height: 1;
}

.oct-ticket-row__status {
  font-size: 13px;
  color: #888;
  font-style: italic;
}

/* ---------- Inline qty per ticket row ---------- */
.oct-ticket-row__qty {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  border: 1px solid #ccc !important;
  border-radius: 0 !important;
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
}

.oct-ticket-row__qty .oct-qty-btn {
  background: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  color: #1a1a1a !important;
  transition: background 0.1s;
  line-height: 36px !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: auto !important;
  box-shadow: none !important;
  outline: none;
  user-select: none;
}

.oct-ticket-row__qty .oct-qty-btn:hover {
  background: #eee !important;
}

.oct-ticket-row__qty .oct-qty-val {
  min-width: 36px;
  text-align: center !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #1a1a1a;
  border-left: 1px solid #f5f5f5 !important;
  border-right: 0 !important;
  padding: 0 4px;
  line-height: 36px !important;
  display: inline-block !important;
}

.oct-ticket-row--selected .oct-ticket-row__qty {
  border-color: var(--oct-accent) !important;
}

/* ---------- Terms & Conditions ---------- */
.oct-terms-section {
  padding: 16px 0 4px;
}

.oct-terms-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

.oct-terms-checkbox {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--oct-accent);
  cursor: pointer;
}

.oct-terms-label a {
  color: var(--oct-accent);
  text-decoration: underline;
}

/* ---------- Labels & inputs ---------- */
.oct-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 7px;
  letter-spacing: 0.1px;
}

.oct-optional {
  font-weight: 400;
  color: #999;
  font-size: 12px;
}

.oct-required {
  color: #e53935;
}

.oct-input {
  width: 100%;
  border: 1px solid;
  border-radius: 0;
  padding: 11px 14px;
  font-size: 15px;
  color: #1a1a1a;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  font-family: inherit;
}

.oct-input:focus {
  border-color: var(--oct-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--oct-accent) 20%, transparent);
}

.oct-input.error {
  border-color: #e53935;
}

.oct-field-group {
  margin-bottom: 16px;
}

.oct-field-hint {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
  display: block;
}

/* ---------- Promo code ---------- */
.oct-promo-row {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.oct-promo-row .oct-input {
  flex: 1;
}

/* Promo section: title + field on one line */
.oct-section--promo .oct-promo-row .oct-label {
  margin-bottom: 0;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 14px;
}

.oct-promo-message {
  margin-top: 8px;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
}

.oct-promo-message.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.oct-promo-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* ---------- Section dividers ---------- */
.oct-section + .oct-section {
  border-top: 0;
  padding-top: 20px;
}

/* ---------- Order summary ---------- */
.oct-summary {
  background: #f5f5f5;
  border: 0;
  border-radius: 0;
  padding: 16px 20px;
}

.oct-summary .oct-section__title {
  margin-bottom: 12px;
}

.oct-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5px 0;
  font-size: 14px;
  color: #444;
}

.oct-summary-row.oct-summary-total {
  border-top: 1px solid #e0e0e0;
  margin-top: 8px;
  padding-top: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

.oct-summary-price {
  font-weight: 600;
}

.oct-discount-value {
  color: #2d9e44;
}

/* ---------- Your Details: background + 50/50 label / field ---------- */
.oct-section--details {
  background: #f5f5f5;
  padding: 0 20px;
}

.oct-section--details .oct-field-group {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
  padding-top: 12px;
}

.oct-section--details .oct-label {
  width: 50%;
  flex-shrink: 0;
  margin-bottom: 0;
  padding-top: 11px;
}

.oct-field-input {
  flex: 1;
  min-width: 0;
}

/* ---------- Payment tabs ---------- */
.oct-payment-tabs {
  display: flex;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.oct-tab {
  flex: 1;
  padding: 11px 16px;
  border: none;
  background: #f8f8f8;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
  border-right: 1px solid #e0e0e0;
}

.oct-tab:last-child {
  border-right: none;
}

.oct-tab--active {
  background: #fff;
  color: #1a1a1a;
  box-shadow: inset 0 -2px 0 var(--oct-accent);
}

/* ---------- Stripe Elements ---------- */
.oct-stripe-elements {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
  transition: border-color 0.15s;
  background: #fff;
}

.oct-stripe-elements.focused {
  border-color: var(--oct-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--oct-accent) 20%, transparent);
}

.oct-stripe-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #999;
  margin-top: 10px;
  margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.oct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  letter-spacing: 0.2px;
  text-decoration: none;
  white-space: nowrap;
}

.oct-btn--primary {
  background: var(--oct-btn-bg);
  color: var(--oct-btn-text);
  border: 0;
  border-radius: var(--oct-radius);
  font-size: 1.2em;
  padding: 10px 30px;
}

.oct-btn--primary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--oct-btn-bg) 75%, #000);
}

.oct-btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.oct-btn--secondary {
  background: #222222;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 7.5px 20px;
  font-size: 1em;
  font-weight: 600;
  line-height: 1;
}

.oct-btn--secondary:hover {
  background: var(--oct-accent);
  color: #fff;
}

.oct-btn--full {
  width: 100%;
}

/* ---------- Payment error ---------- */
.oct-payment-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
}

/* ---------- Success state ---------- */
.oct-success {
  text-align: center;
  padding: 48px 24px;
}

.oct-success__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--oct-accent);
  color: #fff;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-weight: 700;
}

.oct-success h2 {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.oct-success p {
  color: #666;
  margin-bottom: 24px;
}

.oct-ticket-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
  margin: 0 auto;
}

.oct-ticket-link {
  display: block;
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s;
}

.oct-ticket-link:hover {
  background: #333;
  color: #fff;
}

/* ---------- Error / notice ---------- */
.oct-error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
}

.oct-notice {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
}

/* ---------- Waitlist ---------- */
/* Match the "Apply" button (.oct-btn--secondary): solid dark pill, accent hover. */
.oct-btn-waitlist {
  background: #222222;
  border: none;
  border-radius: 50px;
  padding: 7.5px 20px;
  font-size: 1em;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  color: #ffffff;
  margin-top: 8px;
  display: inline-block;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}
.oct-btn-waitlist:hover {
  background: var(--oct-accent);
  color: #fff;
}
/* A sold-out row stays full-strength (it's still actionable — join the waitlist)
   rather than dimmed like other unavailable states. */
.oct-ticket-row--soldout.oct-ticket-row--unavailable {
  opacity: 1;
}
/* "Sold out" reads as prominently as the ticket name (.oct-ticket-row__name). */
.oct-ticket-row__status--soldout {
  color: #e53935;
  font-weight: 600;
  font-style: normal;
  font-size: 1.5em;
  line-height: 1;
}
.oct-waitlist-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.oct-waitlist-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.oct-waitlist-modal__box {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.oct-waitlist-modal__sub {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

/* ---------- PayPal container ---------- */
#oct-paypal-buttons {
  margin-bottom: 10px;
}

/* ---------- Spinner ---------- */
.oct-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: oct-spin 0.65s linear infinite;
  vertical-align: middle;
}

@keyframes oct-spin {
  to { transform: rotate(360deg); }
}

/* ---------- Tax row ---------- */
.oct-summary-row.oct-summary-tax {
  color: #555;
}

/* ---------- Free registration button ---------- */
#oct-free-section {
  padding-top: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  /* Ticket row: name + description on their own line (full width), then the price
     and the qty stepper share the line below — price left, stepper hard right. Far
     more compact than stacking everything, and stops the big price crowding the name. */
  .oct-ticket-row {
    flex-wrap: wrap;
    align-items: center !important;
    gap: 10px 14px !important;
    padding: 16px !important;
  }

  .oct-ticket-row__info {
    flex: 1 1 100%;
  }

  .oct-ticket-row__price {
    text-align: left;
    flex: 0 1 auto;
    line-height: 1;
  }

  .oct-ticket-row__qty {
    margin-left: auto;   /* push the stepper to the right edge, same line as price */
  }

  /* Scale the oversized desktop price down so large amounts don't overflow. */
  .oct-price-current {
    font-size: 2.1em !important;
  }

  .oct-price-old {
    display: inline-block !important;
    font-size: 1.1em !important;
    margin-left: 8px;
  }

  .oct-section__title {
    font-size: 1.3em;
  }

  .oct-payment-tabs {
    flex-direction: column;
  }

  .oct-tab {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .oct-tab:last-child {
    border-bottom: none;
  }

  .oct-section--promo .oct-promo-row {
    flex-wrap: wrap;
  }

  .oct-section--promo .oct-promo-row .oct-input {
    flex: 1 1 60%;
  }

  .oct-section--promo .oct-promo-row .oct-label {
    width: 100%;
  }

  /* Your Details: label above the field (not a cramped 50/50 split). */
  .oct-section--details .oct-field-group {
    flex-direction: column;
    gap: 6px;
    padding-top: 12px;
  }

  .oct-section--details .oct-label {
    width: 100%;
    padding-top: 0;
  }

  /* Summary rows: let a long label wrap without squashing the price. */
  .oct-summary-row {
    flex-wrap: wrap;
    gap: 2px 10px;
  }

  .oct-summary-price {
    margin-left: auto;
  }
}

/* "or" divider between card and PayPal payment options */
.oct-pay-or { display: flex; align-items: center; text-align: center; color: #9a8f7a; font-size: 13px; margin: 16px 0; }
.oct-pay-or::before, .oct-pay-or::after { content: ""; flex: 1; height: 1px; background: #e6dfcf; }
.oct-pay-or span { padding: 0 12px; text-transform: uppercase; letter-spacing: .08em; }
#oct-paypal-buttons { margin-top: 4px; }

/* ---- Members-only rates + join offer ---- */
.oct-members-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  vertical-align: middle;
  border-radius: 999px;
  background: #1a1a1a;
  color: #fff;
}
.oct-ticket-row--members.oct-ticket-row--locked { opacity: .7; }
.oct-ticket-row--members.oct-ticket-row--locked .oct-ticket-row__qty { opacity: .5; }
.oct-member-offer {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 14px 16px;
  border: 2px solid #1a1a1a;
  border-radius: 10px;
  background: #fbf7e9;
}
.oct-member-offer__text { flex: 1 1 220px; font-size: 14px; line-height: 1.4; }
.oct-member-offer__text strong { display: block; margin-bottom: 2px; }
.oct-member-offer__btn { flex: 0 0 auto; white-space: nowrap; text-decoration: none; }

/* One-click join: checkbox inside the member offer + post-purchase confirmation */
.oct-member-offer__check {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.oct-member-offer__check input { width: 16px; height: 16px; cursor: pointer; }
.oct-join-confirm {
  margin: 6px 0 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #eaf7ea;
  border: 1px solid #b6e0b6;
  color: #1a7f1a;
  font-weight: 600;
}
#oct-join-row .oct-summary-label { font-style: italic; }

/* Membership upsell card + "membership added" note */
.oct-membership-card {
  background: #f5f5f5;
  border: 2px solid #1a1a1a;
  border-radius: 12px;
  padding: 18px 20px;
}
.oct-membership-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.oct-membership-card__title { font-size: 1.25em; font-weight: 800; color: #1a1a1a; line-height: 1.1; }
.oct-membership-card__price { font-weight: 700; color: var(--oct-accent); white-space: nowrap; }
.oct-membership-card__pitch { margin: 0 0 8px; font-size: 14px; color: #444; }
.oct-membership-card__benefits { margin: 0 0 14px; padding-left: 20px; }
.oct-membership-card__benefits li { font-size: 14px; color: #333; margin: 4px 0; line-height: 1.4; }
.oct-membership-optin__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
}
.oct-membership-optin__row input { width: 18px; height: 18px; cursor: pointer; flex: 0 0 auto; accent-color: var(--oct-accent); }
.oct-membership-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.oct-membership-optin__help { font-size: 13px; color: #6b6257; }
.oct-membership-card__btn { text-decoration: none; flex: 0 0 auto; }
.oct-membership-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #d8cfbb;
  font-size: 13px;
  line-height: 1.5;
  color: #6b6257;
}
.oct-membership-note a { color: inherit; text-decoration: underline; font-weight: 600; }
.oct-flash { animation: octFlash 1.2s ease; }
@keyframes octFlash { 0%,100% { background: transparent; } 25% { background: #fdf4d6; } }
