/* ============================================================
   EDEN PLACEMENT — REGISTRATION PAGE STYLES
   ============================================================ */

/* ---------- Registration hero ---------- */
.reg-hero {
  background:
    radial-gradient(50rem 30rem at 90% -20%, rgba(46, 125, 79, 0.14), transparent 60%),
    linear-gradient(180deg, var(--eden-green-50), var(--eden-white));
  border-bottom: 1px solid var(--eden-line);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.reg-hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--space-8);
}

.reg-hero__title {
  font-size: var(--text-4xl);
  margin-top: var(--space-4);
}

.reg-hero__lead {
  margin-top: var(--space-4);
  color: var(--eden-text-soft);
  font-size: var(--text-lg);
  max-width: 52ch;
}

.reg-hero__steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--eden-white);
  border: 1px solid var(--eden-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.reg-hero__step {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  transition: background-color var(--duration);
}

.reg-hero__step > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--eden-green-100);
  color: var(--eden-green);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.reg-hero__step strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--eden-text);
}

.reg-hero__step small {
  font-size: var(--text-xs);
  color: var(--eden-muted);
}

.reg-hero__step.is-current {
  background: var(--eden-green-100);
}

.reg-hero__step.is-current > span {
  background: var(--eden-green);
  color: var(--eden-white);
}

.reg-hero__step.is-done > span {
  background: var(--eden-green);
  color: var(--eden-white);
}

/* ---------- Registration layout ---------- */
.reg {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--eden-surface);
}

.reg__layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-8);
  align-items: start;
}

.reg__aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: var(--space-4);
}

.reg__aside-card,
.reg__progress-card,
.reg__help-card {
  background: var(--eden-white);
  border: 1px solid var(--eden-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
}

.reg__aside-card h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}

.reg__aside-card .list-check li {
  font-size: var(--text-sm);
}

/* Progress */
.reg__progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--eden-text-soft);
}

.reg__progress-head strong {
  font-family: var(--font-display);
  color: var(--eden-green);
}

.reg__progress-bar {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--eden-green-100);
  margin-block: var(--space-3);
  overflow: hidden;
}

.reg__progress-bar span {
  display: block;
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--eden-green), var(--eden-green-600));
  transition: width 0.5s var(--ease-out);
}

.reg__progress-card p {
  font-size: var(--text-xs);
  color: var(--eden-muted);
}

/* Help card */
.reg__help-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: linear-gradient(135deg, var(--eden-green-800), var(--eden-green-900));
  border-color: transparent;
}

.reg__help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  color: #7FC39B;
  flex-shrink: 0;
}

.reg__help-icon svg {
  width: 20px;
  height: 20px;
}

.reg__help-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--eden-white);
}

.reg__help-text {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.65);
}

.reg__help-text a {
  color: #7FC39B;
  font-weight: 600;
}

/* ---------- Form main ---------- */
.reg__main {
  display: grid;
  gap: var(--space-6);
  min-width: 0;
}

.reg-section {
  padding: var(--space-6);
  overflow: hidden;
}

.reg-section__head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--eden-line);
  margin-bottom: var(--space-5);
}

.reg-section__icon,
.reg-section__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--eden-green-100);
  color: var(--eden-green);
  flex-shrink: 0;
}

.reg-section__icon svg {
  width: 22px;
  height: 22px;
}

.reg-section__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
}

.reg-section__title {
  font-size: var(--text-xl);
}

.reg-section__sub {
  font-size: var(--text-sm);
  color: var(--eden-text-soft);
  margin-top: 0.2rem;
}

.reg-section__body {
  display: grid;
  gap: var(--space-5);
}

.reg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.req {
  color: var(--eden-accent);
  font-weight: 700;
}

.field__error {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--eden-accent-600);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--eden-accent);
  box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.1);
}

.field__hint {
  font-size: var(--text-xs);
  color: var(--eden-muted);
}

kbd {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  background: var(--eden-surface);
  border: 1px solid var(--eden-line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  color: var(--eden-text-soft);
}

/* ---------- Gender radios ---------- */
.reg-gender {
  border: 0;
}

.reg-gender legend {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.reg-gender__options {
  display: flex;
  gap: var(--space-2);
}

.radio {
  flex: 1;
}

.radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.5rem;
  border: 1.5px solid var(--eden-line-strong);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--eden-text-soft);
  cursor: pointer;
  transition: border-color var(--duration), background-color var(--duration), color var(--duration);
}

.radio input:checked + span {
  border-color: var(--eden-green);
  background: var(--eden-green-100);
  color: var(--eden-green-700);
  font-weight: 600;
}

