:root {
  --bg-main: #fdf8ef;
  --bg-card: rgba(255, 255, 255, 0.84);
  --text-main: #1d3135;
  --text-soft: #4f676b;
  --accent: #dd5f2d;
  --accent-deep: #b5451a;
  --mint: #4ea39c;
  --line: rgba(29, 49, 53, 0.16);
  --shadow: 0 20px 50px rgba(33, 45, 49, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at 20% 20%, #ffe8cf 0%, transparent 35%),
    radial-gradient(circle at 86% 18%, #d8f6ef 0%, transparent 32%),
    linear-gradient(160deg, #f8f5eb 0%, #f3f9f8 55%, #fdf7ec 100%);
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(2px);
  z-index: -1;
  opacity: 0.5;
}

.bg-shape-1 {
  width: 280px;
  height: 280px;
  left: -90px;
  top: 30vh;
  background: linear-gradient(140deg, #ffcf9f, #f48f5d);
}

.bg-shape-2 {
  width: 360px;
  height: 360px;
  right: -120px;
  top: -40px;
  background: linear-gradient(140deg, #85d6cf, #4ea39c);
}

.landing-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 58px 20px 72px;
}

.hero h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: 0.02em;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-deep);
  letter-spacing: 0.2em;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.subtitle {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--text-soft);
  font-size: 1.06rem;
}

.tabs {
  margin-top: 34px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tab-buttons {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.tab-btn {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: #fff;
  background: linear-gradient(90deg, #df6738, #cf4e26);
}

.tab-panels {
  padding: 22px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.info-card h2 {
  font-family: "Fraunces", Georgia, serif;
  margin-top: 0;
}

.info-card p {
  margin: 0 0 8px;
  color: var(--text-soft);
}

.register-card h2 {
  font-family: "Fraunces", Georgia, serif;
  margin-top: 0;
}

.register-card p {
  color: var(--text-soft);
}

.register-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.register-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.93rem;
  font-weight: 500;
}

.register-form .full-width,
.register-form button {
  grid-column: 1 / -1;
}

.payment-section {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.price-box {
  border: 1px solid rgba(18, 41, 45, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  padding: 10px 12px;
  height: 100%;
}

.price-box p {
  margin: 0;
  color: var(--text-soft);
}

.price-box p + p {
  margin-top: 6px;
}

.payment-qr-wrap {
  margin-top: 12px;
  border-top: 1px dashed rgba(18, 41, 45, 0.2);
  padding-top: 12px;
}

.payment-qr {
  margin-top: 8px;
  width: min(210px, 100%);
  border-radius: 10px;
  border: 1px solid rgba(18, 41, 45, 0.18);
  background: #ffffff;
}

.evidence-panel {
  border: 1px solid rgba(18, 41, 45, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 12px;
  height: 100%;
}

.evidence-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.93rem;
  font-weight: 500;
}

.register-form .confirm-info-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 2px 0;
  font-weight: 600;
  color: #284449;
  align-self: start;
  text-align: left;
}

.register-form .confirm-info-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
}

.register-form .confirm-info-row span {
  line-height: 1.2;
  white-space: nowrap;
  text-align: left;
}

.captcha-wrap {
  border-top: 1px dashed rgba(18, 41, 45, 0.2);
  padding-top: 10px;
  display: flex;
  justify-content: center;
}

.hint {
  margin-top: 3px;
  color: #5f7779;
  font-size: 0.82rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(18, 41, 45, 0.22);
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
  font: inherit;
  color: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(78, 163, 156, 0.4);
  border-color: var(--mint);
}

.cta-btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(90deg, #da6438, #cb4a22);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.cta-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.alert {
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 8px;
  font-size: 0.9rem;
}

.alert-success {
  background: #e7f9f5;
  color: #0f6158;
  border: 1px solid rgba(15, 97, 88, 0.2);
}

.alert-error {
  background: #ffeaea;
  color: #952a2a;
  border: 1px solid rgba(149, 42, 42, 0.18);
}

body.modal-open {
  overflow: hidden;
}

.success-modal {
  position: fixed;
  inset: 0;
  background: rgba(14, 31, 34, 0.48);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}

.success-modal.is-open {
  display: flex;
}

.success-modal-card {
  width: min(520px, 100%);
  border-radius: 14px;
  border: 1px solid rgba(18, 41, 45, 0.2);
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(14, 31, 34, 0.28);
  padding: 18px;
}

.success-modal-card h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
}

.success-modal-card p {
  margin: 10px 0 0;
  color: var(--text-soft);
}

.modal-close-btn {
  margin-top: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: revealUp 0.7s ease forwards;
}

.reveal-delay-1 {
  animation-delay: 0.18s;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .register-form {
    grid-template-columns: 1fr;
  }

  .payment-section {
    grid-template-columns: 1fr;
  }

  .payment-qr {
    width: min(260px, 100%);
  }
}

@media (max-width: 560px) {
  .tab-buttons {
    flex-direction: column;
  }

  .tab-btn {
    text-align: left;
  }
}
