@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --border-focus: rgba(99,102,241,0.5);
  --text-primary: #f1f1f6;
  --text-secondary: #8b8b9e;
  --text-muted: #5a5a6e;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99,102,241,0.15);
  --danger: #ef4444;
  --danger-glow: rgba(239,68,68,0.15);
  --success: #22c55e;
  --wa-green: #25D366;
  --tg-blue: #0088cc;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Effects */
.bg-effects {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
.bg-orb {
  position: absolute; border-radius: 50%; filter: blur(120px);
  animation: float 20s ease-in-out infinite;
}
.bg-orb--1 {
  width: 600px; height: 600px; top: -200px; right: -200px;
  background: radial-gradient(circle, rgba(99,102,241,0.12), transparent 70%);
}
.bg-orb--2 {
  width: 500px; height: 500px; bottom: -150px; left: -150px;
  background: radial-gradient(circle, rgba(239,68,68,0.08), transparent 70%);
  animation-delay: -7s;
}
.bg-orb--3 {
  width: 400px; height: 400px; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(34,197,94,0.06), transparent 70%);
  animation-delay: -14s;
}
.bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-30px) scale(1.05); }
  66% { transform: translate(-20px,20px) scale(0.95); }
}

/* Container */
.container {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto;
  padding: 40px 20px 60px;
}

/* Header */
.header {
  text-align: center; margin-bottom: 48px;
  animation: fadeUp 0.8s ease-out;
}
.header__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 100px;
  background: var(--danger-glow);
  border: 1px solid rgba(239,68,68,0.2);
  color: var(--danger); font-size: 13px; font-weight: 600;
  margin-bottom: 24px; letter-spacing: 0.5px;
}
.header__badge svg { width: 16px; height: 16px; }
.header__title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.header__title span {
  background: linear-gradient(135deg, var(--accent-light), var(--danger));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header__desc {
  font-size: 16px; color: var(--text-secondary);
  max-width: 520px; margin: 0 auto; line-height: 1.7;
}

/* App Info */
.app-info {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease-out 0.1s both;
}
.app-info__icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #a855f7);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.app-info__details h3 { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.app-info__details p { font-size: 13px; color: var(--text-muted); }

/* Privacy Section */
.privacy-section {
  padding: 24px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease-out 0.15s both;
}
.privacy-section h2 {
  font-size: 18px; font-weight: 700; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.privacy-section h2 svg { color: var(--accent-light); width: 20px; height: 20px; }
.privacy-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.privacy-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: var(--text-secondary); line-height: 1.6;
}
.privacy-list li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-top: 8px; flex-shrink: 0;
}

/* Form Card */
.form-card {
  padding: 32px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  animation: fadeUp 0.8s ease-out 0.2s both;
}
.form-card__header {
  margin-bottom: 28px;
}
.form-card__header h2 {
  font-size: 20px; font-weight: 700; margin-bottom: 6px;
}
.form-card__header p {
  font-size: 14px; color: var(--text-secondary);
}

/* Form */
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.form-group label .required { color: var(--danger); margin-left: 2px; }

.form-input, .form-select, .form-textarea {
  width: 100%; padding: 14px 16px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--border-focus);
  background: rgba(99,102,241,0.04);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-muted);
}
.form-select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b8b9e' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.form-select option { background: var(--bg-secondary); color: var(--text-primary); }
.form-textarea { resize: vertical; min-height: 110px; }

/* Checkbox */
.checkbox-group {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 28px 0;
}
.checkbox-group input[type="checkbox"] {
  appearance: none; width: 20px; height: 20px; min-width: 20px;
  border-radius: 6px; border: 2px solid var(--border);
  background: transparent; cursor: pointer;
  transition: all 0.2s; margin-top: 2px;
  position: relative;
}
.checkbox-group input[type="checkbox"]:checked {
  background: var(--accent); border-color: var(--accent);
}
.checkbox-group input[type="checkbox"]:checked::after {
  content: '✓'; color: #fff; font-size: 12px; font-weight: 700;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.checkbox-group label {
  font-size: 13px; color: var(--text-secondary); line-height: 1.6; cursor: pointer;
}

