/* Always honor the HTML hidden attribute. */
[hidden] {
  display: none !important;
}

.registration-page {
  background: var(--surface);
  color: var(--ink);
}

.registration-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: var(--mud-dark);
  color: var(--white);
  border-bottom: 3px solid var(--orange);
}

.registration-main {
  padding: 70px 0 100px;
}

.registration-intro {
  max-width: 820px;
  margin-bottom: 40px;
}

.registration-intro h1 {
  margin: 0;
  font-family: "Anton", sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  text-transform: uppercase;
}

.registration-deadline {
  color: var(--orange);
  font-weight: 800;
  opacity: 1 !important;
}

.registration-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: start;
}

.registration-details-card,
.registration-form-card {
  padding: clamp(24px, 4vw, 42px);
  background: #fffaf0;
  border: 1px solid rgba(42, 26, 16, 0.18);
  box-shadow: var(--shadow);
}

.registration-layout h2,
.registration-layout h3 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
}

.registration-layout h2 {
  margin-top: 0;
  font-size: 2.3rem;
}

.registration-layout h3 {
  margin: 30px 0 10px;
  color: var(--mud);
  font-size: 1.45rem;
}

.fee-grid {
  display: grid;
  gap: 12px;
}

.fee-grid article {
  padding: 16px;
  background: var(--surface);
  border-left: 4px solid var(--orange);
}

.fee-grid strong,
.fee-grid span {
  display: block;
}

.gcash-qr {
  display: block;
  width: min(280px, 100%);
  margin: 18px auto;
  border: 10px solid white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.form-field {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.form-field label,
.checkbox-field {
  font-size: 0.86rem;
  font-weight: 800;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  background: white;
  border: 1px solid rgba(42, 26, 16, 0.28);
}

.form-field input:focus,
.form-field select:focus {
  outline: 3px solid rgba(239, 108, 34, 0.22);
  border-color: var(--orange);
}

.form-help {
  color: rgba(42, 26, 16, 0.72);
  font-size: 0.8rem;
  line-height: 1.5;
}

.payment-receipt-preview {
  display: block;
  width: min(100%, 360px);
  max-height: 420px;
  margin-top: 8px;
  object-fit: contain;
  background: #f4ead8;
  border: 1px solid rgba(42, 26, 16, 0.18);
  border-radius: 8px;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 20px;
}

.checkbox-field input {
  width: 20px;
  height: 20px;
  accent-color: var(--orange);
}

.form-submit {
  width: 100%;
  cursor: pointer;
}

.form-submit:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.form-status {
  min-height: 26px;
  margin: 16px 0 0;
  font-weight: 700;
}

.form-status.success {
  color: #287a3c;
}

.form-status.error {
  color: #a62828;
}

#totalFee[readonly] {
  cursor: not-allowed;
  color: var(--mud-dark);
  font-weight: 800;
  background: #eee4d2;
  border-color: rgba(239, 108, 34, 0.55);
}

.fee-breakdown {
  margin: 8px 0 22px;
  padding: 18px;
  background: #f4ead8;
  border: 1px solid rgba(42, 26, 16, 0.18);
  border-left: 4px solid var(--orange);
}

.fee-breakdown h3 {
  margin: 0 0 14px;
  font-size: 1.25rem;
}

.fee-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(42, 26, 16, 0.22);
}

.fee-breakdown-row span {
  font-size: 0.9rem;
}

.fee-breakdown-row strong {
  white-space: nowrap;
}

.fee-breakdown-total {
  margin-top: 4px;
  padding-top: 14px;
  color: var(--mud-dark);
  font-size: 1.08rem;
  border-bottom: 0;
}

.fee-breakdown-total strong {
  color: var(--orange);
  font-size: 1.25rem;
}

.registration-notice {
  margin: 0 0 24px;
  padding: 16px 18px;
  color: #5b3b00;
  font-size: 0.95rem;
  line-height: 1.6;
  background: #fff8e6;
  border: 1px solid #d9b25f;
  border-left: 5px solid #d97706;
  border-radius: 8px;
}

.registration-notice strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

@media (max-width: 850px) {
  .registration-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .registration-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .registration-header .button {
    width: 100%;
  }

  .registration-main {
    padding-top: 45px;
  }
}


.adult-addons {
  margin-bottom: 4px;
}

.addon-checkboxes,
.addon-number-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.addon-checkboxes .checkbox-field {
  min-height: 48px;
  margin: 0 0 12px;
  padding: 12px 14px;
  background: #f4ead8;
  border: 1px solid rgba(42, 26, 16, 0.18);
}

.addon-number-fields .form-field {
  margin-bottom: 20px;
}

