/* Event / trip registration form (content detail) */
.er-wrap {
  margin: 2.5rem 0 1rem;
  scroll-margin-top: 96px;
}

.rw-post-book-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 2.75rem 0 0;
  padding: 1.25rem 0;
  border-top: 1px solid #e8edf2;
  border-bottom: 1px solid #e8edf2;
  border-radius: 8px;
  background: #fff;
}

.rw-post-book-cta__copy h2 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 700;
  color: #0d1f2d;
}

.rw-post-book-cta__copy p {
  margin: 0;
  color: #5b6b78;
  font-size: 0.95rem;
  line-height: 1.5;
}

.rw-post-book-now-button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0 1.35rem;
  border: 0;
  border-radius: 8px;
  background: #f89e45;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 10px 20px rgba(248, 158, 69, 0.22);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.rw-post-book-now-button:hover,
.rw-post-book-now-button:focus-visible {
  background: #ef8b2d;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(248, 158, 69, 0.28);
}

.rw-post-book-now-button .material-symbols-outlined {
  font-size: 21px;
}

.er-closed {
  padding: 1.25rem 1.5rem;
  border: 1px dashed #cfd8e0;
  background: #f5f7f9;
  color: #5b6b78;
}

.er-form {
  padding: 1.75rem 1.5rem;
  border: 1px solid #e8edf2;
  background: #fafcfe;
  animation: erFormIn 0.35s ease-out both;
}

.er-form__header {
  margin-bottom: 1.25rem;
}

.er-form__title {
  margin: 0.5rem 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0d1f2d;
}

.er-form__sub {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}

.er-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.er-form__grid .er-field:last-child {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .rw-post-book-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .rw-post-book-now-button {
    width: 100%;
  }

  .er-form__grid {
    grid-template-columns: 1fr;
  }

  .er-form__grid .er-field:last-child {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .er-payment .payment-method {
    align-items: flex-start;
  }

  .er-payment .instapay-info {
    padding: 14px 12px;
  }

  .er-payment .instapay-info__value {
    font-size: clamp(0.68rem, 3.1vw, 0.82rem);
  }
}

.er-field {
  margin-bottom: 1rem;
}

.er-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
  color: #0d1f2d;
}

.er-multi {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.er-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.er-payment {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.er-payment .payment-method,
.er-payment .instapay-info,
.er-payment .file-upload-area {
  max-width: 100%;
  box-sizing: border-box;
}

.er-payment .instapay-info {
  overflow: hidden;
}

.er-payment .instapay-info__title {
  align-items: flex-start;
  gap: 0.4rem;
  line-height: 1.45;
}

.er-payment .instapay-info__title .material-symbols-outlined {
  flex: 0 0 auto;
  margin-top: 0.08rem;
}

.er-payment .instapay-info__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

.er-payment .instapay-info__value {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(0.78rem, 1.8vw, 0.94rem);
  line-height: 1.4;
}

.er-payment .instapay-copy-btn {
  flex: 0 0 auto;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
}

.er-form__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.er-submit {
  width: 100%;
  max-width: 280px;
}

.er-cancel {
  border: none;
  background: transparent;
  color: #5b6b78;
  font-weight: 600;
  padding: 0.5rem 0;
  cursor: pointer;
}

.er-cancel:hover {
  color: #0d1f2d;
}

@keyframes erFormIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
