* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, sans-serif; }

body {
  background: #0a0e14;
  color: #e6e9ef;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

/* ========== ПЕРЕМИКАЧ МОВИ ========== */
.lang-switcher {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  gap: 4px;
  background: rgba(19, 24, 32, 0.9);
  border: 1px solid #1f2733;
  border-radius: 100px;
  padding: 5px;
  backdrop-filter: blur(10px);
  z-index: 100;
}

.lang-btn {
  background: transparent;
  border: none;
  color: #8b95a5;
  padding: 10px 18px;
  border-radius: 100px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}

.lang-btn:hover { color: #fff; }

.lang-btn.active {
  background: linear-gradient(135deg, #ff8c00, #ff5500);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,140,0,0.3);
}

/* ========== КНОПКИ YOUTUBE / STEAM ЛІВОРУЧ ========== */
.side-social {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  background: rgba(19, 24, 32, 0.9);
  border: 1px solid #1f2733;
  border-radius: 100px;
  backdrop-filter: blur(10px);
  z-index: 100;
}

.side-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #8b95a5;
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
}

.side-btn.yt:hover {
  color: #ff0000;
  background: rgba(255,0,0,0.12);
  transform: scale(1.08);
}

.side-btn.st:hover {
  color: #66c0f4;
  background: rgba(102,192,244,0.12);
  transform: scale(1.08);
}

.side-tooltip {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  background: #1f2733;
  color: #fff;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  border: 1px solid #2a3441;
}

.side-btn:hover .side-tooltip { opacity: 1; }

.side-tooltip::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: #1f2733;
}

/* ========== ФОРМА ========== */
.form-wrapper {
  width: 100%;
  max-width: 720px;
  background: linear-gradient(145deg, #131820, #0d1218);
  border: 1px solid #1f2733;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: fadeUp 0.6s ease;
}

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

.form-header h2 {
  font-size: 26px;
  margin-bottom: 8px;
  color: #fff;
}

.form-header p {
  color: #8b95a5;
  font-size: 14px;
}

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

.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }

label {
  font-size: 13px;
  font-weight: 600;
  color: #b8c0cc;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

input, select, textarea {
  background: #0a0e14;
  border: 1px solid #252d3a;
  border-radius: 10px;
  padding: 14px 16px;
  color: #fff;
  font-size: 15px;
  transition: all 0.2s ease;
  outline: none;
  font-family: inherit;
}

input::placeholder, textarea::placeholder { color: #4a5563; }

input:focus, select:focus, textarea:focus {
  border-color: #ff8c00;
  box-shadow: 0 0 0 3px rgba(255,140,0,0.15);
}

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

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b95a5' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

select option { background: #131820; color: #fff; }

button[type="submit"] {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #ff8c00, #ff5500);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255,140,0,0.4);
}

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.success-message {
  display: none;
  text-align: center;
  padding: 40px 20px;
  animation: fadeUp 0.5s ease;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #ff8c00, #ff5500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: 0 0 40px rgba(255,140,0,0.4);
}

.success-message h2 { font-size: 26px; margin-bottom: 12px; color: #fff; }
.success-message p { color: #8b95a5; margin-bottom: 24px; }

.success-message button {
  width: auto;
  padding: 12px 32px;
  background: transparent;
  border: 1px solid #ff8c00;
  color: #ff8c00;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.success-message button:hover { background: rgba(255,140,0,0.1); }

.honeypot-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

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

/* ========== АДАПТАЦІЯ ========== */
@media (max-width: 900px) {
  .side-social { left: 12px; padding: 6px; }
  .side-btn { width: 40px; height: 40px; }
  .side-btn svg { width: 18px; height: 18px; }
  .side-tooltip { display: none; }
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-wrapper { padding: 24px; }
  .lang-switcher { top: 12px; right: 12px; }
  .lang-btn { padding: 6px 10px; font-size: 12px; }
  .side-social {
    left: 50%;
    top: auto;
    bottom: 16px;
    transform: translateX(-50%);
    flex-direction: row;
  }
}