/* ─── Support Hero ─── */
.support-hero {
  position: relative;
  padding: 140px 0 64px;
  overflow: hidden;
  background: linear-gradient(160deg, #fff8f8 0%, #f0fffe 50%, #fff 100%);
}

.support-hero-content {
  position: relative;
  max-width: 520px;
}

.support-hero-content h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.support-hero-content p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 440px;
}

/* ─── Form Layout ─── */
.support-form-section {
  padding: 64px 0 96px;
}

.support-layout {
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Form ─── */
.support-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-3);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255,107,107,0.1);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ─── Submit Button ─── */
.btn-submit {
  height: 52px;
  padding: 0 32px;
  background: var(--coral);
  color: white;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255,107,107,0.35);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,107,107,0.45);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-submit-loading {
  align-items: center;
  gap: 8px;
}

.btn-submit-loading[hidden] {
  display: none !important;
}

.btn-submit-loading:not([hidden]) {
  display: flex;
}

.spinner {
  animation: spin 0.8s linear infinite;
}

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

/* ─── Success State ─── */
.support-success {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.support-success[hidden] { display: none; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.success-inner {
  text-align: center;
  max-width: 400px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.success-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(78,205,196,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.success-inner h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
}

.success-inner p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .btn-submit {
    width: 100%;
    align-self: stretch;
  }
}

/* ─── Dark mode ─── */
@media (prefers-color-scheme: dark) {
  .support-hero {
    background: linear-gradient(160deg, #110a0a 0%, #0a1110 50%, #0a0a0a 100%);
  }

  .support-success {
    background: rgba(10,10,10,0.95);
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group textarea {
    background: #111;
  }
}
