/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-gray-medium);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(25, 75, 251, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-heading);
  line-height: 1.4;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--color-brand);
}

.faq-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: rgba(25, 75, 251, 0.08);
  border-radius: 8px;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-brand);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  background: var(--color-brand);
  color: var(--color-white);
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
  animation: faqFadeIn 0.3s ease;
}

@keyframes faqFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq-answer span {
  display: block;
  padding: 0 24px 24px;
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.7;
}

/* ==========================================================================
   FAQ FORM CARD
   ========================================================================== */

.faq-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-gray-medium);
}

.faq-card h3 {
  font-size: var(--h3-size);
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 12px;
  line-height: 1.3;
}

.faq-card .muted {
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ==========================================================================
   FORM STYLES
   ========================================================================== */

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-heading);
}

.form-group label a {
  color: var(--color-brand);
  text-decoration: none;
  border-bottom: 1px solid rgba(25, 75, 251, 0.3);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.form-group label a:hover {
  color: var(--color-heading);
  border-bottom-color: var(--color-brand);
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  font-size: var(--text-base);
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-white);
  border: 2px solid var(--color-gray-medium);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input::placeholder {
  color: #999;
}

.form-input:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 4px rgba(25, 75, 251, 0.1);
}

.form-input.real-input {
  min-height: 48px;
}

textarea.form-input {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

/* Checkbox */
.form-group.consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.form-group.consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--color-brand);
}

.form-group.consent label {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.5;
  cursor: pointer;
}

.form-group.consent label a {
  color: var(--color-brand);
  text-decoration: none;
  border-bottom: 1px solid rgba(25, 75, 251, 0.3);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.form-group.consent label a:hover {
  color: var(--color-heading);
  border-bottom-color: var(--color-brand);
}

/* Submit Button */
#contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 32px;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-brand);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(25, 75, 251, 0.3);
  margin-top: 8px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

#contact-submit:hover {
  background: #1540d6;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(25, 75, 251, 0.4);
}

#contact-submit:active {
  transform: translateY(0);
}

/* Messages */
.form-message {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-top: 16px;
}

.form-message.success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .faq-right {
    order: 2;
  }
}

@media (max-width: 768px) {
  .faq-card {
    padding: 28px 20px;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: var(--text-base);
  }

  .faq-toggle {
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: var(--text-lg);
  }

  .faq-answer span {
    padding: 0 18px 16px;
    font-size: var(--text-sm);
  }

  .form-group.consent {
    flex-direction: row;
    gap: 10px;
  }

  .form-group.consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
  }

  .form-group.consent label {
    font-size: var(--text-sm);
  }

  #contact-submit {
    padding: 14px 24px;
  }
}
