/* =========================================
   PRESSLY REGISTRATION
========================================= */

:root {
  --navy: #082a63;
  --gold: #c89a3c;

  --ice: #f4f8fc;

  --white: #ffffff;

  --text: #1f2937;

  --muted: #6b7280;

  --light-text: #94a3b8;

  --border: #e3eaf2;

  --soft-blue: #f8fbfd;

  --error: #b42318;
}

/* =========================================
   RESET
========================================= */

* {
  margin: 0;
  padding: 0;

  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;

  background: var(--ice);

  color: var(--text);

  min-height: 100vh;
}

/* =========================================
   HEADER
========================================= */

.register-header {
  width: 100%;

  position: sticky;

  top: 0;

  z-index: 100;

  background: rgba(255, 255, 255, 0.88);

  backdrop-filter: blur(18px);

  -webkit-backdrop-filter: blur(18px);

  border-bottom: 1px solid rgba(8, 42, 99, 0.08);
}

.header-inner {
  width: 90%;

  max-width: 1200px;

  min-height: 78px;

  margin: auto;

  display: flex;

  align-items: center;

  justify-content: space-between;
}

.brand {
  display: flex;

  align-items: center;

  gap: 10px;

  text-decoration: none;
}

.brand-icon {
  width: 48px;

  height: 48px;

  object-fit: contain;
}

.brand span {
  font-family: "Cormorant Garamond", serif;

  font-size: 34px;

  font-weight: 700;

  color: var(--navy);

  letter-spacing: 1px;
}

.back-link {
  color: var(--text);

  text-decoration: none;

  font-size: 14px;

  font-weight: 500;

  transition: 0.25s ease;
}

.back-link:hover {
  color: var(--gold);
}

/* =========================================
   MAIN
========================================= */

.register-page {
  padding: 35px 20px 80px;
}

.register-wrapper {
  width: 100%;

  max-width: 900px;

  margin: auto;
}

/* =========================================
   INTRO
========================================= */

.register-intro {
  text-align: center;

  margin-bottom: 30px;
}

.eyebrow {
  display: inline-block;

  color: var(--gold);

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 2px;

  margin-bottom: 14px;
}

.register-intro h1 {
  font-family: "Cormorant Garamond", serif;

  color: var(--navy);

  font-size: clamp(44px, 6vw, 55px);

  line-height: 0.95;

  font-weight: 600;

  margin-bottom: 12px;
}

.register-intro p {
  max-width: 600px;

  margin: auto;

  color: var(--muted);

  font-size: 16px;

  line-height: 1.6;
}

/* =========================================
   STEPPER
========================================= */

.stepper {
  display: flex;

  align-items: center;

  justify-content: center;

  width: 100%;

  margin-bottom: 30px;
}

.step {
  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 9px;

  min-width: 90px;

  color: var(--light-text);

  font-size: 12px;

  font-weight: 600;

  transition: 0.3s ease;
}

.step-number {
  width: 40px;

  height: 40px;

  border-radius: 50%;

  background: #e8eef5;

  color: #718096;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 14px;

  transition: 0.3s ease;
}

.step.active {
  color: var(--navy);
}

.step.active .step-number {
  background: var(--navy);

  color: var(--white);

  box-shadow: 0 8px 20px rgba(8, 42, 99, 0.18);
}

.step.completed .step-number {
  background: var(--gold);

  color: var(--white);
}

.step-line {
  flex: 1;

  height: 1px;

  max-width: 120px;

  background: #dce4ed;

  margin: 0 10px;

  margin-bottom: 25px;
}

/* =========================================
   FORM
========================================= */

#registrationForm {
  background: var(--white);

  border: 1px solid var(--border);

  border-radius: 28px;

  box-shadow: 0 20px 60px rgba(8, 42, 99, 0.07);

  overflow: hidden;
}

.form-step {
  display: none;

  padding: 40px 55px 45px;
}

