/*=============== SUPPORT PAGE STYLES ===============*/

/* Support Hero Section */
.support-hero {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding-top: calc(var(--header-height) + 3rem);
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.support-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.support-hero__content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.support-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.support-hero__title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.support-hero__description {
  font-size: 1.25rem;
  color: var(--gray-color);
  margin-bottom: 3rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.1);
  padding: 0.75rem;
  max-width: 600px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.search-bar:focus-within {
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15);
  border-color: var(--primary-color);
}

.search-bar__icon {
  color: var(--gray-color);
  font-size: 1.25rem;
  margin: 0 1rem;
}

.search-bar__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--dark-color);
  background: transparent;
}

.search-bar__input::placeholder {
  color: var(--gray-color);
}

.search-bar__btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 12px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-bar__btn:hover {
  background: #4f46e5;
  transform: scale(1.05);
}

/* Quick Help Section */
.quick-help {
  padding: 4rem 0;
}

.quick-help__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.help-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.help-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #4f46e5);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.help-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.help-card:hover::before {
  transform: scaleX(1);
}

.help-card__icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), #4f46e5);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.help-card:hover .help-card__icon {
  transform: scale(1.1) rotate(5deg);
}

.help-card__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.help-card__description {
  color: var(--gray-color);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.help-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.help-card__btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateX(4px);
}

/* Support Form Section */
.support-form {
  background: #fafbfc;
  padding: 5rem 0;
}

.support-form__container {
  max-width: 1000px;
  margin: 0 auto;
}

.support-form__header {
  text-align: center;
  margin-bottom: 4rem;
}

.support-form__tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: var(--gray-color);
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 160px;
  justify-content: center;
}

.tab-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.tab-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.support-form__wrapper {
  background: white;
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

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

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--dark-color);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.form-label i {
  color: var(--primary-color);
  font-size: 1rem;
}

.form-input,
.form-select,
.form-textarea {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  color: var(--dark-color);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

/* Rating Input */
.rating-input {
  display: flex;
  gap: 0.5rem;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.rating-input input {
  display: none;
}

.rating-input label {
  cursor: pointer;
  color: #d1d5db;
  font-size: 1.5rem;
  transition: all 0.2s ease;
}

.rating-input label:hover,
.rating-input input:checked ~ label,
.rating-input label:hover ~ label {
  color: #fbbf24;
}

/* File Upload */
.file-upload {
  position: relative;
  border: 2px dashed rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-upload:hover {
  border-color: var(--primary-color);
  background: rgba(59, 130, 246, 0.02);
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload__content i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: block;
}

.file-upload__content span {
  display: block;
  font-weight: 500;
  color: var(--dark-color);
  margin-bottom: 0.25rem;
}

.file-upload__content small {
  color: var(--gray-color);
  font-size: 0.875rem;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
  min-width: 160px;
  justify-content: center;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary-color), #4f46e5);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn--secondary {
  background: rgba(148, 163, 184, 0.1);
  color: var(--gray-color);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.btn--secondary:hover {
  background: rgba(148, 163, 184, 0.15);
  color: var(--dark-color);
}

/* FAQ Section */
.faq {
  padding: 5rem 0;
}

.faq__header {
  text-align: center;
  margin-bottom: 4rem;
}

.faq__content {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  background: white;
  border-radius: 16px;
  margin-bottom: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq__item:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.faq__question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 2rem;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq__question:hover {
  background: rgba(59, 130, 246, 0.02);
}

.faq__icon {
  font-size: 1.25rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.faq__item.active .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 2rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq__item.active .faq__answer {
  padding: 0 2rem 1.5rem;
  max-height: 200px;
}

.faq__answer p {
  color: var(--gray-color);
  line-height: 1.6;
  margin: 0;
}

/* Responsive Design */
@media screen and (max-width: 968px) {
  .support-hero__title {
    font-size: 2.5rem;
  }

  .quick-help__grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .help-card {
    padding: 2rem;
  }

  .support-form__wrapper {
    padding: 2rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .support-form__tabs {
    flex-direction: column;
    align-items: center;
  }

  .tab-btn {
    width: 100%;
    max-width: 300px;
  }

  .form-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media screen and (max-width: 576px) {
  .support-hero {
    padding-top: calc(var(--header-height) + 2rem);
    min-height: 60vh;
  }

  .support-hero__title {
    font-size: 2rem;
  }

  .support-hero__description {
    font-size: 1.1rem;
  }

  .search-bar {
    margin: 0 1rem;
  }

  .help-card {
    padding: 1.5rem;
  }

  .help-card__icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .support-form__wrapper {
    padding: 1.5rem;
    margin: 0 1rem;
  }

  .faq__question {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .faq__answer {
    padding: 0 1.5rem;
  }

  .faq__item.active .faq__answer {
    padding: 0 1.5rem 1rem;
  }
}

/* Success/Error Messages */
.message {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.message--success {
  background: rgba(16, 185, 129, 0.1);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.message--error {
  background: rgba(239, 68, 68, 0.1);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.message i {
  font-size: 1.25rem;
}

/* Loading State */
.btn--loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn--loading i {
  animation: spin 1s linear infinite;
}

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

/* Field Error Styling */
.field-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Selected Files Display */
.selected-files {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.selected-file {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.selected-file i {
  color: var(--primary-color);
}

.selected-file small {
  margin-left: auto;
  opacity: 0.7;
}

/* Search Highlighting */
mark {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1f2937;
  padding: 0.125rem 0.25rem;
  border-radius: 4px;
  font-weight: 600;
}

/* Form Input Error State */
.form-input:invalid,
.form-select:invalid,
.form-textarea:invalid {
  border-color: #ef4444;
}

/* Animation for messages */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message {
  animation: slideInDown 0.3s ease-out;
}