.radio input:focus-visible + span {
  outline: 3px solid rgba(30, 90, 53, 0.4);
  outline-offset: 2px;
}

/* ---------- Dropzone ---------- */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  padding: var(--space-8) var(--space-5);
  border: 2px dashed var(--eden-line-strong);
  border-radius: var(--radius-lg);
  background: var(--eden-green-50);
  cursor: pointer;
  transition: border-color var(--duration), background-color var(--duration), transform var(--duration);
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone.is-dragover {
  border-color: var(--eden-green);
  background: var(--eden-green-100);
}

.dropzone.is-dragover {
  transform: scale(1.01);
}

.dropzone__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--eden-green);
  color: var(--eden-white);
  box-shadow: 0 8px 20px rgba(30, 90, 53, 0.3);
  margin-bottom: var(--space-2);
}

.dropzone__icon svg {
  width: 30px;
  height: 30px;
}

.dropzone__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--eden-text);
}

.dropzone__sub {
  font-size: var(--text-sm);
  color: var(--eden-text-soft);
  margin-bottom: var(--space-2);
}

.dropzone__sub strong {
  color: var(--eden-green);
}

/* Uploaded file chip */
.resume-file {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1.5px solid #CBE2D3;
  border-radius: var(--radius-md);
  background: var(--eden-green-50);
}

.resume-file__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--eden-green);
  color: var(--eden-white);
  flex-shrink: 0;
}

.resume-file__icon svg {
  width: 20px;
  height: 20px;
}

.resume-file__meta {
  flex: 1;
  min-width: 0;
}

.resume-file__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--eden-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resume-file__size {
  font-size: var(--text-xs);
  color: var(--eden-muted);
}

.resume-file__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--eden-text-soft);
  background: var(--eden-white);
  border: 1px solid var(--eden-line-strong);
  transition: background-color var(--duration), color var(--duration);
}

.resume-file__remove:hover {
  background: var(--eden-accent);
  color: var(--eden-white);
  border-color: transparent;
}

.resume-file__remove svg {
  width: 18px;
  height: 18px;
}

/* Parse status / paste / result */
.parse-status {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--eden-green-100);
  color: var(--eden-green-700);
  font-size: var(--text-sm);
  font-weight: 500;
}

.parse-status__spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--eden-green-100);
  border-top-color: var(--eden-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.parse-paste {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: #FFF8E1;
  border: 1px solid #F2DFA0;
}

.parse-paste__title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--eden-text);
}

.parse-paste__text {
  font-size: var(--text-sm);
  color: var(--eden-text-soft);
}

.parse-paste textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--eden-line-strong);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  resize: vertical;
}

.parse-paste textarea:focus {
  outline: none;
  border-color: var(--eden-green);
  box-shadow: 0 0 0 4px rgba(30, 90, 53, 0.12);
}

.parse-paste .btn {
  justify-self: start;
}

.parse-result {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--eden-green-100);
  border: 1px solid #CBE2D3;
}

.parse-result__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--eden-green);
  color: var(--eden-white);
  flex-shrink: 0;
}

.parse-result__icon svg {
  width: 20px;
  height: 20px;
}

.parse-result__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--eden-green-700);
}

.parse-result__text {
  font-size: var(--text-sm);
  color: var(--eden-text-soft);
}

/* ---------- Chips (skills / languages) ---------- */
.chips--input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1.5px solid var(--eden-line-strong);
  border-radius: var(--radius-md);
  background: var(--eden-white);
  transition: border-color var(--duration), box-shadow var(--duration);
}

.chips--input:focus-within {
  border-color: var(--eden-green);
  box-shadow: 0 0 0 4px rgba(30, 90, 53, 0.12);
}

.chips__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chips--input input {
  flex: 1;
  min-width: 140px;
  border: 0;
  padding: 0.4rem 0.4rem;
  font-size: var(--text-sm);
  background: transparent;
}

.chips--input input:focus {
  outline: none;
  box-shadow: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  background: var(--eden-green-100);
  color: var(--eden-green-700);
  font-size: var(--text-xs);
  font-weight: 600;
}

.chip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(30, 90, 53, 0.15);
  color: var(--eden-green-700);
  line-height: 1;
}

.chip button:hover {
  background: var(--eden-accent);
  color: var(--eden-white);
}

.chip button svg {
  width: 10px;
  height: 10px;
}

/* ---------- Terms ---------- */
.terms {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
}