.form-step.active {
  display: block;

  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;

    transform: translateY(8px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

/* =========================================
   STEP HEADING
========================================= */

.step-heading {
  margin-bottom: 40px;
}

.step-label {
  display: block;

  color: var(--gold);

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 1.8px;

  margin-bottom: 10px;
}

.step-heading h2 {
  font-family: "Cormorant Garamond", serif;

  color: var(--navy);

  font-size: clamp(36px, 5vw, 48px);

  font-weight: 600;

  line-height: 1.05;

  margin-bottom: 12px;
}

.step-heading p {
  color: var(--muted);

  font-size: 15px;

  line-height: 1.7;

  max-width: 650px;
}

/* =========================================
   FORM GRID
========================================= */

.form-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 25px 22px;
}

.form-group {
  display: flex;

  flex-direction: column;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  color: var(--text);

  font-size: 14px;

  font-weight: 600;

  margin-bottom: 9px;
}

.form-group label span,
.preference-label span {
  color: var(--gold);
}

.form-group input {
  width: 100%;

  height: 52px;

  border: 1px solid var(--border);

  border-radius: 12px;

  padding: 0 16px;

  background: #fcfdfe;

  color: var(--text);

  font-family: "Inter", sans-serif;

  font-size: 15px;

  outline: none;

  transition: 0.25s ease;
}

.form-group input::placeholder {
  color: #a8b2be;
}

.form-group input:focus {
  border-color: var(--gold);

  background: var(--white);

  box-shadow: 0 0 0 4px rgba(200, 154, 60, 0.08);
}

.form-group input.invalid {
  border-color: var(--error);
}

.field-hint {
  color: var(--light-text);

  font-size: 12px;

  margin-top: 7px;
}

.error {
  display: none;

  color: var(--error);

  font-size: 12px;

  margin-top: 7px;
}

.form-group.has-error .error {
  display: block;
}

/* =========================================
   LOCATION
========================================= */

.location-box {
  margin-top: 35px;

  padding: 25px;

  background: var(--soft-blue);

  border: 1px solid var(--border);

  border-radius: 18px;
}

.location-content {
  display: flex;

  align-items: flex-start;

  gap: 15px;
}

.location-icon {
  width: 44px;

  height: 44px;

  flex-shrink: 0;

  border-radius: 50%;

  background: rgba(8, 42, 99, 0.08);

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 20px;
}

.location-content h3 {
  color: var(--navy);

  font-size: 17px;

  margin-bottom: 5px;
}

.location-content p {
  color: var(--muted);

  font-size: 13px;

  line-height: 1.6;
}

.location-btn {
  margin-top: 20px;

  padding: 13px 20px;

  border: 1px solid var(--navy);

  background: var(--white);

  color: var(--navy);

  border-radius: 50px;

  font-family: "Inter", sans-serif;

  font-size: 14px;

  font-weight: 600;

  cursor: pointer;

  transition: 0.3s ease;
}

.location-btn:hover {
  background: var(--navy);

  color: var(--white);
}

.location-btn:disabled {
  opacity: 0.6;

  cursor: wait;
}

.location-status {
  margin-top: 12px;

  color: var(--muted);

  font-size: 12px;
}

.location-status.success {
  color: #177245;
}

.location-status.error {
  color: var(--error);
}

.coordinates {
  display: none;

  grid-template-columns: repeat(3, 1fr);

  gap: 12px;

  margin-top: 18px;
}

.coordinates.show {
  display: grid;
}

.coordinates div {
  padding: 13px;

  background: var(--white);

  border: 1px solid var(--border);

  border-radius: 10px;
}

.coordinates span {
  display: block;

  color: var(--light-text);

  font-size: 10px;

  text-transform: uppercase;

  letter-spacing: 0.8px;

  margin-bottom: 5px;
}

.coordinates strong {
  color: var(--navy);

  font-size: 12px;

  word-break: break-all;
}

/* =========================================
   PICKUP PREFERENCES
========================================= */

.preference-section {
  margin-bottom: 40px;
}

.preference-label {
  display: block;

  color: var(--text);

  font-size: 14px;

  font-weight: 600;

  margin-bottom: 15px;
}

.option-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 12px;
}

