/* ===== Signup page layout ===== */

.signup-body {
  background: #fff;
}

.signup-page {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}

/* ---------- Left: brand showcase panel ---------- */

.signup-showcase {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #00c79a 0%, #00a884 45%, #00614f 100%);
  color: #fff;
  padding: 40px 48px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.signup-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px circle at 85% 12%, rgba(255,255,255,0.18), transparent 60%),
    radial-gradient(500px circle at 5% 95%, rgba(0,0,0,0.18), transparent 60%);
  pointer-events: none;
}

.showcase-top,
.showcase-content,
.showcase-illustration {
  position: relative;
  z-index: 1;
}

.showcase-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.showcase-logo {
  display: block;
  max-height: 30px;
  background: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.showcase-eyebrow {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.showcase-content {
  max-width: 460px;
  margin-top: 36px;
}

.showcase-headline {
  font-size: 2.65rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.showcase-subhead {
  font-size: 1.15rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  margin-bottom: 34px;
}

.showcase-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.showcase-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.showcase-features strong {
  display: block;
  font-size: 1.06rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.showcase-features span {
  display: block;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}

/* Floating product-preview cards */
.showcase-illustration {
  margin-top: 40px;
  height: 190px;
}

.float-card {
  position: absolute;
  background: #fff;
  color: #1b1b1b;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  padding: 12px 14px;
  font-size: 0.9rem;
}

.card-chat {
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 250px;
  transform: rotate(-4deg);
}

.chat-avatar {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-bubble {
  background: #f0f4f2;
  border-radius: 8px;
  padding: 6px 10px;
  line-height: 1.3;
}

.card-order {
  left: 130px;
  top: 78px;
  transform: rotate(3deg);
  min-width: 170px;
}

.order-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.order-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00a884;
  flex: 0 0 auto;
}

.order-amount {
  margin-top: 6px;
  font-size: 1.08rem;
  font-weight: 800;
  color: #00614f;
}

.card-delivery {
  left: 10px;
  top: 148px;
  transform: rotate(-2deg);
  min-width: 190px;
}

.delivery-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.delivery-icon {
  font-size: 1.2rem;
}

.delivery-title {
  font-weight: 700;
}

/* ---------- Right: signup form panel ---------- */

.signup-form-panel {
  display: flex;
  flex-direction: column;
  padding: 32px 48px 40px;
  overflow-y: auto;
}

.form-panel-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-height: 34px;
}

.mobile-logo {
  display: none;
  max-height: 28px;
}

.switch-auth {
  font-size: 0.97rem;
  color: #555;
}

.switch-auth a {
  color: #00a884;
  font-weight: 700;
  text-decoration: none;
}

.switch-auth a:hover {
  text-decoration: underline;
}

.signup-card {
  width: 100%;
  max-width: 400px;
  margin: auto;
  padding: 12px 0;
}

.signup-card h2 {
  font-size: 1.78rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #12312a;
}

.intro-sub {
  color: #667;
  font-size: 1.02rem;
  margin-bottom: 24px;
}

#signup-form {
  display: flex;
  flex-direction: column;
}

#signup-form input {
  width: 100%;
  padding: 12px 14px;
  margin: 7px 0;
  border: 1px solid #dcdfe2;
  border-radius: 8px;
  font-size: 1.02rem;
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  width: 100%;
  padding-right: 42px;
}

.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: auto !important;
  padding: 4px !important;
  margin: 0 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a9290 !important;
  font-weight: 400 !important;
  cursor: pointer;
}

.password-toggle-btn:hover {
  background: none !important;
  color: #00a884 !important;
}

.password-toggle-btn svg {
  width: 20px;
  height: 20px;
}

#signup-form input:focus {
  outline: none;
  border-color: #00a884;
  box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.15);
}

#signup-form button,
#verification-section button,
#try-again-btn {
  padding: 12px;
  border: none;
  background-color: #00a884;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

#signup-form button:hover,
#verification-section button:hover {
  background-color: #007a63;
}

#signup-submit {
  margin-top: 10px;
}

.signup-terms {
  margin-top: 14px;
  font-size: 0.84rem;
  color: #8a9290;
  line-height: 1.4;
  text-align: center;
}

#verification-section {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#verification-section p {
  font-size: 0.97rem;
  color: #444;
  margin-bottom: 8px;
}

.phone-otp-wrapper,
.email-otp-wrapper {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.phone-otp-wrapper input,
.email-otp-wrapper input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #dcdfe2;
  border-radius: 8px;
  font-size: 1.02rem;
}