/* Warning Box */
.warning-box {
  display: flex; gap: 12px; padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.15);
  margin-bottom: 24px;
}
.warning-box svg { color: var(--danger); min-width: 20px; width: 20px; margin-top: 2px; }
.warning-box p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.warning-box strong { color: var(--danger); }

/* Send Buttons */
.send-buttons { display: flex; gap: 12px; margin-top: 8px; }
.btn-send {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 20px; border-radius: var(--radius-sm);
  border: none; cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 600;
  transition: all 0.3s ease;
  color: #fff; text-decoration: none;
}
.btn-send:active { transform: scale(0.97); }
.btn-send svg { width: 20px; height: 20px; }
.btn-send--wa {
  background: linear-gradient(135deg, #25D366, #128C7E);
}
.btn-send--wa:hover { box-shadow: 0 8px 30px rgba(37,211,102,0.3); transform: translateY(-2px); }
.btn-send--tg {
  background: linear-gradient(135deg, #0088cc, #0077b5);
}
.btn-send--tg:hover { box-shadow: 0 8px 30px rgba(0,136,204,0.3); transform: translateY(-2px); }

/* Steps */
.steps {
  margin-top: 40px; padding: 24px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  animation: fadeUp 0.8s ease-out 0.3s both;
}
.steps h3 {
  font-size: 16px; font-weight: 700; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.steps h3 svg { color: var(--accent-light); width: 20px; height: 20px; }
.steps-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.steps-list li {
  display: flex; gap: 14px; font-size: 14px;
  color: var(--text-secondary); line-height: 1.6;
}
.step-num {
  width: 28px; height: 28px; min-width: 28px;
  border-radius: 50%;
  background: var(--accent-glow); border: 1px solid rgba(99,102,241,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--accent-light);
}

/* Footer */
.footer {
  text-align: center; margin-top: 48px;
  padding-top: 32px; border-top: 1px solid var(--border);
  animation: fadeUp 0.8s ease-out 0.35s both;
}
.footer p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.footer a { color: var(--accent-light); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Success toast */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
  padding: 14px 28px; border-radius: var(--radius-sm);
  background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3);
  color: var(--success); font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  opacity: 0; transition: all 0.4s ease; z-index: 999;
  backdrop-filter: blur(20px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Validation */
.form-input.error, .form-select.error, .form-textarea.error {
  border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-glow);
}
.error-msg {
  font-size: 12px; color: var(--danger); margin-top: 6px; display: none;
}
.error-msg.show { display: block; }

/* Language Toggle */
.lang-toggle {
  position: fixed; top: 20px; right: 20px; z-index: 100;
  display: flex; align-items: center;
  background: rgba(18,18,26,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 100px; padding: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: fadeUp 0.6s ease-out;
  overflow: hidden;
}
.lang-btn {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 100px;
  border: none; background: transparent;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: color 0.3s ease;
  white-space: nowrap;
}
.lang-btn.active { color: #fff; }
.lang-btn:hover:not(.active) { color: var(--text-secondary); }
.lang-flag { font-size: 16px; line-height: 1; }
.lang-slider {
  position: absolute; top: 4px; left: 4px;
  width: calc(50% - 4px); height: calc(100% - 8px);
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  border-radius: 100px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  box-shadow: 0 2px 12px rgba(99,102,241,0.4);
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 600px) {
  .container { padding: 24px 16px 40px; }
  .form-card { padding: 24px 20px; }
  .send-buttons { flex-direction: column; }
  .app-info { flex-direction: column; text-align: center; }
  .lang-toggle { top: 12px; right: 12px; }
  .lang-btn { padding: 8px 14px; font-size: 12px; }
  .header { padding-top: 56px; }
}
