/* ==========================================================================
   Sinergia — Account Deletion Request (Sinergia The Elite Club mobile app)
   Same design tokens as the main site (/) and /privacy-policy.
   ========================================================================== */

:root {
  --background: #faf7f5;
  --surface: #ffffff;
  --foreground: #201a1c;
  --muted: #f1eae6;
  --muted-foreground: #7a7170;
  --border: #e6dcd7;
  --primary: #5f3049;
  --primary-foreground: #fbf3f6;
  --accent: #c98a9c;
  --accent-soft: #f2e2e6;
  --danger: #b3261e;
  --danger-soft: #fbeceb;
  --danger-border: #f0cdc9;
  --success: #2f6b57;
  --success-soft: #e8f3ef;
  --success-border: #cbe4da;
  --radius-sm: 0.6rem;
  --radius: 1.1rem;
  --radius-lg: 1.75rem;
  --shadow-sm: 0 1px 2px rgba(32, 20, 24, 0.06);
  --shadow: 0 8px 24px -8px rgba(32, 20, 24, 0.14);
  --shadow-lg: 0 24px 60px -20px rgba(32, 20, 24, 0.25);
  --container: 900px;
  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.muted {
  color: var(--muted-foreground);
}

[data-animate],
[data-reveal],
[data-reveal-item] {
  opacity: 0;
}

/* ---------------------------------- Header ---------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 245, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  height: 19px;
  width: auto;
}

.back-link {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .back-link {
    display: inline-flex;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.lang-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
}

.lang-toggle button {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  width: 22px;
  height: 16px;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.45;
  filter: grayscale(0.5);
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.lang-toggle button svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lang-toggle button.active {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.05);
}

.lang-pill {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 16px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--border);
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------------------------- Hero ---------------------------------- */

.section {
  padding: 2.5rem 0;
}

.hero-card {
  background: #17111a;
  color: #fbf3f6;
  border-radius: var(--radius-lg);
  padding: 2.4rem 2.2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 32px solid rgba(251, 243, 246, 0.05);
  pointer-events: none;
}

.hero-card .eyebrow {
  color: var(--accent);
}

.hero-card h1 {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  margin: 0.6rem 0 0.9rem;
}

.hero-card p {
  font-size: 0.92rem;
  color: rgba(251, 243, 246, 0.78);
  max-width: 640px;
  margin: 0;
}

/* ---------------------------------- Content cards ---------------------------------- */

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  margin-top: 1.75rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0 0 0.5rem;
}

.card-title .ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.card-subtitle {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  margin: 0 0 1.4rem;
}

/* ---------------------------------- In-app steps ---------------------------------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.step-box {
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text {
  font-size: 0.86rem;
  color: var(--foreground);
  line-height: 1.5;
}

.step-text strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

/* ---------------------------------- Form ---------------------------------- */

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

label .req {
  color: var(--danger);
  margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--foreground);
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

input:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}

textarea {
  resize: vertical;
  min-height: 96px;
}

.field-error {
  display: none;
  font-size: 0.76rem;
  color: var(--danger);
  margin-top: 0.4rem;
}

.form-group.invalid .field-error {
  display: block;
}

.form-group.invalid input,
.form-group.invalid select {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: var(--danger-soft);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius);
  margin: 1.4rem 0;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--danger);
  flex-shrink: 0;
}

.checkbox-label {
  font-size: 0.83rem;
  color: var(--foreground);
  line-height: 1.5;
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--primary-foreground);
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
}

.btn-submit:disabled {
  background: var(--muted-foreground);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--foreground);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ---------------------------------- Success card ---------------------------------- */

.success-card {
  display: none;
  text-align: center;
  padding: 1rem 0.5rem;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: var(--success-soft);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  font-size: 1.6rem;
}

.success-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 0.6rem;
}

.success-card p {
  font-size: 0.88rem;
  color: var(--muted-foreground);
  max-width: 480px;
  margin: 0 auto 1rem;
}

.ticket-badge {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--muted);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

/* ---------------------------------- Data table ---------------------------------- */

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table th {
  background: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table td {
  color: var(--muted-foreground);
}

.badge-deleted,
.badge-retained {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-deleted {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge-retained {
  background: var(--accent-soft);
  color: var(--primary);
}

.alert-box {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  font-size: 0.82rem;
  color: var(--muted-foreground);
  margin-top: 1.25rem;
}

.alert-box svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--primary);
}

/* ---------------------------------- Footer ---------------------------------- */

.site-footer {
  background: #17111a;
  color: #ede2e6;
  padding: 2.5rem 0 1.75rem;
  margin-top: 3rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-row .brand-logo {
  height: 16px;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.83rem;
}

.footer-links a {
  color: #ede2e6;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(237, 226, 230, 0.14);
  font-size: 0.78rem;
  color: rgba(237, 226, 230, 0.45);
  text-align: center;
}

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

@media (max-width: 640px) {
  .section {
    padding: 1.5rem 0;
  }

  .hero-card,
  .content-card {
    padding: 1.5rem;
  }

  .footer-row {
    flex-direction: column;
    text-align: center;
  }
}
