/* ── K3 mail magazine form — styles copied from form.k3r.jp/css/form_embed.css ── */
/* All rules scoped under #k3-form-wrapper to avoid conflicts with site styles.    */

#k3-form-wrapper {
  font-family: 'Helvetica Neue', 'Noto Sans JP', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  font-size: 13px;
  line-height: 1.42857143;
  color: #333333;
  max-width: 626px;
  margin-left: auto;
  margin-right: auto;
}

/* Intro text */
#k3-form-wrapper .k3-intro {
  font-family: 'Helvetica Neue', 'Noto Sans JP', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 16px;
  color: #333333;
}

/* Divider */
#k3-form-wrapper hr {
  margin-top: 18px;
  margin-bottom: 18px;
}

/* Fieldset reset */
#k3-form-wrapper fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

/* Form groups */
#k3-form-wrapper .form-group {
  margin-bottom: 15px;
}

#k3-form-wrapper div.control-group {
  margin: 0 0 20px;
}

/* Labels */
#k3-form-wrapper label.control-label {
  margin-bottom: 4px;
  margin-right: 10px;
  display: block;
  font-weight: bold;
  cursor: default;
}

/* Required asterisk */
#k3-form-wrapper .required-star {
  color: #d9534f;
  font-weight: bold;
  margin-right: 2px;
}

/* Inputs */
#k3-form-wrapper .form-control {
  display: block;
  width: 100%;
  height: 45px;
  padding: 6px 12px;
  font-size: 15px;
  line-height: 1.42857143;
  color: #555555;
  background-color: #ffffff;
  background-image: none;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
  box-sizing: border-box;
  font-family: 'Noto Sans JP', 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
}

#k3-form-wrapper .form-control:focus {
  border-color: #66afe9;
  outline: 0;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}

#k3-form-wrapper .form-control::placeholder {
  color: #999999;
}

#k3-form-wrapper .form-control[disabled],
#k3-form-wrapper .form-control[readonly] {
  background-color: #eeeeee;
  opacity: 1;
  cursor: not-allowed;
}

/* Side-by-side name fields — flex avoids inline-block whitespace gap issues */
#k3-form-wrapper .name-controls {
  display: flex;
  gap: 10px;
}

#k3-form-wrapper .name-controls .form-control {
  flex: 1 1 0;
}

/* Privacy policy well */
#k3-form-wrapper .well-form-only {
  min-height: 20px;
  padding: 19px;
  margin-bottom: 5px;
  background-color: #f5f5f5;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}

#k3-form-wrapper .note {
  font-size: 0.8em;
  line-height: 1.4em;
}

#k3-form-wrapper .note a {
  color: #428bca;
}

/* Checkbox area */
#k3-form-wrapper #check_privacy_policy_area {
  position: relative;
  margin-top: 10px;
  margin-bottom: 10px;
  padding-left: 0;
}

#k3-form-wrapper #check_privacy_policy_area label.control-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
}

#k3-form-wrapper #check_privacy_policy_area input[type="checkbox"] {
  margin: 0;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

/* Buttons */
#k3-form-wrapper .btn {
  display: inline-block;
  margin-bottom: 0;
  font-weight: normal;
  text-align: center;
  vertical-align: middle;
  touch-action: manipulation;
  cursor: pointer;
  background-image: none;
  border: 1px solid transparent;
  white-space: nowrap;
  padding: 10px 16px;
  font-size: 15px !important;
  line-height: 1.42857143;
  border-radius: 2px;
  user-select: none;
  font-family: inherit;
}

#k3-form-wrapper .btn:hover,
#k3-form-wrapper .btn:focus {
  text-decoration: none;
}

#k3-form-wrapper .btn-primary {
  color: #ffffff;
  background-color: #428bca;
  border-color: #357ebd;
}

#k3-form-wrapper .btn-primary:hover,
#k3-form-wrapper .btn-primary:focus {
  color: #ffffff;
  background-color: #3071a9;
  border-color: #285e8e;
}

#k3-form-wrapper #k3-submit-btn {
  max-width: 155px;
}

#k3-form-wrapper .btn-primary[disabled],
#k3-form-wrapper .btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
  background-color: #428bca;
  border-color: #357ebd;
}

#k3-form-wrapper #k3-back-btn {
  width: 155px;
  color: #333333;
  background-color: #efefef;
  border-color: #cfcfcf;
}

#k3-form-wrapper #k3-back-btn:hover,
#k3-form-wrapper #k3-back-btn:focus {
  background-color: #e0e0e0;
  border-color: #b8b8b8;
}

#k3-form-wrapper #k3-confirm-btn {
  width: 155px;
}

/* Field-level validation error state */
#k3-form-wrapper .form-control.k3-input--error {
  border-color: #a94442;
}

#k3-form-wrapper .k3-field-error {
  display: inline;
  color: #a94442;
  font-family: 'Noto Sans JP', 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
  font-size: 12px;
  font-style: italic;
  font-weight: 500;
  margin-left: 8px;
}

/* Alert (step-level error) */
#k3-form-wrapper .k3-alert {
  padding: 10px 14px;
  margin-bottom: 12px;
  color: #a94442;
  background-color: #f2dede;
  border: 1px solid #ebccd1;
  border-radius: 4px;
  font-size: 13px;
}

/* ── Step 2: Summary heading / description ── */
#k3-form-wrapper .k3-summary-title {
  font-family: 'Noto Sans JP', 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
  font-size: 23px;
  font-weight: 500;
  margin: 16px 0 8px;
  color: #333333;
}

#k3-form-wrapper .k3-summary-desc {
  font-family: 'Noto Sans JP', 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
  font-size: 13px;
  color: #333333;
  margin-bottom: 12px;
}

/* ── Step 2: Confirmation table ── */
#k3-form-wrapper .k3-confirm-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 13px;
}

#k3-form-wrapper .k3-confirm-table th,
#k3-form-wrapper .k3-confirm-table td {
  padding: 10px 12px;
  border: 1px solid #dddddd;
  vertical-align: top;
  word-break: break-all;
}

/* Header row */
#k3-form-wrapper .k3-confirm-table thead th {
  font-weight: bold;
  background-color: #f5f5f5;
  text-align: left;
}

#k3-form-wrapper .k3-confirm-table .w30 {
  width: 30% !important;
}

/* Body rows — no bold */
#k3-form-wrapper .k3-confirm-table tbody td {
  font-weight: normal;
}

/* Alternating row colors — odd=white so first data row contrasts with grey header */
#k3-form-wrapper .k3-confirm-table tbody tr:nth-child(odd) td {
  background-color: #ffffff;
}

#k3-form-wrapper .k3-confirm-table tbody tr:nth-child(even) td {
  background-color: #f9f9f9;
}

#k3-form-wrapper .k3-confirm-btns {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ── Step 3: Success ── */
#k3-form-wrapper .k3-success-card {
  background-color: #f0f0f0;
  border-radius: 4px;
  padding: 30px;
}

#k3-form-wrapper #k3-step-3 {
  font-size: 15px;
  line-height: 1.8;
  color: #333333;
}

#k3-form-wrapper #k3-step-3 h3 {
  font-size: 23px;
  font-weight: 500;
  color: #000000;
}

#k3-form-wrapper #k3-success-name {
  font-weight: bold;
}

#k3-form-wrapper #k3-step-3 .k3-intro {
  font-family: 'Helvetica Neue', 'Noto Sans JP', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}
