/*
  Contact form - HOBO-YA
  /reservation-contact/contact.html
*/

.contact-page,
.contact-page * {
  box-sizing: border-box;
}

.contact-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 10px 30px;
  color: #253445;
  background: #f2f6f8;
  border-radius: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
}

.contact-page a {
  overflow-wrap: anywhere;
}

.contact-hero {
  margin: 4px 0 18px;
  padding: 26px clamp(18px, 4vw, 34px);
  border: 1px solid #d3e7ee;
  border-radius: 16px;
  background: linear-gradient(135deg, #edf8fc 0%, #ffffff 64%, #f7fbff 100%);
  box-shadow: 0 6px 20px rgba(35, 67, 88, .05);
}

.contact-eyebrow {
  margin: 0 0 5px;
  color: #087aa8;
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.contact-hero h1 {
  margin: 0 0 10px;
  color: #173a57;
  font-size: clamp(1.65rem, 4.4vw, 2.25rem);
  line-height: 1.4;
}

.contact-hero p {
  margin: 0;
}

.contact-lead {
  max-width: 760px;
}

.contact-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0 0 18px;
}

.contact-card {
  padding: 20px;
  border: 1px solid #d9e5eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(40, 70, 90, .045);
}

.contact-card h2 {
  margin: 0 0 7px;
  color: #173a57;
  font-size: 1.18rem;
  line-height: 1.45;
}

.contact-card p {
  margin: 0;
}

.contact-card--line {
  border-color: #bfe4cb;
  background: linear-gradient(135deg, #f4fff7 0%, #ffffff 70%);
}

.contact-line-wrap {
  display: flex;
  gap: 16px;
  align-items: center;
}

.contact-line-qr {
  flex: 0 0 128px;
  margin: 0;
  padding: 7px;
  border: 1px solid #d9e4dd;
  border-radius: 11px;
  background: #fff;
}

.contact-line-qr img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-line-copy {
  min-width: 0;
}

.contact-line-copy strong {
  display: block;
  margin-bottom: 5px;
  color: #176838;
  font-size: 1.03rem;
}

.contact-line-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #177a3b;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 5px 13px rgba(23, 122, 59, .18);
}

.contact-line-button:hover {
  transform: translateY(-1px);
  background: #126632;
}

.contact-line-url {
  margin-top: 8px !important;
  color: #607069;
  font-size: .84rem;
}

.contact-note {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #f0d28b;
  border-left: 5px solid #e7a52b;
  border-radius: 10px;
  background: #fff9ec;
  color: #594a2a;
}

.contact-note strong {
  color: #795300;
}

.contact-form {
  margin: 0;
}

.contact-form-section {
  margin: 0 0 16px;
  padding: 18px;
  border: 1px solid #d9e3e8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(40, 70, 90, .04);
}

.contact-form-section legend {
  padding: 0 8px;
  color: #173a57;
  font-size: 1.07rem;
  font-weight: 900;
}

.contact-form-section legend span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  margin-right: 6px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1b789e;
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-field--full {
  grid-column: 1 / -1;
}

.contact-field label,
.contact-label {
  display: block;
  margin: 0 0 6px;
  color: #2e4352;
  font-weight: 800;
}

.contact-required {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #ffecec;
  color: #a61717;
  font-size: .68rem;
  font-style: normal;
  vertical-align: middle;
}

.contact-field input[type="text"],
.contact-field input[type="email"],
.contact-field textarea {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 11px 12px;
  border: 1px solid #bfcdd5;
  border-radius: 9px;
  background: #fff;
  color: #233542;
  font: inherit;
  line-height: 1.4;
}

.contact-field textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.7;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: 3px solid rgba(36, 137, 180, .15);
  border-color: #2489b4;
}

.contact-help {
  margin: 6px 0 0;
  color: #647480;
  font-size: .84rem;
  line-height: 1.55;
}

.contact-security {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid #d7e4ea;
  border-radius: 13px;
  background: #f8fbfc;
}

.contact-security h2 {
  margin: 0 0 5px;
  color: #173a57;
  font-size: 1rem;
}

.contact-security p {
  margin: 0 0 12px;
  color: #5a6b77;
  font-size: .9rem;
}

.contact-turnstile {
  display: flex;
  justify-content: center;
}

.contact-submit {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 4px;
}

.contact-submit-button,
.contact-reset-button {
  min-height: 48px;
  padding: 10px 26px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
}

.contact-submit-button {
  border: 0;
  background: #ef6d2f;
  color: #fff;
  box-shadow: 0 6px 15px rgba(239, 109, 47, .24);
}

.contact-submit-button:hover {
  background: #d8581e;
}

.contact-reset-button {
  border: 1px solid #b8c6ce;
  background: #fff;
  color: #465866;
}

.contact-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Contact methods: keep the two methods vertically stacked on desktop too.
   This avoids a narrow LINE column and the large empty E-mail card. */
.contact-methods .contact-card {
  width: 100%;
}

.contact-methods .contact-card:not(.contact-card--line) {
  padding-top: 16px;
  padding-bottom: 16px;
}

.contact-card--line .contact-line-wrap {
  max-width: 760px;
}

.contact-card--line .contact-line-copy p {
  max-width: 620px;
}

/*
  Responsive adjustments for form fields and controls.
  Contact-method cards are intentionally one column at all screen sizes.
*/
@media only screen and (max-width: 760px) {
  .contact-page {
    padding: 8px 8px 22px;
  }

  .contact-hero {
    padding: 22px 16px;
  }

  .contact-methods,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-field--full {
    grid-column: auto;
  }

  .contact-form-section {
    padding: 14px 12px;
  }

  .contact-submit-button,
  .contact-reset-button {
    width: 100%;
  }
}

@media only screen and (max-width: 600px) {
  .contact-card {
    padding: 16px;
  }

  .contact-line-wrap {
    display: block;
  }

  .contact-line-qr {
    width: 132px;
    margin: 0 auto 14px;
  }

  .contact-line-copy {
    text-align: center;
  }

  .contact-line-url {
    text-align: center;
  }

  .contact-line-button {
    width: 100%;
  }
}
