/* Mild Solt — contact usability and accessibility refinement (2026-08) */

.studio-contact {
  font-family: "IBM Plex Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

.studio-contact .page-hero {
  background:
    linear-gradient(90deg, rgba(247, 245, 239, 0.96), rgba(247, 245, 239, 0.72)),
    radial-gradient(circle at 82% 28%, rgba(34, 199, 232, 0.2), transparent 30%),
    var(--paper);
}

.studio-contact .contact-sec {
  background:
    linear-gradient(rgba(7, 38, 59, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 38, 59, 0.025) 1px, transparent 1px),
    #f5fafb;
  background-size: 40px 40px;
}

.studio-contact .form-panel {
  border-color: rgba(7, 38, 59, 0.45);
  box-shadow: 18px 18px 0 rgba(25, 149, 185, 0.08);
}

.studio-contact .contact-submit {
  min-width: 200px;
  max-width: 100%;
  align-self: flex-start;
  justify-content: center;
  white-space: normal;
  line-height: 1.5;
  color: #fff;
  background: #082c46;
  border-color: #082c46;
}

.studio-contact .contact-submit:hover {
  color: #082c46;
  background: #22c7e8;
  border-color: #082c46;
}

.contact-mail-note {
  margin: -10px 0 30px;
  padding: 14px 16px;
  color: #29485b;
  background: #eef9fc;
  border-left: 3px solid #22c7e8;
  font-size: 13px;
  line-height: 1.8;
}

.contact-direct {
  color: #536771;
  font-size: 12.5px;
  line-height: 1.8;
}

.contact-direct a {
  color: #125f89;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mail-copy-fallback {
  padding: 16px;
  border: 1px solid #778791;
  background: #fff;
}

.mail-copy-fallback label {
  display: block;
  margin-bottom: 10px;
  color: #29485b;
  font-size: 13px;
  font-weight: 700;
}

.mail-copy-fallback textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  border: 1px solid #778791;
  color: #18374a;
  background: #f7fbfc;
  font: inherit;
  line-height: 1.7;
}

.studio-contact .field :is(input, select, textarea) {
  min-height: 48px;
  border-color: #778791;
  background: #fff;
}

.studio-contact .field textarea {
  min-height: 180px;
}

.studio-contact .field :is(input, select, textarea):focus {
  border-color: #125f89;
  outline: 3px solid rgba(34, 199, 232, 0.22);
  outline-offset: 2px;
}

.studio-contact .field [aria-invalid="true"] {
  border-color: #a62915;
  outline-color: rgba(166, 41, 21, 0.18);
}

.studio-contact .req {
  color: #9d2b15;
}

.studio-contact .privacy-row {
  border-color: #89969d;
}

.studio-contact .privacy-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
}

.form-status {
  min-height: 28px;
  margin-top: 4px;
  font-weight: 600;
  line-height: 1.7;
}

.form-status:empty {
  min-height: 0;
}

.form-status.success {
  color: #17633a;
}

.form-status.error {
  color: #9d2b15;
}

.form-status:focus {
  outline: 3px solid rgba(34, 199, 232, 0.35);
  outline-offset: 4px;
}

.studio-contact :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #125f89;
  outline-offset: 3px;
}

.studio-contact .mobile-nav[hidden] {
  display: none !important;
}

@media (max-width: 620px) {
  .studio-contact .form-panel {
    padding-inline: 22px;
    box-shadow: 8px 8px 0 rgba(25, 149, 185, 0.08);
  }
}
