/* ─────────────────────────────────────────────────────────────────────────────
   GridCode Account Deletion Web App
   Stylesheet
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Variables ──────────────────────────────────────────────────────────────── */
:root {
  --navy:        #1A1F2E;
  --navy-deep:   #12161F;
  --teal:        #3ECFB2;
  --teal-dark:   #2BA893;
  --teal-glow:   rgba(62, 207, 178, 0.12);
  --teal-glow2:  rgba(62, 207, 178, 0.06);
  --red:         #E74C3C;
  --red-light:   #FDECEB;
  --red-dark:    #C0392B;
  --amber:       #F39C12;
  --amber-light: #FEF3DC;
  --green:       #27AE60;
  --green-light: #EAFAF1;
  --white:       #FFFFFF;
  --off-white:   #F7F8FA;
  --border:      #E1E4E8;
  --muted:       #7A8599;
  --text:        #2D3748;
  --text-light:  #5A6577;
  --font:        'Montserrat', sans-serif;
  --radius:      12px;
  --radius-sm:   8px;
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { height: 100%; }

body {
  font-family: var(--font);
  background: var(--off-white);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
.header {
  background: #000000;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.logo img {
  height: 42px;
  width: auto;
}

.header-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--teal);
  background: rgba(62, 207, 178, 0.15);
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

/* ── Main ───────────────────────────────────────────────────────────────────── */
.main {
  flex: 1;
  padding: 20px 16px 40px;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
}

/* ── Steps ──────────────────────────────────────────────────────────────────── */
.step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.step.active {
  display: block;
}

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

/* ── Card ───────────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* ── Step Indicator ─────────────────────────────────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s;
  flex-shrink: 0;
}

.step-dot.active {
  background: var(--teal);
  width: 24px;
  border-radius: 4px;
}

.step-dot.done {
  background: var(--teal);
}

/* ── Typography ─────────────────────────────────────────────────────────────── */
.page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* ── Warning Panel ──────────────────────────────────────────────────────────── */
.warning-panel {
  background: var(--red-light);
  border: 1px solid rgba(231, 76, 60, 0.25);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.warning-panel .icon {
  font-size: 18px;
  margin-bottom: 8px;
  display: block;
}

.warning-panel h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--red-dark);
  margin-bottom: 8px;
}

.warning-panel p {
  font-size: 13px;
  color: #7A3530;
  line-height: 1.6;
}

.warning-panel ul {
  font-size: 13px;
  color: #7A3530;
  line-height: 1.8;
  padding-left: 18px;
  margin-top: 6px;
}

/* ── Info Panel ─────────────────────────────────────────────────────────────── */
.info-panel {
  background: var(--teal-glow2);
  border: 1px solid rgba(62, 207, 178, 0.2);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.info-panel p {
  font-size: 13px;
  color: var(--teal-dark);
  line-height: 1.6;
}

/* ── Checkboxes ─────────────────────────────────────────────────────────────── */
.check-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 12px;
  user-select: none;
}

.check-group:hover {
  border-color: var(--teal);
}

.check-group.checked {
  border-color: var(--teal);
  background: var(--teal-glow);
}

.check-box {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 2px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  margin-top: 1px;
}

.check-group.checked .check-box {
  background: var(--teal);
  border-color: var(--teal);
}

.check-group.checked .check-box::after {
  content: "✓";
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.check-label {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}

/* ── Form Fields ────────────────────────────────────────────────────────────── */
.field {
  margin-bottom: 16px;
}

.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  display: block;
  letter-spacing: 0.02em;
}

.field-hint {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
  display: block;
  font-style: italic;
}

/* ── Select Tabs ────────────────────────────────────────────────────────────── */
.select-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 14px;
}

.select-tab {
  padding: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  background: var(--off-white);
}

.select-tab:first-child {
  border-right: 1.5px solid var(--border);
}

.select-tab.active {
  background: var(--navy);
  color: var(--white);
}

/* ── Input Group ────────────────────────────────────────────────────────────── */
.input-group {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.15s;
}

.input-group:focus-within {
  border-color: var(--teal);
}

.input-prefix {
  background: var(--off-white);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.input-group input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  min-width: 0;
}

.input-group input::placeholder {
  color: #C5C8CE;
}

input.standalone {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s;
}

input.standalone:focus {
  border-color: var(--teal);
}

/* ── OTP Input ──────────────────────────────────────────────────────────────── */
.otp-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 20px 0;
}

.otp-box {
  width: 46px;
  height: 54px;
  border: 2px solid var(--border);
  border-radius: 10px;
  text-align: center;
  font-family: var(--font);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  outline: none;
  transition: border-color 0.15s;
  caret-color: var(--teal);
}

.otp-box:focus {
  border-color: var(--teal);
  background: var(--teal-glow);
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:active { transform: scale(0.985); }

.btn-danger          { background: var(--red);    color: var(--white); }
.btn-danger:hover    { background: var(--red-dark); }
.btn-danger:disabled { background: #E0A19B; cursor: not-allowed; }

.btn-primary          { background: var(--navy);    color: var(--white); }
.btn-primary:hover    { background: var(--navy-deep); }
.btn-primary:disabled { background: #7A8599; cursor: not-allowed; }

.btn-outline       { background: transparent; color: var(--text-light); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--muted); color: var(--text); }

/* ── Spinner ────────────────────────────────────────────────────────────────── */
.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* ── Success State ──────────────────────────────────────────────────────────── */
.success-icon {
  width: 72px;
  height: 72px;
  margin: 20px auto;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.success-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  text-align: center;
  margin-bottom: 8px;
}

.success-message {
  font-size: 13.5px;
  color: var(--text-light);
  text-align: center;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ── Error Message ──────────────────────────────────────────────────────────── */
.error-msg {
  font-size: 12px;
  color: var(--red);
  margin-top: 6px;
  display: none;
}

.error-msg.show {
  display: block;
}

/* ── Resend / Timer ─────────────────────────────────────────────────────────── */
.resend {
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.resend a {
  color: var(--teal);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}

.resend a:hover { text-decoration: underline; }

.timer {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.timer strong {
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.footer {
  padding: 16px 20px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--white);
}

.footer a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover { text-decoration: underline; }

.footer-copyright {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  text-align: left;
  font-size: 10px;
  color: #999;
  line-height: 1.7;
}

.footer-copyright a {
  color: var(--teal);
  font-weight: 500;
}

/* ── Processing spinner (step 4) ────────────────────────────────────────────── */
.processing-spinner {
  margin: 0 auto 16px;
  border-color: rgba(26, 31, 46, 0.2);
  border-top-color: var(--navy);
  width: 36px;
  height: 36px;
  border-width: 3px;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (min-width: 480px) {
  .main { padding: 28px 20px 60px; }
  .card { padding: 28px; }
}