#resend-phone-otp-btn,
#resend-email-otp-btn {
  background: none !important;
  color: #00a884 !important;
  font-weight: 600 !important;
  padding: 4px 0 !important;
  border-radius: 0 !important;
}

#resend-phone-otp-btn:hover,
#resend-email-otp-btn:hover {
  background: none !important;
  text-decoration: underline;
}

button:disabled {
  background-color: #ccc !important;
  color: #666 !important;
  cursor: not-allowed;
  opacity: 0.7;
}

#try-again-btn {
  margin-top: 16px;
  background-color: #8a9290;
}

#try-again-btn:hover {
  background-color: #6c7472;
}

/* ---------- Post-verification activation (questionnaire + plan + trial) ---------- */

#activation-section {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#activation-section h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #12312a;
  margin-bottom: 4px;
}

.activation-sub {
  color: #667;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

#activation-help {
  border: 1px solid #dcdfe2;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 18px;
}

#activation-help summary {
  font-size: 0.92rem;
  font-weight: 600;
  color: #00a884;
  cursor: pointer;
  list-style: none;
}

#activation-help summary::-webkit-details-marker {
  display: none;
}

#activation-help summary:hover {
  text-decoration: underline;
}

#activation-help[open] summary {
  margin-bottom: 10px;
}

.activation-question {
  font-size: 0.95rem;
  color: #444;
  font-weight: 600;
  margin-bottom: 8px;
}

.questionnaire-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.questionnaire-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #dcdfe2;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #12312a;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.questionnaire-option:hover {
  border-color: #00a884;
  background-color: rgba(0, 168, 132, 0.06);
}

.questionnaire-option input {
  width: 16px;
  height: 16px;
  accent-color: #00a884;
}

.plan-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.plan-card {
  position: relative;
  border: 1.5px solid #dcdfe2;
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.plan-card:hover {
  border-color: #00a884;
}

.plan-card.selected {
  border-color: #00a884;
  box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.15);
}

.plan-card h4 {
  font-size: 1.02rem;
  font-weight: 800;
  color: #12312a;
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.plan-card p {
  font-size: 0.9rem;
  color: #667;
  margin: 0;
}

.plan-price {
  font-size: 0.92rem;
  font-weight: 700;
  color: #00a884;
  white-space: nowrap;
}

.plan-card-description {
  font-size: 0.88rem;
  color: #667;
}

.plan-card-description ul {
  margin: 0;
  padding-left: 18px;
}

.plan-card-description li {
  margin: 2px 0;
}

.plan-card-description p {
  margin: 0;
}

.plan-options-loading,
.plan-options-error {
  font-size: 0.9rem;
  color: #667;
  padding: 10px 2px;
}

.plan-options-error {
  color: #b3261e;
}

.plan-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background-color: #00a884;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

#addon-recommendations {
  margin-bottom: 18px;
}

.addon-heading {
  margin-bottom: 8px;
}

.addon-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.addon-card {
  position: relative;
  border: 1.5px dashed #dcdfe2;
  border-radius: 10px;
  padding: 12px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.addon-card.recommended {
  border-style: solid;
  border-color: #00a884;
  box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.15);
}

.addon-card h4 {
  font-size: 0.96rem;
  font-weight: 800;
  color: #12312a;
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.addon-card-description {
  font-size: 0.85rem;
  color: #667;
}

.addon-card-description p {
  margin: 0;
}

#start-trial-btn {
  width: 100%;
  padding: 12px;
  border: none;
  background-color: #00a884;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

#start-trial-btn:hover {
  background-color: #007a63;
}

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

@media (max-width: 900px) {
  .signup-page {
    grid-template-columns: 1fr;
  }

  .signup-showcase {
    padding: 28px 24px 36px;
  }

  .showcase-headline {
    font-size: 1.7rem;
  }

  .showcase-subhead {
    margin-bottom: 22px;
  }

  .showcase-features {
    display: none;
  }

  .showcase-illustration {
    height: 130px;
    margin-top: 20px;
  }

  .float-card {
    font-size: 0.75rem;
    padding: 9px 11px;
  }

  .card-order {
    left: 120px;
    top: 56px;
  }

  .card-delivery {
    top: 100px;
  }

  .signup-form-panel {
    padding: 24px 24px 40px;
  }

  .form-panel-top {
    justify-content: space-between;
  }

  .mobile-logo {
    display: block;
  }
}

@media (max-width: 480px) {
  .showcase-illustration {
    display: none;
  }
}
