/* =========================================================
   UNDERSIDOR – Kontakt, FAQ, Hur det fungerar, Tjänster
   ========================================================= */

.subpage {
  padding-top: 120px;
  padding-bottom: 64px;
  min-height: 60vh;
}

.subpage-hero {
  background: linear-gradient(135deg, var(--color-bg-start), var(--color-bg-end));
  color: var(--color-text-main);
  padding: 48px 0 40px;
  margin-bottom: 48px;
}

.subpage-hero .container {
  text-align: center;
}

.subpage-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.subpage-lead {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.subpage-content {
  padding: 0 0 48px;
}

.container--narrow {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Kontaktformulär */
.contact-form {
  background: var(--color-card-bg);
  padding: 32px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  margin-bottom: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  padding: 14px 28px;
  background: var(--color-accent);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-submit:hover {
  opacity: 0.9;
}

.form-message {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.form-message--success {
  background: rgba(50, 210, 150, 0.15);
  color: #059669;
}

.form-message--error {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

.form-message ul {
  margin: 0;
  padding-left: 20px;
}

.contact-info {
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.contact-info h2 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #374151;
}

.contact-info a {
  color: var(--color-accent);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* FAQ */
.faq-list {
  margin-bottom: 32px;
}

.faq-item {
  background: var(--color-card-bg);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "+";
  font-size: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.faq-item[open] .faq-question::before {
  content: "−";
}

.faq-answer {
  padding: 0 24px 20px;
}

.faq-answer p {
  margin: 0;
  color: #6b7280;
  line-height: 1.6;
}

.faq-footer {
  text-align: center;
  color: #6b7280;
}

.faq-footer a {
  color: var(--color-accent);
  text-decoration: none;
}

.faq-footer a:hover {
  text-decoration: underline;
}

/* Hur det fungerar */
.how-steps {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
}

.how-step {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  align-items: flex-start;
}

.how-step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-bg-start), var(--color-bg-end));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.how-step-content h2 {
  font-size: 20px;
  margin-bottom: 8px;
  color: #374151;
}

.how-step-content p {
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

.how-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.how-cta .btn-primary,
.how-cta .btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}

.how-cta .btn-primary {
  background: var(--color-accent);
  color: #ffffff;
}

.how-cta .btn-secondary {
  background: #ffffff;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.how-cta .btn-primary:hover,
.how-cta .btn-secondary:hover {
  opacity: 0.9;
}

/* Tjänster */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.service-card {
  background: var(--color-card-bg);
  padding: 28px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s, box-shadow 0.15s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #374151;
}

.service-card p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}

.service-link:hover {
  text-decoration: underline;
}

.services-footer {
  text-align: center;
  color: #6b7280;
}

.services-footer a {
  color: var(--color-accent);
  text-decoration: none;
}

.services-footer a:hover {
  text-decoration: underline;
}

/* Juridiska sidor */
.legal-content h2 {
  font-size: 18px;
  margin: 32px 0 12px;
  color: #374151;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: #6b7280;
  line-height: 1.65;
  margin-bottom: 16px;
}

.legal-content a {
  color: var(--color-accent);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .subpage {
    padding-top: 100px;
  }

  .subpage-hero h1 {
    font-size: 28px;
  }

  .contact-form {
    padding: 20px;
  }

  .how-step {
    flex-direction: column;
    gap: 16px;
  }
}
