.contact-kicker {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.contact-title {
  margin: 0 0 22px;
  font-size: 1.8rem;
}

.required {
  color: #dc2626;
}

.optional {
  margin-left: 6px;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
}

.field-error {
  min-height: 1.2em;
  margin: 8px 0 0;
  color: #dc2626;
  font-size: 0.9rem;
  line-height: 1.5;
}

.field-error-wide {
  margin-bottom: 14px;
}

.field-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.contact-page-section .container {
  max-width: 1240px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.contact-form-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.contact-form-card {
  padding: 42px 36px;
}

.contact-confirm-card,
.contact-complete-panel {
  max-width: 920px;
  margin: 0 auto;
  padding: 42px 36px;
}

.form-row {
  display: grid;
  gap: 18px;
}

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

.form-group-title {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--text);
}

.form-subgroup {
  display: flex;
  flex-direction: column;
}

.form-subgroup label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.form-subgroup .field-error {
  min-height: 1.4em;
  margin-top: 8px;
}

.field-error-empty {
  visibility: hidden;
}

.contact-agree-group {
  margin-top: 8px;
}

.form-group.contact-agree-group > .contact-agree-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 18px !important;
  width: 100%;
  margin: 0 !important;
  cursor: pointer;
}

.form-group.contact-agree-group > .contact-agree-label > input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  flex: 0 0 22px !important;
  display: block;
  cursor: pointer;
}

.form-group.contact-agree-group > .contact-agree-label > .contact-agree-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.contact-agree-main {
  display: block;
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}

.contact-agree-main a {
  color: var(--primary);
  text-decoration: underline;
}

.contact-agree-note {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.form-group.contact-agree-group > .contact-agree-label > input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-group.contact-agree-group > .contact-agree-label > input[type="checkbox"]:disabled + .contact-agree-text {
  opacity: 0.85;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
  justify-content: flex-start;
}

.contact-submit-btn {
  min-width: 240px;
  padding: 16px 28px;
  font-size: 1rem;
}

.confirm-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.confirm-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.confirm-table th,
.confirm-table td {
  padding: 18px 20px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.confirm-table tr:last-child th,
.confirm-table tr:last-child td {
  border-bottom: none;
}

.confirm-head {
  width: 220px;
  min-width: 220px;
  background: #f8fafc;
  color: var(--text);
  font-weight: 700;
  text-align: left;
  border-right: 1px solid var(--line);
}

.confirm-input {
  color: var(--muted);
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.contact-complete-text {
  margin: 0 0 16px;
  color: var(--text);
  font-weight: 600;
}

.contact-side-box {
  height: fit-content;
  position: sticky;
  top: calc(var(--header-height) + 26px);
}

.contact-note-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.contact-note-list p {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text-soft);
  background: #fff;
  font-size: 0.92rem;
  line-height: 1.7;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.h-captcha {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .contact-page-section {
    padding-top: 46px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .contact-form-wrap {
    max-width: 100%;
  }

  .contact-form-card {
    padding: 28px 20px;
  }

  .contact-confirm-card,
  .contact-complete-panel {
    padding: 28px 20px;
  }

  .contact-title {
    font-size: 1.45rem;
    line-height: 1.45;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .contact-submit-btn {
    width: 100%;
  }

  .contact-actions {
    flex-direction: column;
  }

  .contact-actions .btn,
  .contact-actions form,
  .contact-actions button {
    width: 100%;
  }

  .contact-side-box {
    position: static;
  }

  .h-captcha {
    max-width: 100%;
    overflow-x: auto;
  }

  .confirm-table,
  .confirm-table tbody,
  .confirm-table tr,
  .confirm-table th,
  .confirm-table td {
    display: block;
    width: 100%;
  }

  .confirm-head {
    border-right: none;
    border-bottom: 1px solid var(--line);
    min-width: 0;
  }
}
