@charset "utf-8";

.faq-page {
  width: min(960px, calc(100% - 32px));
}

.faq-section {
  scroll-margin-top: 96px;
}

.faq-section + .faq-section {
  margin-top: 5rem;
}

.faq-section h3 {
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(51, 51, 51, 0.16);
}

.faq-intro-card,
.faq-notice-card,
.faq-form,
.faq-privacy-item {
  border: 1px solid rgba(51, 51, 51, 0.12);
}

.faq-intro-card,
.faq-notice-card,
.faq-privacy-item {
  padding: 1.5rem;
  background: #fbfbf8;
}

.faq-intro-card {
  margin-bottom: 1.25rem;
}

.faq-notice-card {
  margin-bottom: 1.5rem;
  background: #fff8f8;
  border-color: rgba(176, 48, 48, 0.18);
}

.faq-lead,
.faq-notice-text,
.faq-form-status,
.faq-privacy-item h4,
.faq-privacy-item p {
  margin-top: 0;
}

.faq-lead {
  margin-bottom: 0.9rem;
}

.faq-intro-card p:last-child,
.faq-privacy-item p:last-child {
  margin-bottom: 0;
}

.faq-notice-text {
  margin-bottom: 0;
  font-weight: 500;
}

.faq-form {
  padding: 1.75rem;
  background: #fff;
}

.faq-form-grid,
.faq-privacy-list {
  display: grid;
  gap: 1.5rem;
}

.faq-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-field-wide {
  grid-column: 1 / -1;
}

.faq-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.faq-required {
  margin-left: 0.25rem;
  color: #b03030;
}

.faq-form input,
.faq-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  line-height: 1.6;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(51, 51, 51, 0.18);
}

.faq-form textarea {
  min-height: 12rem;
  resize: vertical;
}

.faq-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.faq-submit-button,
.faq-reset-button {
  min-width: 11rem;
  padding: 0.85rem 1.2rem;
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--primary-color);
  transition:
    background 0.3s,
    color 0.3s,
    opacity 0.3s;
}

.faq-submit-button {
  color: #fff;
  background: var(--primary-color);
}

.faq-reset-button {
  color: var(--primary-color);
  background: #fff;
}

.faq-submit-button:hover,
.faq-reset-button:hover {
  opacity: 0.9;
}

.faq-form-status {
  display: none;
  margin-bottom: 0;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid transparent;
}

.faq-form-status.is-visible {
  display: block;
}

.faq-form-status.is-info {
  background: #f3f3ee;
  border-color: rgba(51, 51, 51, 0.12);
}

.faq-form-status.is-error {
  background: #fff8f8;
  border-color: rgba(176, 48, 48, 0.18);
}

.faq-privacy-item h4 {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.faq-privacy-item-accent {
  background: #f3f3ee;
}

@media screen and (max-width: 900px) {
  .faq-form-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 767px) {
  .faq-page {
    width: min(100%, calc(100% - 24px));
  }

  .faq-intro-card,
  .faq-notice-card,
  .faq-form,
  .faq-privacy-item {
    padding: 1.25rem;
  }

  .faq-section + .faq-section {
    margin-top: 4rem;
  }

  .faq-form-actions {
    flex-direction: column;
  }

  .faq-submit-button,
  .faq-reset-button {
    width: 100%;
    min-width: 0;
  }
}
