/* Contact page only. Shared brand, navigation, buttons and footer use style.css. */
.contact-hero { background: linear-gradient(135deg, #f7faff, #edf5ff); }
.contact-hero-inner { padding-block: 55px 57px; }
.contact-hero .eyebrow { margin-bottom: 14px; }
.contact-hero h1 { font-size: clamp(34px, 3.3vw, 48px); line-height: 1.5; }
.contact-lead { max-width: 760px; margin-top: 17px; font-size: 17px; line-height: 1.95; }
.contact-form-section { padding: 56px 28px 60px; }
.contact-form-card { width: min(820px, 100%); margin-inline: auto; padding: 42px 48px 46px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 8px 28px #0d234805; }
.contact-form-card h2 { font-size: 28px; }
.form-intro { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 14px; font-size: 14px; color: #556279; }
#contact-form { margin-top: 30px; }
.form-field + .form-field { margin-top: 24px; }
.form-field label { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; color: var(--navy); font-weight: 700; }
.field-badge { display: inline-block; flex: 0 0 auto; padding: 2px 9px; border-radius: 5px; font-size: 12px; font-weight: 700; line-height: 1.6; letter-spacing: 0; vertical-align: middle; }
.required-badge { color: #1259e8; background: #edf4ff; }
.optional-badge { color: #556279; background: #f0f3f7; }
.form-field input, .form-field select, .form-field textarea { display: block; width: 100%; min-width: 0; border: 1px solid #b9c8dd; border-radius: 9px; padding: 12px 14px; background: white; color: var(--text); font: inherit; line-height: 1.65; }
.form-field input, .form-field select { min-height: 51px; }
.form-field textarea { min-height: 180px; resize: vertical; }
.form-field select { height: 51px; padding-right: 38px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='m4 7 5 5 5-5' stroke='%230d2348' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: right 14px center; background-repeat: no-repeat; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #69768a; opacity: 1; }
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible, .consent-line input:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.form-field [aria-invalid="true"], .consent-line input[aria-invalid="true"] { border-color: #b42318; box-shadow: 0 0 0 1px #b42318; }
.field-hint { margin-top: 7px; font-size: 13px; color: #556279; line-height: 1.7; }
.field-error { color: #b42318; margin-top: 7px; font-size: 14px; line-height: 1.7; }
.field-error::before { content: "※ "; }
.form-error-summary { margin-top: 25px; padding: 18px 20px; border: 1px solid #d97d75; border-radius: 9px; background: #fff8f7; color: #8f2118; font-size: 14px; }
.form-error-summary > p { font-weight: 700; }
.form-error-summary ul { margin: 9px 0 0; padding-left: 22px; }
.form-error-summary a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.form-notice { margin-top: 22px; border-left: 3px solid #b42318; padding: 12px 16px; background: #fff8f7; color: #8f2118; font-size: 14px; }
.security-check { margin-top: 28px; }
#turnstile-widget { max-width: 100%; }
.security-retry { margin-top: 10px; padding: 8px 0; border: 0; color: var(--blue); background: transparent; text-decoration: underline; text-underline-offset: 4px; font-size: 14px; cursor: pointer; }
.security-retry:disabled { opacity: .6; cursor: wait; }
.form-consent { margin-top: 27px; }
.consent-line { display: flex; align-items: flex-start; gap: 11px; }
.consent-line input { flex: 0 0 auto; width: 20px; height: 20px; margin: 5px 0 0; accent-color: var(--blue); cursor: pointer; }
.consent-line label { color: var(--navy); font-size: 15px; line-height: 1.9; cursor: pointer; }
.consent-line a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.consent-line .field-badge { margin-left: 6px; }
.form-submit { margin-top: 30px; text-align: center; }
.contact-submit { min-width: 260px; min-height: 58px; border: 0; cursor: pointer; font-size: 17px; padding-inline: 26px; }
.contact-submit:disabled { background: #566b8a; box-shadow: none; cursor: not-allowed; transform: none; }
.contact-submit .chevron { margin-left: 14px; }
.form-result { margin-top: 24px; padding: 17px 20px; border-radius: 9px; background: #f0f5fd; color: var(--navy); font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.form-result[data-state="error"] { background: #fff8f7; color: #8f2118; border: 1px solid #ebc3bf; }
.form-result[data-state="success"] { background: #f0f7ff; color: #124887; border: 1px solid #c1d9f6; }
.contacts-page [hidden] { display: none !important; }

@media (max-width: 960px) {
  .contact-hero-inner { padding-block: 43px 45px; }
  .contact-hero h1 { font-size: 40px; }
  .contact-lead { font-size: 16px; max-width: 670px; }
  .contact-form-section { padding: 42px 28px 48px; }
  .contact-form-card { padding: 34px 36px 38px; }
}

@media (max-width: 600px) {
  .contact-hero-inner { padding-block: 32px 35px; }
  .contact-hero h1 { font-size: 31px; }
  .contact-hero .eyebrow { margin-bottom: 11px; }
  .contact-lead { font-size: 14px; line-height: 1.95; margin-top: 15px; }
  .contact-form-section { padding: 28px 16px 32px; }
  .contact-form-card { padding: 27px 20px 30px; border-radius: 20px; }
  .contact-form-card h2 { font-size: 24px; }
  .form-intro { font-size: 13px; margin-top: 12px; }
  #contact-form { margin-top: 25px; }
  .form-field + .form-field { margin-top: 23px; }
  .form-field label { font-size: 15px; gap: 10px; }
  .form-field input, .form-field select, .form-field textarea { font-size: 16px; padding-inline: 12px; }
  .form-field textarea { min-height: 185px; }
  .field-hint { font-size: 12px; }
  .field-error { font-size: 13px; }
  .form-error-summary { padding: 15px 16px; }
  .consent-line { gap: 9px; }
  .consent-line label { font-size: 14px; }
  .consent-line .field-badge { margin-left: 2px; }
  .contact-submit { min-width: 0; width: 100%; min-height: 55px; font-size: 16px; }
  .form-result { font-size: 14px; padding: 15px 16px; }
}