.option {
  cursor: pointer;
}

.option input {
  position: absolute;

  opacity: 0;
}

.option span {
  display: block;

  padding: 15px 10px;

  text-align: center;

  border: 1px solid var(--border);

  border-radius: 12px;

  background: #fcfdfe;

  color: var(--text);

  font-size: 14px;

  transition: 0.25s ease;
}

.option:hover span {
  border-color: var(--gold);
}

.option input:checked + span {
  background: var(--navy);

  color: var(--white);

  border-color: var(--navy);

  box-shadow: 0 8px 20px rgba(8, 42, 99, 0.12);
}

/* TIME */

.time-options {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 12px;
}

.time-option {
  display: flex;

  align-items: center;

  gap: 14px;

  padding: 18px;

  border: 1px solid var(--border);

  border-radius: 14px;

  background: #fcfdfe;

  cursor: pointer;

  transition: 0.25s ease;
}

.time-option:hover {
  border-color: var(--gold);
}

.time-option input {
  accent-color: var(--navy);

  width: 18px;

  height: 18px;
}

.time-option strong {
  display: block;

  color: var(--text);

  font-size: 14px;

  margin-bottom: 4px;
}

.time-option small {
  color: var(--light-text);

  font-size: 12px;
}

/* =========================================
   ACTIONS
========================================= */

.form-actions {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 15px;

  margin-top: 45px;

  padding-top: 30px;

  border-top: 1px solid var(--border);
}

.form-actions.right {
  justify-content: flex-end;
}

.primary-btn,
.secondary-btn {
  min-height: 52px;

  padding: 0 28px;

  border-radius: 50px;

  font-family: "Inter", sans-serif;

  font-size: 14px;

  font-weight: 600;

  cursor: pointer;

  text-decoration: none;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  transition: 0.3s ease;
}

.primary-btn {
  background: var(--navy);

  color: var(--white);

  border: 1px solid var(--navy);
}

.primary-btn:hover {
  background: var(--gold);

  border-color: var(--gold);

  transform: translateY(-2px);
}

.secondary-btn {
  background: transparent;

  color: var(--text);

  border: 1px solid var(--border);
}

.secondary-btn:hover {
  border-color: var(--navy);

  color: var(--navy);
}

/* =========================================
   REVIEW
========================================= */

.review {
  display: flex;

  flex-direction: column;

  gap: 0;
}

.review-section {
  padding: 25px 0;

  border-bottom: 1px solid var(--border);
}

.review-section:first-child {
  padding-top: 0;
}

.review-title {
  display: flex;

  align-items: center;

  gap: 12px;

  margin-bottom: 20px;
}

.review-title span {
  color: var(--gold);

  font-size: 12px;

  font-weight: 700;
}

.review-title h3 {
  color: var(--navy);

  font-size: 16px;
}

.review-content {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 18px;
}

.review-content div {
  display: flex;

  flex-direction: column;

  gap: 5px;
}

.review-content .wide {
  grid-column: 1 / -1;
}

.review-content span {
  color: var(--light-text);

  font-size: 11px;

  text-transform: uppercase;

  letter-spacing: 0.7px;
}

.review-content strong {
  color: var(--text);

  font-size: 14px;

  font-weight: 500;

  line-height: 1.5;
}

.review-location {
  display: flex;

  align-items: center;

  gap: 13px;

  padding: 20px 0;
}

.review-location > span {
  font-size: 24px;
}

.review-location strong {
  color: var(--navy);

  font-size: 14px;
}

.review-location p {
  color: var(--muted);

  font-size: 12px;

  margin-top: 4px;
}

/* =========================================
   CONSENT
========================================= */

.consent {
  margin-top: 30px;

  padding: 18px;

  background: #fffdf8;

  border: 1px solid #f1e3c5;

  border-radius: 14px;
}

.consent label {
  display: flex;

  align-items: flex-start;

  gap: 12px;

  cursor: pointer;
}

