/* Shared support form pages styles */
.support-page {
  min-height: calc(100vh - 120px);
  display: flex;
  justify-content: center;
  padding: 48px 20px 64px;
  font-family: var(--font-family);
}

.support-container {
  width: 100%;
  max-width: 560px;
}

.support-logo {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}

.support-logo__word {
  display: inline-flex;
  align-items: flex-end;
  font-size: 30px;
  line-height: 30px;
  font-weight: 700;
  color: #fc6902;
  letter-spacing: -0.03em;
}

.support-logo__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #fc6902;
  margin-left: 3px;
  margin-bottom: 2px;
}

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

.support-header__title {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: #1b1230;
}

.support-header__subtitle {
  margin: 0;
  font-size: 19px;
  line-height: 27px;
  color: #666462;
}

.support-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 8px 0 rgba(36, 36, 36, 0.15);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.support-field__label {
  display: block;
  margin-bottom: 2px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.support-field__req {
  color: #fc6902;
}

.support-field__optional {
  color: #a8a4a2;
  font-weight: 400;
}

.support-field__hint {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 20px;
  color: #666462;
}

.support-input {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: 8px;
  background: #f7f1ef;
  border: 2px solid transparent;
  transition: border-color 150ms cubic-bezier(0.2, 0, 0, 1);
}

.support-input:focus-within,
.support-input.is-filled {
  border-color: #fc6902;
}

.support-input.is-error {
  border-color: #c60808;
}

.support-input__control {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 16px;
  line-height: 24px;
  color: #262625;
  font-family: var(--font-family);
}

.support-input__control::placeholder {
  color: #a8a4a2;
}

textarea.support-input__control {
  resize: vertical;
  min-height: 120px;
}

.support-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px;
  border-radius: 8px;
  background: #f7f1ef;
  border: 2px dashed #a8a4a2;
  cursor: pointer;
  transition:
    background 150ms ease-out,
    border-color 150ms ease-out;
}

.support-dropzone.is-dragging {
  background: #fcf2ea;
  border-color: #fc6902;
}

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

.support-dropzone__icon {
  color: #666462;
}

.support-dropzone__title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.support-dropzone__sub {
  font-size: 14px;
  line-height: 20px;
  color: #666462;
}

.support-dropzone__input {
  display: none;
}

.support-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #f7f1ef;
}

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

.support-file__thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #fcf2ea;
  color: #fc6902;
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-file__meta {
  flex: 1;
  min-width: 0;
}

.support-file__name {
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-file__size {
  font-size: 12px;
  line-height: 16px;
  color: #666462;
}

.support-file__remove {
  border: 0;
  background: transparent;
  color: #a8a4a2;
  cursor: pointer;
  padding: 4px;
  display: flex;
}

.support-file__remove:hover {
  color: #262625;
}

.support-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

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

.support-actions__note {
  font-size: 14px;
  line-height: 20px;
  color: #a8a4a2;
}

.support-btn {
  border: 0;
  cursor: pointer;
  background: #fc6902;
  color: #fcf2ea;
  font-size: 19px;
  line-height: 27px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition:
    background 150ms ease-out,
    opacity 150ms ease-out;
}

.support-btn:hover {
  background: #c25102;
}

.support-btn:active {
  background: #994001;
}

.support-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.support-btn__spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(252, 242, 234, 0.45);
  border-top-color: #fcf2ea;
  animation: support-spin 1s linear infinite;
}

.support-error {
  margin-top: -6px;
  font-size: 14px;
  line-height: 20px;
  color: #c60808;
}

.support-success {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px 0 rgba(36, 36, 36, 0.12);
  padding: 56px 40px;
  text-align: center;
}

.support-success__badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fcf2ea;
  color: #fc6902;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.support-success__title {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 40px;
  color: #1b1230;
}

.support-success__body {
  margin: 0 auto 32px;
  max-width: 380px;
  font-size: 16px;
  line-height: 24px;
  color: #666462;
}

.support-btn-secondary {
  border: 0;
  cursor: pointer;
  background: #f7f1ef;
  color: #262625;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
}

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

@media (max-width: 768px) {
  .support-page {
    padding: 36px 16px 48px;
  }

  .support-card {
    padding: 20px;
  }

  .support-header__title {
    font-size: 30px;
    line-height: 36px;
  }

  .support-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .support-success {
    padding: 42px 24px;
  }

  .support-success__title {
    font-size: 28px;
    line-height: 34px;
  }
}
