:root {
  --primary: hsl(245, 75%, 52%);
  --primary-hover: hsl(245, 75%, 47%);
  --primary-light: hsl(245, 100%, 97%);
  --primary-dark: hsl(245, 75%, 42%);

  --secondary: hsl(220, 14%, 96%);
  --secondary-hover: hsl(220, 14%, 91%);

  --accent: hsl(15, 85%, 55%);
  --accent-light: hsl(15, 100%, 97%);

  --background: hsl(0, 0%, 100%);
  --surface: hsl(220, 14%, 98%);
  --surface-hover: hsl(220, 14%, 94%);

  --text-primary: hsl(220, 26%, 14%);
  --text-secondary: hsl(220, 9%, 46%);
  --text-muted: hsl(220, 9%, 64%);

  --border: hsl(220, 13%, 91%);
  --border-hover: hsl(220, 13%, 84%);

  --success: hsl(142, 71%, 45%);
  --warning: hsl(38, 92%, 50%);
  --error: hsl(0, 84%, 60%);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(
    135deg,
    var(--surface) 0%,
    var(--background) 100%
  );
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Container */
.support-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Header */
.support-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.support-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.support-header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Tab Navigation */
.tab-navigation {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  background: var(--surface);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  min-width: fit-content;
}

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

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

.tab-btn i {
  margin-right: 0.5rem;
}

/* Tab Content */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Support Cards */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.support-card {
  background: var(--background);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: var(--transition-slow);
  border: 1px solid var(--border);
}

.support-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.card-header {
  padding: 2rem;
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--surface) 100%
  );
  border-bottom: 1px solid var(--border);
}

.card-header h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.card-header i {
  font-size: 1.5rem;
  color: var(--primary);
  width: 24px;
  text-align: center;
}

.card-header p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin: 0;
}

.card-body {
  padding: 2rem;
}

/* Form Styles */
.support-form .form-group {
  margin-bottom: 1.5rem;
}

.support-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: var(--transition);
  background: var(--background);
  font-family: inherit;
}

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

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.support-form input[type="file"] {
  padding: 0.5rem;
  border-style: dashed;
}

.support-form .file-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Button Styles */
.btn {
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  background: var(--secondary-hover);
  border-color: var(--border-hover);
}

.btn-block {
  width: 100%;
}

/* Contact Options */
.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.25rem;
  border-radius: 12px;
  background: var(--surface);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
}

.contact-option:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-text h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.contact-text p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* FAQ Section */
.faq-section {
  margin-top: 4rem;
}

.faq-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-primary);
}

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

.faq-item {
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--background);
  border: 1px solid var(--border);
}

.faq-question {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  background: var(--background);
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--surface);
}

.faq-question i {
  transition: var(--transition);
  color: var(--primary);
  font-size: 1.125rem;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--surface);
}

.faq-item.active .faq-answer {
  padding: 1.5rem;
  max-height: 500px;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-answer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* Status Messages */
.status-message {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 500;
  display: none;
}

.status-success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Loading States */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .support-container {
    padding: 1rem;
  }

  .tab-navigation {
    flex-direction: column;
    gap: 0.5rem;
  }

  .tab-btn {
    width: 100%;
    text-align: center;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .contact-options {
    grid-template-columns: 1fr;
  }

  .card-header,
  .card-body {
    padding: 1.5rem;
  }

  .support-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .support-container {
    padding: 0.5rem;
  }

  .card-header,
  .card-body {
    padding: 1rem;
  }

  .faq-question,
  .faq-answer {
    padding: 1rem;
  }

  .contact-option {
    padding: 1rem;
  }
}
/* File Preview Container */
.file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  padding: 10px;
  border: 1px dashed #ccc;
  border-radius: 8px;
  background: #fafafa;
}

/* File Item (Image or File Icon) */
.file-preview .file-item {
  position: relative;
  width: 100px;
  height: 100px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

.file-preview .file-item:hover {
  transform: scale(1.05);
}

/* Image Preview */
.file-preview .file-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

/* File Icon Preview */
.file-preview .file-item i {
  font-size: 40px;
  color: #007bff; /* blue for non-image files */
}

/* File Name */
.file-preview .file-item::after {
  content: attr(data-name);
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: #444;
  background: rgba(255, 255, 255, 0.7);
  padding: 2px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
