/* =========================================
   WPV SIGNUP PAGE STYLES
   ========================================= */

.signup-page-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  min-height: calc(100vh - var(--navbar-height, 68px));
  background: var(--page-bg);
  transition: background-color 0.3s ease;
}

.signup-container {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 0 24px;
}

.signup-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: var(--soft-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

html[data-theme="dark"] .signup-card {
  background: var(--surface);
  border-color: var(--line-color);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.signup-header {
  text-align: center;
  margin-bottom: 32px;
}

.signup-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--heading-color);
  margin-bottom: 8px;
  letter-spacing: -0.8px;
}

.signup-header p {
  font-size: 15px;
  color: var(--body-color);
}

/* Step Panel Animations */
.signup-panel {
  display: none;
}

.signup-panel.active {
  display: block;
  animation: slideFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Progress Tracker */
.progress-bar-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 36px;
  position: relative;
}

.progress-bar-container::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border);
  z-index: 1;
}

html[data-theme="dark"] .progress-bar-container::before {
  background: var(--line-color);
}

.progress-bar-fill {
  position: absolute;
  top: 15px;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  z-index: 1;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.progress-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-solid);
  border: 2px solid var(--border);
  color: var(--body-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  z-index: 2;
  transition: all 0.3s ease;
}

html[data-theme="dark"] .progress-step {
  background: var(--surface-solid);
  border-color: var(--line-color);
}

.progress-step.active {
  /* Slate-navy for active step — neutral brand color */
  border-color: #1B3A4B;
  color: #1B3A4B;
  box-shadow: 0 0 0 4px rgba(27, 58, 75, 0.12);
}

.progress-step.completed {
  /* Emerald for completed — positive achievement */
  border-color: #10B981;
  background: #10B981;
  color: #ffffff;
}

/* Form Styles */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--heading-color);
}

.form-input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--heading-color);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
}

html[data-theme="dark"] .form-input {
  border-color: var(--line-color);
}

.form-input::placeholder {
  color: #a0aec0;
}

html[data-theme="dark"] .form-input::placeholder {
  color: #718096;
}

.form-input:focus {
  /* Slate-navy focus ring — obsidian tones */
  border-color: #1B3A4B;
  box-shadow: 0 0 0 4px rgba(27, 58, 75, 0.12);
}

.continue-btn {
  height: 52px;
  border-radius: 10px;
  border: none;
  /* Emerald — signing up is a key positive action */
  background: linear-gradient(135deg, #10B981, #059669);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
  margin-top: 15px;
}

.continue-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.40);
  filter: brightness(1.05);
}

.continue-btn:active {
  transform: translateY(0);
}

/* Questionnaire Styles (Step 2) */
.investor-info-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

html[data-theme="dark"] .investor-info-header {
  border-bottom-color: var(--line-color);
}

.investor-info-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 8px;
}

.investor-info-header p {
  font-size: 14px;
  color: var(--body-color);
  line-height: 1.5;
}

.question-block {
  margin-bottom: 28px;
}

.question-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 8px;
}

.question-text {
  font-size: 14.5px;
  color: var(--body-color);
  line-height: 1.6;
  margin-bottom: 14px;
}

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

.option-item {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

html[data-theme="dark"] .option-item {
  border-color: var(--line-color);
  background: rgba(15, 29, 50, 0.3);
}

.option-item:hover {
  border-color: var(--blue);
  background: var(--light-blue);
}

html[data-theme="dark"] .option-item:hover {
  background: rgba(38, 103, 255, 0.08);
}

/* Selected option item */
.option-item.selected {
  border-color: var(--blue);
  background: var(--light-blue);
  box-shadow: 0 0 0 3px rgba(38, 103, 255, 0.15);
}

html[data-theme="dark"] .option-item.selected {
  background: rgba(38, 103, 255, 0.15);
  border-color: var(--blue);
}

/* Radio circle styling */
.option-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

html[data-theme="dark"] .option-radio {
  border-color: var(--line-color);
}

.option-item.selected .option-radio {
  border-color: var(--blue);
}

.option-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  transform: scale(0);
  transition: transform 0.2s ease;
}

.option-item.selected .option-radio::after {
  transform: scale(1);
}

.option-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--heading-color);
  line-height: 1.4;
}

/* Terms checkbox */
.terms-wrapper {
  margin-top: 10px;
  padding: 16px;
  border-radius: 8px;
  background: var(--light-green);
  border: 1px solid rgba(17, 189, 114, 0.2);
  display: flex;
  gap: 12px;
  cursor: pointer;
  align-items: flex-start;
  transition: all 0.2s ease;
}

html[data-theme="dark"] .terms-wrapper {
  background: rgba(17, 189, 114, 0.08);
  border-color: rgba(17, 189, 114, 0.15);
}

.terms-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.terms-wrapper.checked .terms-checkbox {
  background: var(--green);
}

.terms-checkbox::after {
  content: '✓';
  color: white;
  font-size: 11px;
  font-weight: 900;
  transform: scale(0);
  transition: transform 0.15s ease;
}

.terms-wrapper.checked .terms-checkbox::after {
  transform: scale(1);
}

.terms-text {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--heading-color);
  line-height: 1.5;
}

.terms-text a {
  color: var(--blue);
  text-decoration: underline;
}

/* Step 3: Success State */
.success-panel {
  text-align: center;
  padding: 30px 10px;
}

.success-icon-wrapper {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(17, 189, 114, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  position: relative;
}

.success-icon-wrapper::after {
  content: '';
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px dashed var(--green);
  opacity: 0.4;
  animation: pulseRotate 12s linear infinite;
}

@keyframes pulseRotate {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.05); }
  100% { transform: rotate(360deg) scale(1); }
}

.success-icon {
  font-size: 40px;
  color: var(--green);
  line-height: 1;
}

.success-panel h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--heading-color);
  margin-bottom: 12px;
}

.success-panel p {
  font-size: 15px;
  color: var(--body-color);
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Error banner styling */
.message-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  display: none;
  margin-bottom: 24px;
  animation: alertFadeIn 0.3s ease;
}

@keyframes alertFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.alert-error {
  background: #fdf2f2;
  color: #de350b;
  border: 1px solid #fde8e8;
}

html[data-theme="dark"] .alert-error {
  background: rgba(222, 53, 11, 0.15);
  color: #ff8f73;
  border-color: rgba(222, 53, 11, 0.25);
}

.shake-animation {
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* Layout / Card responsiveness adjustments */
@media (max-width: 600px) {
  .signup-card {
    padding: 36px 20px;
    border-radius: 16px;
  }
  .signup-page-section {
    padding: 140px 0 60px;
  }
}
