:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  color: #293f36;
  background: #f8f9f5;
  line-height: 1.8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid #df684580;
  outline-offset: 4px;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1040px;
  padding: 24px 28px;
  margin: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 26px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.05em;
}
.brand img {
  width: 28px;
  height: 28px;
}
.brand span {
  color: #df6845;
  margin-left: -8px;
}
.back-link {
  color: #697a70;
  font-size: 13px;
  text-decoration: none;
  padding: 10px 0;
}
main {
  width: min(720px, calc(100% - 40px));
  margin: 32px auto 72px;
}
.eyebrow {
  color: #70856e;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.17em;
}
h1 {
  font-size: clamp(28px, 5vw, 39px);
  line-height: 1.55;
  letter-spacing: 0.04em;
  margin: 13px 0 16px;
}
.intro p {
  font-size: 14px;
  color: #6d7e73;
  margin-bottom: 32px;
}
.form-card {
  padding: 32px;
  background: #fff;
  border: 1px solid #e3e9df;
  border-radius: 18px;
  box-shadow: 0 8px 30px #293f3606;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
legend {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 24px;
  padding: 0;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.required,
.optional {
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 4px;
  margin-left: 5px;
  font-weight: 400;
}
.required {
  color: #af5338;
  background: #faf0e9;
}
.optional {
  color: #7b897f;
  background: #f2f5ef;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  border: 1px solid #dce4d7;
  background: #fcfdfa;
  border-radius: 8px;
  padding: 12px;
  color: #293f36;
  font-size: 16px;
  min-height: 48px;
}
input::placeholder,
textarea::placeholder {
  color: #89958c;
  font-size: 13px;
}
textarea {
  resize: vertical;
  min-height: 174px;
  line-height: 1.8;
}
select {
  margin-bottom: 24px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
small,
.message-meta {
  font-size: 11px;
  color: #7d8b81;
}
.message-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin: 5px 0 24px;
}
#message-count {
  white-space: nowrap;
}
.honey {
  display: none;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 12px;
  margin-bottom: 22px;
}
.consent input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #3c624b;
  margin: 2px 0;
}
.consent a {
  color: #486a54;
}
button,
.return-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 50px;
  background: #293f36;
  color: white;
  border: 0;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
button:hover,
.return-button:hover {
  background: #3f5b46;
}
button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.error {
  padding: 14px 16px;
  margin-top: 18px;
  color: #a54530;
  border-radius: 8px;
  background: #fff1ec;
  font-size: 13px;
}
.success {
  text-align: center;
  padding: 20px 0;
}
.success-mark {
  margin: 0 auto 20px;
  background: #edf3e8;
  color: #4b7856;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 27px;
}
.success h2 {
  font-size: 23px;
  line-height: 1.6;
}
.success p {
  font-size: 14px;
}
.success .muted {
  color: #7d8b81;
  font-size: 12px;
  margin-bottom: 28px;
}
.email-alternative {
  text-align: center;
  font-size: 12px;
  color: #7a897e;
  margin-top: 24px;
}
.email-alternative a {
  display: inline-block;
  margin-left: 8px;
  color: #486a54;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 32px;
  border-top: 1px solid #e3e9df;
  font-size: 10px;
  color: #8a968c;
}
@media (max-width: 600px) {
  .page-header {
    padding: 18px 20px;
  }
  main {
    margin-top: 20px;
  }
  .form-card {
    padding: 22px 18px;
    border-radius: 14px;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .message-meta {
    flex-direction: column;
    gap: 3px;
  }
  #message-count {
    align-self: flex-end;
  }
  .desktop-break {
    display: none;
  }
  .intro p {
    font-size: 13px;
  }
  .email-alternative a {
    display: block;
    margin: 5px 0 0;
  }
}