.terms input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.terms__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--eden-line-strong);
  border-radius: 6px;
  background: var(--eden-white);
  flex-shrink: 0;
  transition: border-color var(--duration), background-color var(--duration);
}

.terms__box::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--eden-green);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity var(--duration), transform var(--duration);
}

.terms input:checked + .terms__box {
  border-color: var(--eden-green);
  background: var(--eden-green-100);
}

.terms input:checked + .terms__box::after {
  opacity: 1;
  transform: scale(1);
}

.terms input:focus-visible + .terms__box {
  outline: 3px solid rgba(30, 90, 53, 0.4);
  outline-offset: 2px;
}

.terms__text {
  font-size: var(--text-sm);
  color: var(--eden-text-soft);
}

.terms__text a {
  color: var(--eden-green);
  font-weight: 600;
  text-decoration: underline;
}

/* ---------- Live summary ---------- */
.reg-summary {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--eden-surface);
  border: 1px dashed var(--eden-line-strong);
}

.reg-summary__empty {
  font-size: var(--text-sm);
  color: var(--eden-muted);
}

.reg-summary__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 1rem;
  font-size: var(--text-sm);
}

.reg-summary__grid div {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 0.3rem;
  border-bottom: 1px dotted var(--eden-line);
}

.reg-summary__grid dt {
  color: var(--eden-muted);
  flex-shrink: 0;
}

.reg-summary__grid dd {
  color: var(--eden-text);
  font-weight: 500;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Submit ---------- */
.reg__submit {
  width: 100%;
  margin-top: var(--space-2);
}

.reg__submit.is-loading {
  pointer-events: none;
  opacity: 0.8;
}

.reg-error {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: var(--space-3);
  padding: 0.85rem 1rem;
  border: 1px solid rgba(229, 57, 53, 0.45);
  border-radius: var(--radius-md);
  background: rgba(229, 57, 53, 0.06);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--eden-accent-600);
}

.reg-error svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.reg__privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--eden-muted);
  text-align: center;
}

.reg__privacy svg {
  width: 16px;
  height: 16px;
  color: var(--eden-green);
  flex-shrink: 0;
}

/* ---------- Success ---------- */
.reg-success {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem);
  background: var(--eden-white);
  border: 1px solid var(--eden-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.reg-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--eden-green-100);
  color: var(--eden-green);
  margin-bottom: var(--space-5);
}

.reg-success__icon svg {
  width: 44px;
  height: 44px;
}

.reg-success__title {
  font-size: var(--text-3xl);
}

.reg-success__id {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--eden-text-soft);
}

.reg-success__id strong {
  color: var(--eden-accent);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.reg-success__text {
  max-width: 52ch;
  margin: var(--space-4) auto 0;
  color: var(--eden-text-soft);
}

.reg-success__steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 420px;
  margin: var(--space-6) auto;
  text-align: left;
}

.reg-success__steps li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--eden-green-50);
  border: 1px solid var(--eden-line);
  font-size: var(--text-sm);
  color: var(--eden-text-soft);
}

.reg-success__steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--eden-green);
  color: var(--eden-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  flex-shrink: 0;
}

.reg-success__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.reg-success__redirect {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--eden-muted);
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 46, 24, 0.6);
  backdrop-filter: blur(2px);
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--eden-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-glow);
}

.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--eden-surface);
  color: var(--eden-text);
}

.modal__close:hover {
  background: var(--eden-accent);
  color: var(--eden-white);
}

.modal__close svg {
  width: 20px;
  height: 20px;
}

.modal__panel h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  padding-right: var(--space-6);
}

.modal__body h3 {
  font-size: var(--text-base);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  color: var(--eden-green-700);
}

.modal__body p {
  font-size: var(--text-sm);
  color: var(--eden-text-soft);
}

.modal__panel > .btn {
  margin-top: var(--space-5);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

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

  .reg__aside {
    position: static;
    grid-template-columns: repeat(3, 1fr);
    order: 2;
  }

  .reg__main {
    order: 1;
  }

  .reg-hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .reg-hero__steps {
    flex-direction: row;
    justify-content: space-between;
    gap: var(--space-2);
  }

  .reg-hero__step {
    flex: 1;
    flex-direction: column;
    text-align: center;
  }

  .reg-hero__step small {
    display: none;
  }
}

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

  .reg-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .reg-section {
    padding: var(--space-5);
  }

  .reg-summary__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .reg-hero__steps {
    display: none;
  }

  .reg-gender__options {
    flex-direction: column;
  }

  .dropzone {
    padding: var(--space-6) var(--space-3);
  }

  .reg-success__actions .btn {
    width: 100%;
  }
}
