/* ========================================
   REGISTRATION FORM PAGE
======================================== */

/* ---------- Hero ---------- */

.reg-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 42vh;
  padding-top: var(--header-h);
  background: linear-gradient(135deg, #2b1245, var(--purple) 60%, var(--green-dark));
  color: var(--white);
}

.reg-hero-img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.reg-hero-overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(20, 13, 28, 0.88),
    rgba(20, 13, 28, 0.65) 55%,
    rgba(20, 13, 28, 0.45)
  );
}

.reg-hero-content {
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

.reg-hero-content h1 {
  color: var(--white);
  margin-bottom: 0.15em;
}

.reg-hero-theme {
  color: var(--green);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 1vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
}

.reg-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
}

.reg-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--mint);
  font-size: 0.9rem;
  font-weight: 600;
}

.reg-dress-code {
  color: var(--green) !important;
}

/* ---------- Layout: info + form side by side ---------- */

.reg-section {
  background: var(--tint);
}

.reg-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

/* ---------- Info panel ---------- */

.reg-info-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--purple);
}

.reg-info-card h2 {
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem);
  margin-bottom: 0.75rem;
}

.reg-info-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Checklist */
.reg-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.4rem 0 1.6rem;
  list-style: none;
  padding: 0;
}

.reg-checklist li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.reg-checklist svg {
  flex-shrink: 0;
  color: var(--green-dark);
}

/* Back link */
.reg-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: gap 0.2s;
}

.reg-back-link:hover {
  gap: 0.55rem;
  color: var(--purple);
}

/* ---------- Form card ---------- */

.reg-form-wrap {
  min-width: 0;
}

.reg-form-card {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green);
}

.reg-form-card h2 {
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem);
  margin-bottom: 0.3rem;
}

.reg-form-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.6rem;
}

/* ---------- Form elements ---------- */

.reg-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-label {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.req {
  color: #c0392b;
  margin-left: 0.1rem;
}

.form-optional {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
}

.form-input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 2px solid rgba(91, 42, 134, 0.18);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(91, 42, 134, 0.12);
}

.form-input.input-error {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.form-input.input-ok {
  border-color: var(--green-dark);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b2a86' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.5;
}

.form-hint {
  color: var(--muted);
  font-size: 0.8rem;
}

.form-error {
  color: #c0392b;
  font-size: 0.8rem;
  font-weight: 600;
  min-height: 1rem;
}

/* ---------- Radio buttons ---------- */

.form-radio-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.form-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.form-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--purple);
  cursor: pointer;
}

.form-radio span {
  font-size: 0.95rem;
  color: var(--text);
}

/* ---------- Checkbox ---------- */

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--purple);
  cursor: pointer;
}

.form-checkbox span {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---------- Submit button ---------- */

.reg-submit {
  width: 100%;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 1rem;
}

/* ---------- Success state ---------- */

.reg-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  gap: 0.6rem;
  animation: success-in 0.4s ease;
}

@keyframes success-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.reg-success-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: var(--white);
  margin-bottom: 0.75rem;
  box-shadow: 0 8px 24px rgba(28, 127, 109, 0.3);
}

.reg-success h3 {
  color: var(--purple);
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.8rem);
  margin-bottom: 0.2rem;
}

.reg-success-main {
  color: var(--muted);
  max-width: 30rem;
  font-size: 0.95rem;
}

.reg-success-reminder {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.75rem 0;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: var(--tint);
  border: 1px solid rgba(91, 42, 134, 0.1);
  text-align: left;
  width: 100%;
  max-width: 24rem;
}

.reg-success-reminder-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

.reg-success-reminder-item svg {
  flex-shrink: 0;
  color: var(--green-dark);
}

.reg-success-white {
  color: var(--purple) !important;
}

.reg-success-white svg {
  color: var(--purple) !important;
}

.reg-success-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

/* ---------- Select option styling ---------- */

/* The <select> wrapper itself */
.form-select {
  color: var(--text);
}

/* Placeholder option */
.form-select option[value=""] {
  color: var(--muted);
  font-style: italic;
}

/* Regular options */
.form-select option {
  color: var(--text);
  background: var(--white);
  font-size: 0.95rem;
  padding: 0.5rem;
}

/* ---------- Responsive ---------- */

@media (min-width: 900px) {
  .reg-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 2.5rem;
  }

  .reg-info {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

/* ========================================
   SUCCESS PAGE
======================================== */

.success-page {
  background: var(--tint);
}

.success-main {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 4rem;
}

.success-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 520px;
  animation: success-in 0.5s ease;
}

@keyframes success-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* Big animated check circle */
.success-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: var(--white);
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 32px rgba(28, 127, 109, 0.28);
  animation: pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes pop-in {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.success-heading {
  font-size: clamp(2rem, 1.4rem + 3vw, 3rem);
  color: var(--purple);
  margin-bottom: 0.4rem;
}

.success-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 30rem;
  margin-bottom: 1.8rem;
}

/* Reminder card */
.success-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius);
  background: var(--white);
  border-top: 4px solid var(--green);
  box-shadow: var(--shadow);
  text-align: left;
  margin-bottom: 1.6rem;
}

.success-detail {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

.success-detail svg {
  flex-shrink: 0;
  color: var(--green-dark);
}

.success-dresscode svg {
  color: var(--purple);
}

.all-white-tag {
  display: inline-block;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: var(--purple);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-left: 0.25rem;
  text-transform: uppercase;
}

.success-closing {
  color: var(--green-dark);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1.6rem;
}

.success-actions {
  justify-content: center;
}
