/* =========================================
   YogWealth — Account Deletion Page
   Interactive form & flow-specific styles
   ========================================= */

/* ---------- Deletion Form Section ---------- */
.deletion-section {
  padding: 60px 0 80px;
  background: #f4f5f7;
}

.deletion-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.07);
  padding: 40px;
  max-width: 520px;
  margin: 0 auto;
}

.deletion-card .card-heading {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
  text-align: center;
}

.deletion-card .card-subtitle {
  font-size: 14px;
  color: #888;
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ---------- Step Visibility ---------- */
.step {
  display: none;
}

.step.active {
  display: block;
  animation: adFadeIn 0.3s ease-out;
}

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

/* ---------- Method Toggle ---------- */
.method-toggle {
  display: flex;
  background: #f0f0f0;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 24px;
}

.method-toggle button {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  font-family: "Inter", sans-serif;
}

.method-toggle button.active {
  background: #fff;
  color: #1a1a2e;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* ---------- Form Fields ---------- */
.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.form-field input,
.form-field select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  color: #333;
  background: #f9f9f9;
  transition: border-color 0.2s, background 0.2s;
  font-family: "Inter", sans-serif;
  box-sizing: border-box;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: #f26b21;
  background: #fff;
}

.form-field input.input-error {
  border-color: #dc3545;
}

.phone-row {
  display: flex;
  gap: 10px;
}

.phone-row .phone-ext {
  width: 120px;
  flex-shrink: 0;
}

.phone-row .phone-number {
  flex: 1;
}

/* ---------- OTP Inputs ---------- */
.otp-container {
  text-align: center;
  margin-bottom: 24px;
}

.otp-sent-to {
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
  line-height: 1.6;
}

.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.otp-inputs input {
  width: 56px;
  height: 56px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: #f9f9f9;
  color: #1a1a2e;
  transition: border-color 0.2s, background 0.2s;
  font-family: "Inter", sans-serif;
  box-sizing: border-box;
}

.otp-inputs input:focus {
  outline: none;
  border-color: #f26b21;
  background: #fff;
}

.otp-inputs input.otp-error {
  border-color: #dc3545;
}

.otp-inputs input.otp-filled {
  border-color: #f26b21;
  background: #fff;
}

.resend-row {
  font-size: 14px;
  color: #888;
}

.resend-row button {
  background: none;
  border: none;
  color: #f26b21;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  font-family: "Inter", sans-serif;
}

.resend-row button:disabled {
  color: #bbb;
  cursor: default;
}

/* ---------- Confirmation ---------- */
.confirm-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.confirm-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.confirm-list li:last-child {
  border-bottom: none;
}

.confirm-list .warn-icon {
  color: #dc3545;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 3px;
  font-style: normal;
}

.confirm-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: #fff3cd;
  border-radius: 8px;
  border: 1px solid #ffeeba;
}

.confirm-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: #f26b21;
  cursor: pointer;
}

.confirm-checkbox label {
  font-size: 14px;
  color: #664d03;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.5;
}

/* ---------- Buttons ---------- */
.btn-continue {
  width: 100%;
  height: 48px;
  background: #f26b21;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: "Inter", sans-serif;
  position: relative;
}

.btn-continue:hover {
  background: #d95a18;
}

.btn-continue:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-delete {
  width: 100%;
  height: 48px;
  background: #dc3545;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: "Inter", sans-serif;
  position: relative;
}

.btn-delete:hover {
  background: #c82333;
}

.btn-delete:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #888;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
  font-family: "Inter", sans-serif;
  transition: color 0.2s;
}

.btn-back:hover {
  color: #333;
}

.btn-back svg {
  width: 16px;
  height: 16px;
}

/* ---------- Loading State ---------- */
.btn-loading {
  pointer-events: none;
}

.btn-loading .btn-text {
  visibility: hidden;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: adSpin 0.6s linear infinite;
  top: 50%;
  left: 50%;
  margin-top: -10px;
  margin-left: -10px;
}

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

/* ---------- Error Messages ---------- */
.field-error {
  font-size: 13px;
  color: #dc3545;
  margin-top: 6px;
  min-height: 0;
}

.form-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #721c24;
  line-height: 1.5;
  display: none;
}

.form-error.visible {
  display: block;
}

/* ---------- Success State ---------- */
.success-state {
  text-align: center;
  padding: 10px 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #d4edda;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-icon svg {
  width: 40px;
  height: 40px;
}

.success-state h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.success-state p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 8px;
}

.success-state .support-link {
  color: #f26b21;
  font-weight: 600;
  text-decoration: none;
}

.success-state .support-link:hover {
  text-decoration: underline;
}

/* ---------- Subscription Section ---------- */
.subscription-section {
  padding: 60px 0;
  background: #fff;
}

.subscription-section .section-heading {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  text-align: center;
  margin-bottom: 24px;
}

.subscription-warning {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  border-left: 4px solid #ffc107;
  border-radius: 8px;
  padding: 20px 24px;
  max-width: 700px;
  margin: 0 auto 24px;
}

.subscription-warning p {
  font-size: 15px;
  color: #664d03;
  line-height: 1.7;
  margin: 0;
}

.platform-steps {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px 24px;
  max-width: 700px;
  margin: 0 auto 16px;
}

.platform-steps h4 {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.platform-steps p {
  font-size: 14px;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

.subscription-links {
  text-align: center;
  max-width: 700px;
  margin: 20px auto 0;
  font-size: 14px;
  color: #888;
}

.subscription-links a {
  color: #e8450a;
  text-decoration: none;
}

.subscription-links a:hover {
  text-decoration: underline;
}

/* ---------- Support Section ---------- */
.support-section {
  padding: 50px 0;
  background: #f8f9fa;
  text-align: center;
}

.support-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.support-section .company-name {
  font-size: 15px;
  color: #666;
  margin-bottom: 4px;
}

.support-section .support-email {
  font-size: 15px;
}

.support-section .support-email a {
  color: #f26b21;
  text-decoration: none;
  font-weight: 600;
}

.support-section .support-email a:hover {
  text-decoration: underline;
}

.support-section .support-note {
  font-size: 13px;
  color: #999;
  margin-top: 12px;
  line-height: 1.6;
}

/* ---------- Legal Links ---------- */
.legal-links-section {
  padding: 24px 0;
  background: #fff;
  border-top: 1px solid #eee;
}

.legal-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

.legal-links-list li a {
  font-size: 13px;
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}

.legal-links-list li a:hover {
  color: #f26b21;
}

/* ---------- Divider ---------- */
.section-divider {
  width: 60px;
  height: 3px;
  background: #f26b21;
  border: none;
  margin: 0 auto 24px;
  border-radius: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .deletion-section {
    padding: 40px 0 60px;
  }

  .deletion-card {
    padding: 28px 20px;
    margin: 0 16px;
    border-radius: 10px;
  }

  .deletion-card .card-heading {
    font-size: 20px;
  }

  .otp-inputs {
    gap: 10px;
  }

  .otp-inputs input {
    width: 48px;
    height: 48px;
    font-size: 20px;
    border-radius: 8px;
  }

  .phone-row .phone-ext {
    width: 110px;
  }

  .subscription-warning,
  .platform-steps {
    margin-left: 16px;
    margin-right: 16px;
  }

  .subscription-links {
    margin-left: 16px;
    margin-right: 16px;
  }

  .subscription-section {
    padding: 40px 0;
  }

  .support-section {
    padding: 40px 0;
  }
}

@media (max-width: 380px) {
  .otp-inputs {
    gap: 8px;
  }

  .otp-inputs input {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}