@media (max-width: 560px) {
  .addon-checkboxes,
  .addon-number-fields {
    grid-template-columns: 1fr;
  }
}


.generated-receipt-section {
  width: 100%;
  margin: 0;
}

.generated-receipt-card {
  padding: clamp(22px, 4vw, 36px);
  text-align: center;
  background: #fffaf0;
  border: 1px solid rgba(42, 26, 16, 0.18);
  border-top: 5px solid var(--orange);
  box-shadow: var(--shadow);
}

.generated-receipt-card h2 {
  margin: 0;
  color: var(--mud-dark);
  font-family: "Anton", sans-serif;
  font-size: clamp(2rem, 6vw, 3.7rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.generated-receipt-card > p:not(.eyebrow) {
  color: rgba(42, 26, 16, 0.72);
}

.generated-receipt-preview {
  display: block;
  width: min(100%, 560px);
  max-height: 900px;
  margin: 24px auto;
  object-fit: contain;
  background: #17130f;
  border: 8px solid #17130f;
  box-shadow: 0 18px 45px rgba(26, 16, 9, 0.25);
}

.generated-receipt-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.receipt-share-button {
  color: var(--mud-dark);
  cursor: pointer;
  background: transparent;
  border-color: rgba(42, 26, 16, 0.35);
}

.receipt-share-button:hover {
  color: var(--orange);
  border-color: var(--orange);
}

@media (max-width: 560px) {
  .generated-receipt-actions .button {
    width: 100%;
  }
}


.registration-form-card {
  position: relative;
  padding-top: clamp(88px, 11vw, 118px);
}

.registration-type-badge {
  position: absolute;
  top: 24px;
  right: clamp(20px, 4vw, 38px);
  z-index: 2;
  min-width: 150px;
  padding: 13px 18px 12px;
  text-align: center;
  color: #24140b;
  background:
    radial-gradient(circle at 12% 18%, rgba(42, 26, 16, .22) 0 3px, transparent 4px),
    radial-gradient(circle at 88% 74%, rgba(42, 26, 16, .18) 0 4px, transparent 5px),
    linear-gradient(145deg, #ffb05f, #ef6c22);
  border: 2px solid #6f2c0b;
  border-radius: 10px 4px 12px 5px;
  box-shadow:
    0 10px 20px rgba(42, 26, 16, .22),
    inset 0 0 0 2px rgba(255, 248, 232, .28);
  transform: rotate(-5deg);
}

.registration-type-badge::before,
.registration-type-badge::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fffaf0;
  border: 2px solid #6f2c0b;
  border-radius: 50%;
}

.registration-type-badge::before {
  top: 7px;
  left: 7px;
}

.registration-type-badge::after {
  right: 7px;
  bottom: 7px;
}

.registration-type-badge span,
.registration-type-badge strong {
  display: block;
  position: relative;
  z-index: 1;
}

.registration-type-badge span {
  font-family: "Anton", sans-serif;
  font-size: 1.25rem;
  letter-spacing: .08em;
  line-height: 1;
}

.registration-type-badge strong {
  margin-top: 6px;
  font-size: .78rem;
  letter-spacing: .08em;
}

#shareReceiptButton {
  display: none !important;
}

@media (max-width: 560px) {
  .registration-form-card {
    padding-top: 108px;
  }

  .registration-type-badge {
    top: 20px;
    right: 18px;
    min-width: 138px;
  }
}


.registration-form-card.is-complete {
  display: none;
}

.register-another-button {
  color: var(--mud-dark);
  cursor: pointer;
  background: transparent;
  border-color: rgba(42, 26, 16, 0.35);
}

.register-another-button:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.generated-receipt-section {
  scroll-margin-top: 24px;
}


@media (min-width: 851px) {
  .generated-receipt-section {
    width: auto;
    margin: 0;
    align-self: start;
  }

  .generated-receipt-card {
    width: 100%;
    min-height: 100%;
  }
}

.generated-receipt-section {
  grid-column: 2;
}

.registration-layout > .generated-receipt-section {
  width: 100%;
}

@media (max-width: 850px) {
  .generated-receipt-section {
    grid-column: 1;
    width: 100%;
    margin: 0;
  }
}




.receipt-save-instructions {
  margin: 18px 0 22px;
  padding: 16px 18px;
  color: #5b3b00;
  text-align: left;
  background: #fff8e6;
  border: 1px solid #d9b25f;
  border-left: 5px solid var(--orange);
  border-radius: 8px;
}

.receipt-save-instructions strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.receipt-save-instructions p {
  margin: 0;
  line-height: 1.55;
}
