/* ==========================================================================
   Help Center - Additional Styles
   Extends the base style.css for help center pages
   ========================================================================== */

/* --------------------------------------------------------------------------
   Help Header (matches contact-us.html header)
   -------------------------------------------------------------------------- */
.help-header {
  padding: 30px 0;
  text-align: center;
  border-bottom: 1px solid var(--bs-gray-200);
}

.help-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.help-header .logo img {
  width: auto;
  height: 36px;
  margin: 0;
}

.help-header .nav-label {
  font-family: var(--pintex-headings-font-family);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bs-primary);
}

/* --------------------------------------------------------------------------
   Help Hero
   -------------------------------------------------------------------------- */
.help-hero {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8f5ff 100%);
}

.help-hero h1 {
  font-size: 3.125rem;
  margin-bottom: 15px;
}

.help-hero p {
  font-size: 1.3125rem;
  color: var(--color-grey);
}

/* --------------------------------------------------------------------------
   App Cards Grid
   -------------------------------------------------------------------------- */
.apps-section {
  padding: var(--section-padding) 0;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
  gap: 30px;
  justify-content: center;
}

.app-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--bs-gray-200);
  border-radius: 8px;
  padding: 30px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.app-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
  color: inherit;
}

.app-card-icon {
  width: 56px;
  height: 56px;
  background: var(--bs-gray-400);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--bs-primary);
}

.app-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.app-card p {
  font-size: 0.95rem;
  color: var(--bs-body-color);
  margin-bottom: 15px;
}

.app-card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bs-primary);
}

.app-card:hover .app-card-action {
  color: #7b5fc9;
}

.app-card-action svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   Help Contact Section
   -------------------------------------------------------------------------- */
.help-contact-section {
  padding: var(--section-padding) 0;
  background: linear-gradient(180deg, #f8f5ff 0%, #ffffff 100%);
}

.help-contact-form {
  max-width: 500px;
  margin: 0 auto;
}

.help-contact-form .form-group {
  margin-bottom: 22px;
}

.help-contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--bs-headings-color);
  font-size: 0.95rem;
}

.help-contact-form input,
.help-contact-form textarea,
.help-contact-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  background: #fff;
  color: #333;
}

.help-contact-form input::placeholder,
.help-contact-form textarea::placeholder {
  color: #999;
}

.help-contact-form input:focus,
.help-contact-form textarea:focus,
.help-contact-form select:focus {
  outline: none;
  border-color: var(--bs-primary);
}

.help-contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.help-contact-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.help-contact-form .turnstile-wrapper {
  margin-bottom: 22px;
}

.help-contact-form .btn-submit {
  display: inline-block;
  padding: 14px 35px;
  background: var(--bs-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--pintex-headings-font-family);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  width: 100%;
  text-align: center;
}

.help-contact-form .btn-submit:hover {
  background: #7b5fc9;
}

.help-contact-form .btn-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.help-contact-form .btn-submit.loading .btn-text {
  display: none;
}

.help-contact-form .btn-submit.loading .btn-spinner {
  display: inline-block;
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.form-message {
  padding: 14px 18px;
  border-radius: 5px;
  margin-top: 20px;
  display: none;
  font-size: 0.95rem;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  display: block;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  display: block;
}

.form-error-msg {
  font-size: 0.8rem;
  color: #dc2626;
  margin-top: 4px;
  display: none;
}

.form-group.has-error .form-error-msg {
  display: block;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #dc2626;
}

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-grey);
  margin-bottom: 25px;
}

.breadcrumb a {
  color: var(--color-grey);
}

.breadcrumb a:hover {
  color: var(--bs-primary);
}

.breadcrumb-separator {
  color: var(--bs-gray-200);
}

.breadcrumb-current {
  color: var(--bs-headings-color);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   App Header (on FAQ page)
   -------------------------------------------------------------------------- */
.app-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
}

.app-header-icon {
  width: 64px;
  height: 64px;
  background: var(--bs-gray-400);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-primary);
  flex-shrink: 0;
}

.app-header-info h1 {
  font-size: 1.875rem;
  margin-bottom: 4px;
}

.app-header-info p {
  color: var(--bs-body-color);
  font-size: 1rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   FAQ Section (Help page - uses main site accordion style)
   -------------------------------------------------------------------------- */
.help-faq-section {
  padding: var(--section-padding) 0;
}

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

/* --------------------------------------------------------------------------
   Responsive - Help specific
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .help-hero {
    padding: 50px 0 40px;
  }

  .help-hero h1 {
    font-size: 2rem;
  }

  .help-hero p {
    font-size: 1.125rem;
  }

  .help-header .container {
    flex-direction: column;
    gap: 10px;
  }

  .app-header {
    gap: 15px;
  }

  .app-header-icon {
    width: 48px;
    height: 48px;
  }

  .app-header-info h1 {
    font-size: 1.5rem;
  }
}
