/*
 * /contact/ 専用。現行 lp-style.css の aa-* レイアウト・色・余白を再利用。
 * CF7 #38 の項目、タグ、検証、送信処理は変更せず、既存マークアップを整える。
 */
.aa-contact .aa-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 540px;
  gap: 56px;
  align-items: start;
}

.aa-contact .aa-contact-intro,
.aa-contact .aa-form-card {
  min-width: 0;
}

.aa-contact .aa-h1 {
  font-size: 46px;
}

.aa-contact .aa-lead {
  font-size: 15px;
}

.aa-contact .hero-form-inner {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.aa-contact .hero-form-title {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  color: var(--aa-ink);
  font-size: 22px;
  font-weight: 700;
  text-align: left;
}

.aa-contact .hero-form-field {
  margin: 0 0 24px;
}

.aa-contact .hero-form-field:last-child {
  margin-bottom: 0;
}

.aa-contact .hero-form-field p {
  margin: 0;
}

.aa-contact .hero-form-field .aa-contact-sales-note {
  margin-top: 8px;
  color: #737373;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}

.aa-contact .hero-form-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--aa-ink);
}

.aa-contact .wpcf7-form-control-wrap {
  display: block;
  position: relative;
  margin-top: 8px;
}

.aa-contact input[type="text"],
.aa-contact input[type="email"],
.aa-contact textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: 52px;
  padding: 12px 16px;
  border: 1px solid #d6d6d6;
  border-radius: 10px;
  background: #fff;
  font-family: var(--aa-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--aa-ink);
  transition: border-color .15s, box-shadow .15s;
}

.aa-contact textarea {
  min-height: 156px;
  height: 156px;
  resize: vertical;
}

.aa-contact input::placeholder,
.aa-contact textarea::placeholder {
  color: #777;
  opacity: 1;
}

.aa-contact input[type="text"]:focus,
.aa-contact input[type="email"]:focus,
.aa-contact textarea:focus {
  outline: 2px solid #000;
  outline-offset: 1px;
  border-color: #000;
}

.aa-contact input.wpcf7-not-valid,
.aa-contact textarea.wpcf7-not-valid {
  border-color: #d92d20;
  background: #fff8f7;
}

.aa-contact .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  color: #d92d20;
  font-size: 12px;
  font-weight: 500;
}

.aa-contact .hero-form-privacy {
  padding-top: 24px;
  border-top: 1px solid var(--aa-line);
}

.aa-contact .hero-form-privacy label {
  font-weight: 500;
  line-height: 1.8;
}

.aa-contact .hero-form-privacy .wpcf7-form-control-wrap {
  display: inline-block;
  margin: 0;
  vertical-align: middle;
}

.aa-contact .wpcf7-list-item {
  margin: 0;
}

.aa-contact .hero-form-privacy input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0 6px 0 0;
  accent-color: #000;
}

.aa-contact .hero-form-privacy a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.aa-contact input[type="submit"] {
  display: block;
  width: 100%;
  min-height: 58px;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--aa-grad);
  color: #000;
  font-family: var(--aa-font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}

.aa-contact input[type="submit"]:hover:not(:disabled) {
  box-shadow: 0 8px 24px rgba(255, 90, 0, .3);
}

.aa-contact input[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.aa-contact :is(input[type="submit"], input[type="checkbox"], a):focus-visible {
  outline: 2px solid #000;
  outline-offset: 4px;
}

.aa-contact .wpcf7-spinner {
  display: block;
  margin: 10px auto 0;
}

/* 検証・スパム・送信完了メッセージには既存の共通制御をそのまま使う。 */
.aa-contact .wpcf7-response-output {
  overflow-wrap: anywhere;
}

/* タブレットでも説明列を細く潰さず、フォームを読みやすい1列にする。 */
@media (max-width: 1024px) {
  .aa-contact .aa-contact-layout {
    max-width: 720px;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 767px) {
  .aa-contact .aa-h1 {
    font-size: 32px;
  }
}
