/* English sub-pages: /en/registration.php etc. — uses en-landing.css header, self-contained form */

.en-reg-page {
  margin: 0;
  min-height: 100vh;
  background: #f4f5f7;
  color: #111827;
  display: flex;
  flex-direction: column;
}

.en-reg-page #header.en-sub-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #03050c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.en-reg-page #header.en-sub-header.main {
  background: #03050c;
}

.en-reg-hero {
  background: linear-gradient(180deg, #03050c 0%, #0a1024 100%);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2rem) clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.en-reg-hero__inner {
  max-width: 720px;
  margin: 0 auto;
}

.en-reg-hero__title {
  margin: 0 0 0.75rem;
  font-family: "Optima LT Pro", "Optima", "Helvetica Neue", Pretendard, sans-serif;
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.en-reg-hero__lead {
  margin: 0;
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.en-reg-main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.5rem) clamp(3rem, 6vw, 4rem);
  box-sizing: border-box;
}

.en-reg-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.en-reg-card + .en-reg-card {
  margin-top: 1.25rem;
}

.en-reg-card__title {
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #111827;
}

.en-reg-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}

.en-reg-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.en-reg-field--full {
  grid-column: 1 / -1;
}

.en-reg-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.en-reg-field label .req {
  color: #dc2626;
}

.en-reg-field input,
.en-reg-field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  color: #111827;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.en-reg-field input:focus,
.en-reg-field select:focus {
  outline: none;
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.en-reg-field input::placeholder {
  color: #9ca3af;
}

.en-reg-field select {
  appearance: none;
  background-image: url("/assets/icons/ico_dropdown.svg");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  cursor: pointer;
}

.en-reg-fee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.125rem;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.en-reg-fee__label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #374151;
}

.en-reg-fee__amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}

.en-reg-hint {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #6b7280;
}

.en-reg-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
}

.en-reg-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #111827;
}

.en-reg-check__text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #374151;
}

.en-reg-check__badge {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: #f3f4f6;
  color: #6b7280;
}

.en-reg-pay #payment-method,
.en-reg-pay #agreement {
  margin-top: 0.75rem;
}

.en-reg-pay #payment-method {
  min-height: 120px;
}

.en-reg-pay.is-active {
  box-shadow: 0 0 0 2px #111827, 0 8px 30px rgba(15, 23, 42, 0.08);
}

.en-reg-promo {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
}

.en-reg-promo label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.en-reg-promo__row {
  display: flex;
  gap: 0.5rem;
}

.en-reg-promo__row input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  box-sizing: border-box;
}

.en-reg-promo__row input:focus {
  outline: none;
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.en-reg-promo__row .en-reg-btn {
  flex-shrink: 0;
  min-height: 48px;
}

.en-reg-promo__status {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #dc2626;
}

.en-reg-promo__status--ok {
  color: #047857;
}

.en-reg-fee__amount.is-free {
  color: #047857;
}

.en-reg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.en-reg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.en-reg-btn--primary {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.en-reg-btn--primary:hover {
  background: #1f2937;
}

.en-reg-btn--primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.en-reg-btn--ghost {
  background: #fff;
  color: #374151;
  border-color: #d1d5db;
}

.en-reg-btn--ghost:hover {
  background: #f9fafb;
}

.en-reg-empty {
  text-align: center;
  padding: 2.5rem 1rem;
}

.en-reg-empty p {
  margin: 0 0 1.25rem;
  color: #4b5563;
  line-height: 1.6;
}

.en-reg-footer {
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
}

.en-reg-footer p {
  margin: 0;
}

/* Payment result */
.en-reg-result {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 3vw, 1.5rem);
}

.en-reg-result img {
  display: block;
  margin: 0 auto 1.25rem;
}

.en-reg-result h2 {
  margin: 0 0 0.5rem;
  font-family: "Optima LT Pro", "Optima", Pretendard, sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #111827;
}

.en-reg-result p {
  margin: 0 0 1.5rem;
  color: #6b7280;
  line-height: 1.55;
}

.en-reg-result__meta {
  margin: 0 auto 1.5rem;
  max-width: 360px;
  text-align: left;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.en-reg-result__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid #f3f4f6;
}

.en-reg-result__row:last-child {
  border-bottom: none;
}

.en-reg-result__row span:first-child {
  color: #6b7280;
}

.en-reg-result__row span:last-child {
  font-weight: 600;
  color: #111827;
  word-break: break-all;
  text-align: right;
}

.en-reg-result__error {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #dc2626;
}

@media (max-width: 640px) {
  .en-reg-fields {
    grid-template-columns: 1fr;
  }

  .en-reg-actions {
    flex-direction: column-reverse;
  }

  .en-reg-actions .en-reg-btn {
    width: 100%;
  }
}