.consent input {
  width: 18px;

  height: 18px;

  flex-shrink: 0;

  margin-top: 2px;

  accent-color: var(--navy);
}

.consent span {
  color: var(--muted);

  font-size: 12px;

  line-height: 1.6;
}

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

.success-message {
  display: none;

  background: var(--white);

  border: 1px solid var(--border);

  border-radius: 28px;

  padding: 80px 40px;

  text-align: center;

  box-shadow: 0 20px 60px rgba(8, 42, 99, 0.07);
}

.success-message.show {
  display: block;

  animation: fadeIn 0.4s ease;
}

.success-icon {
  width: 70px;

  height: 70px;

  margin: 0 auto 25px;

  border-radius: 50%;

  background: var(--navy);

  color: var(--white);

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 30px;
}

.success-message h2 {
  font-family: "Cormorant Garamond", serif;

  color: var(--navy);

  font-size: 50px;

  margin-bottom: 15px;
}

.success-message p {
  max-width: 550px;

  margin: 0 auto 30px;

  color: var(--muted);

  line-height: 1.8;
}

/* =========================================
   FOOTER
========================================= */

.register-footer {
  text-align: center;

  padding: 25px 20px;

  color: var(--light-text);

  font-size: 12px;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 768px) {
  .header-inner {
    min-height: 70px;
  }

  .brand-icon {
    width: 42px;

    height: 42px;
  }

  .brand span {
    font-size: 30px;
  }

  .back-link {
    font-size: 12px;
  }

  .register-page {
    padding: 50px 15px;
  }

  .register-intro {
    margin-bottom: 40px;
  }

  .form-step {
    padding: 35px 25px;
  }

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

  .form-group.full {
    grid-column: auto;
  }

  .option-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .time-options {
    grid-template-columns: 1fr;
  }

  .coordinates {
    grid-template-columns: 1fr;
  }

  .review-content {
    grid-template-columns: 1fr;
  }

  .review-content .wide {
    grid-column: auto;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 520px) {
  .header-inner {
    width: 92%;
  }

  .brand span {
    font-size: 27px;
  }

  .back-link {
    font-size: 0;
  }

  .back-link::before {
    content: "←";

    font-size: 22px;
  }

  .register-intro h1 {
    font-size: 48px;
  }

  .register-intro p {
    font-size: 15px;
  }

  .stepper {
    margin-bottom: 30px;
  }

  .step {
    min-width: auto;

    flex: 1;
  }

  .step-number {
    width: 34px;

    height: 34px;

    font-size: 12px;
  }

  .step span {
    font-size: 10px;
  }

  .step-line {
    margin-left: 3px;

    margin-right: 3px;

    margin-bottom: 20px;
  }

  #registrationForm {
    border-radius: 20px;
  }

  .form-step {
    padding: 30px 20px;
  }

  .step-heading {
    margin-bottom: 30px;
  }

  .step-heading h2 {
    font-size: 38px;
  }

  .option-grid {
    grid-template-columns: 1fr 1fr;
  }

  .option span {
    padding: 14px 8px;

    font-size: 13px;
  }

  .form-actions {
    margin-top: 30px;

    padding-top: 25px;
  }

  .primary-btn,
  .secondary-btn {
    min-height: 48px;

    padding: 0 20px;

    font-size: 13px;
  }

  .success-message {
    padding: 60px 25px;
  }

  .success-message h2 {
    font-size: 42px;
  }
}

.success-customer-id {
  margin: 28px auto 0;
  padding: 22px 28px;
  max-width: 360px;
  text-align: center;
  background: #f5f9fb;
  border: 1px solid #dcebef;
  border-radius: 14px;
}

.success-id-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #6b7c85;
}

.success-customer-id strong {
  display: block;
  font-size: 28px;
  letter-spacing: 2px;
  color: #1f2937;
  margin-bottom: 8px;
}

.success-customer-id small {
  display: block;
  color: #7b8790;
  font-size: 13px;
  line-height: 1.5;
}
