/* Support page theme */
:root {
  --support-bg: #000115;
  --support-panel: #0d0e22;
  --support-card: #181a2c;
  --support-input: #282a39;
  --support-muted: #9697a9;
  --support-accent: #ff4bd2;
}

body.support-body {
  background: var(--support-bg);
}

body.support-modal-open {
  overflow: hidden;
}

/* Page layout */
.support-main {
  min-height: 1100px;
  padding: 55px 16px 96px;
  overflow: visible;
  background: var(--support-bg);
}

.support-container {
  width: min(720px, 100%);
  margin-inline: auto;
}

.support-heading {
  margin-bottom: 30px;
  text-align: center;
}

.support-heading h1 {
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(32px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.support-heading p {
  color: #b2b2c0;
  font-size: 14px;
  line-height: 1.45;
}

.support-panel {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.025);
  border-radius: 36px;
  background: var(--support-panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

.support-panel > h2 {
  margin-bottom: 27px;
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
}

/* Form */
.support-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
}

.form-field {
  min-width: 0;
}

.form-field--wide {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: #f4f3f8;
  font-size: 12px;
  font-weight: 500;
}

.form-field label span {
  color: #ff708b;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  outline: 0;
  background: var(--support-input);
  color: #fff;
  font: inherit;
  font-size: 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.form-field input,
.form-field select {
  height: 45px;
  padding: 0 13px;
  border-radius: 999px;
}

.form-field textarea {
  min-height: 113px;
  padding: 13px;
  resize: vertical;
  border-radius: 22px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #818393;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--support-accent);
  box-shadow: 0 0 0 2px rgba(255, 75, 210, 0.08);
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: 14px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  transform: translateY(-53%);
  pointer-events: none;
}

.select-wrap select {
  appearance: none;
  padding-right: 40px;
}

.select-wrap--date::after {
  font-size: 26px;
}

.field-error {
  display: none;
  width: max-content;
  margin: 5px 0 -1px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #ffc0c3;
  color: #9c555d;
  font-size: 10px;
  line-height: 1.2;
}

.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
  border-color: #ff8a9b;
  box-shadow: 0 0 0 2px rgba(255, 138, 155, 0.08);
}

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

.payment-methods {
  min-height: 30px;
  margin: 24px 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.payment-logo {
  width: 41px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #c9c9cf;
  border-radius: 3px;
  background: #f8f8f8;
  color: #172276;
  font-size: 12px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
}

.payment-logo--mastercard {
  position: relative;
  gap: 0;
}

.payment-logo--mastercard i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e43b28;
}

.payment-logo--mastercard i + i {
  margin-left: -5px;
  background: #f3a321;
  opacity: 0.9;
}

.payment-logo--discover {
  color: #222;
  font-size: 7px;
  letter-spacing: -0.04em;
}

.payment-logo--discover span {
  color: #f47b27;
}

.payment-logo--amex {
  color: #3187af;
  font-size: 9px;
  font-style: normal;
}

.submit-support,
.success-button {
  width: 100%;
  min-height: 50px;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}

.success-button:focus-visible {
  outline: 2px solid #ff4bd2;
  outline-offset: 3px;
}

.support-response-note {
  margin-top: 12px;
  color: #858697;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

/* Support benefits */
.support-benefits {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.support-benefit {
  min-height: 208px;
  padding: 24px 16px;
  border: 1px solid rgba(255, 255, 255, 0.025);
  border-radius: 24px;
  background: var(--support-card);
}

.support-benefit-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(121, 20, 144, 0.58);
  color: #ff4bd2;
  box-shadow: 0 0 24px rgba(171, 38, 194, 0.2);
}

.support-benefit-icon svg {
  width: 25px;
  height: 25px;
}

.support-benefit h3 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 15px;
  line-height: 1.25;
}

.support-benefit p {
  color: #9697aa;
  font-size: 12px;
  line-height: 1.5;
}

/* Success modal */
.support-success-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 1;
  transition: opacity 180ms ease;
}

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

.support-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(0, 0, 10, 0.74);
  cursor: default;
  backdrop-filter: blur(1.5px);
}

.support-modal-card {
  position: relative;
  z-index: 1;
  width: min(500px, 100%);
  padding: 34px 28px 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  background: #0d0e22;
  text-align: center;
  box-shadow:
    0 0 52px rgba(255, 75, 210, 0.32),
    0 24px 70px rgba(0, 0, 0, 0.55);
  animation: support-modal-in 220ms ease both;
}

@keyframes support-modal-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
}

.success-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ff4bd2;
  background: rgba(255, 75, 210, 0.07);
  box-shadow: 0 0 30px rgba(255, 75, 210, 0.22);
}

.success-icon svg {
  width: 32px;
  height: 32px;
}

.support-modal-card h2 {
  margin-bottom: 9px;
  color: #fff;
  font-size: 24px;
}

.support-modal-card p {
  margin-bottom: 26px;
  color: #a7a8b8;
  font-size: 13px;
  line-height: 1.35;
}

/* Mobile */
@media (max-width: 620px) {
  .support-main {
    min-height: 1200px;
    padding: 56px 16px;
  }

  .support-heading {
    margin-bottom: 32px;
  }

  .support-heading h1 {
    max-width: 240px;
    margin-inline: auto;
    margin-bottom: 12px;
    font-size: 28px;
  }

  .support-heading p {
    font-size: 11px;
  }

  .support-heading p br {
    display: none;
  }

  .support-panel {
    padding: 22px 16px 16px;
    border-radius: 26px;
  }

  .support-panel > h2 {
    margin-bottom: 22px;
    font-size: 20px;
  }

  .support-form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .form-field--wide {
    grid-column: auto;
  }

  .form-field input,
  .form-field select {
    height: 43px;
    font-size: 12px;
  }

  .form-field textarea {
    min-height: 112px;
    font-size: 12px;
  }

  .payment-methods {
    margin: 22px 0 20px;
    gap: 10px;
  }

  .payment-logo {
    width: 36px;
    height: 24px;
  }

  .submit-support {
    min-height: 44px;
    font-size: 12px;
  }

  .support-response-note {
    font-size: 9px;
  }

  .support-benefits {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .support-benefit {
    min-height: 150px;
    padding: 20px 16px;
  }

  .support-benefit-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
  }

  .support-success-modal {
    padding: 16px;
  }

  .support-modal-card {
    width: min(358px, 100%);
    padding: 24px 20px 20px;
    border-radius: 24px;
  }

  .success-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 17px;
  }

  .success-icon svg {
    width: 29px;
    height: 29px;
  }

  .support-modal-card h2 {
    font-size: 20px;
  }

  .support-modal-card p {
    margin-bottom: 22px;
    font-size: 11px;
  }

  .success-button {
    min-height: 44px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .support-modal-card {
    animation: none;
  }
}
