*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #38bdf8;
  --accent2: #0ea5e9;
  --muted: rgba(255, 255, 255, 0.45);
  --card-bg: #0f1c2e;
  --glass-border: rgba(56, 189, 248, 0.15);
}

body {
  min-height: 100vh;
  background: linear-gradient(-45deg, #0f172a, #0b1f3a, #0f172a, #112240);
  background-size: 400% 400%;
  animation: gradMove 12s ease infinite;
  color: white;
  font-family: "Inter", "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
}

@keyframes gradMove {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 6px #10b981;
  }
  50% {
    box-shadow: 0 0 16px #10b981;
  }
}

.hidden {
  display: none !important;
}

/* ── NAV ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 60px;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.7);
  animation: fadeInDown 0.5s ease-out;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}
.logo span:first-child {
  color: white;
}
.logo span:last-child {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  transition: 0.25s;
}
.btn-back:hover {
  background: rgba(56, 189, 248, 0.15);
  transform: translateX(-3px);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.2);
}

/* ── MAIN ── */
main {
  flex: 1;
  padding: 50px 60px 80px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* ── HEADER ── */
.support-header {
  text-align: center;
  margin-bottom: 48px;
  animation: fadeInUp 0.7s ease-out;
}
.support-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.15);
}
.support-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.support-header p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── LAYOUT ── */
.support-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
  animation: fadeInUp 0.7s ease-out 0.1s backwards;
}

/* ── TICKET CARD ── */
.ticket-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.ticket-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 28px;
  background: rgba(56, 189, 248, 0.05);
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

form {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── SUCCESS ── */
.success-msg {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 28px;
  background: rgba(34, 197, 94, 0.08);
  border-bottom: 1px solid rgba(34, 197, 94, 0.15);
  color: #4ade80;
}
.success-msg strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.success-msg p {
  font-size: 0.82rem;
  color: rgba(74, 222, 128, 0.7);
  margin: 0;
}

/* ── FORM ELEMENTS ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.input-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.input-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}
.required {
  color: var(--accent);
}
.optional {
  color: var(--muted);
  font-weight: 400;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: 0.25s;
}
.input-group input:focus,
.input-group textarea:focus {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}
.input-group input::placeholder,
.input-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}
.input-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.char-count {
  text-align: right;
  font-size: 0.72rem;
  color: var(--muted);
}

/* ── CATEGORIES ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.cat-option {
  display: block;
}
.cat-option input[type="radio"] {
  display: none;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 88px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: 0.2s;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  padding: 0 6px;
}
.cat-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.07);
  color: white;
  transform: translateY(-2px);
}
.cat-option input[type="radio"]:checked + .cat-card {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.13);
  color: var(--accent);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.18);
}

/* ── FILE UPLOAD ── */
.file-drop {
  border: 2px dashed rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: 0.25s;
  color: var(--muted);
  background: rgba(56, 189, 248, 0.02);
  text-align: center;
}
.file-drop:hover,
.file-drop.dragover {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.06);
  color: var(--accent);
}
.file-drop-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}
.file-drop-text small {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 400;
}

.file-preview {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--accent);
}
.file-preview img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 7px;
}
.remove-file {
  margin-left: auto;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 7px;
  color: #f87171;
  cursor: pointer;
  padding: 5px 9px;
  font-size: 12px;
  transition: 0.2s;
}
.remove-file:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* ── SUBMIT BUTTON + SPINNER ── */
.submit-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.25s;
}
.submit-btn:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.4);
}
.submit-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* SPINNER — dreht sich beim Laden */
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(15, 23, 42, 0.25);
  border-top-color: #0f172a;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* ── SIDEBAR ── */
.info-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: 0.25s;
  animation: fadeInUp 0.7s ease-out backwards;
}
.info-card:nth-child(1) {
  animation-delay: 0.15s;
}
.info-card:nth-child(2) {
  animation-delay: 0.25s;
}
.info-card:nth-child(3) {
  animation-delay: 0.35s;
}
.info-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.03);
}

.info-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.info-card strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 3px;
}
.info-card p {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ── FAQ ── */
.faq-section {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 18px 20px;
  animation: fadeInUp 0.7s ease-out 0.4s backwards;
}
.faq-section h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.faq-item {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
}
.faq-item:first-of-type {
  border-top: none;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  gap: 8px;
  transition: color 0.2s;
}
.faq-q svg {
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.open .faq-q {
  color: var(--accent);
}
.faq-item.open .faq-q svg {
  transform: rotate(180deg);
}
.faq-a {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.35s ease;
}
.faq-item.open .faq-a {
  max-height: 150px;
  padding-bottom: 12px;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 20px 60px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.footer-link {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  font-size: 13px;
  transition: 0.25s;
}
.footer-link:hover {
  color: var(--accent);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  main {
    padding: 30px 24px 60px;
  }
  nav {
    padding: 14px 20px;
  }
  footer {
    padding: 16px 20px;
    flex-direction: column;
    gap: 8px;
  }
  .support-container {
    grid-template-columns: 1fr;
  }
  .info-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .faq-section {
    grid-column: span 2;
  }
}
@media (max-width: 640px) {
  main {
    padding: 24px 16px 50px;
  }
  nav {
    padding: 12px 16px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ticket-card {
    border-radius: 18px;
  }
  form {
    padding: 20px 16px;
  }
  .ticket-header {
    padding: 16px 20px;
  }
  .info-sidebar {
    grid-template-columns: 1fr;
  }
  .faq-section {
    grid-column: span 1;
  }
}
