/* HBLAB AIX Manufacturing – contact form */
.aixf, .aixf * { box-sizing: border-box; }
.aixf { font-family: inherit; font-size: 15px; line-height: 1.6; text-align: left; }
.aixf [hidden] { display: none !important; }
.aixf-intro { margin: 0 0 18px; font-size: 13px; }
.aixf-form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.aixf-row { display: flex; flex-direction: column; gap: 6px; }
.aixf-row label { font-weight: 700; font-size: 14px; }
.aixf-req { color: #D93025; margin-left: 4px; }
.aixf input[type=text], .aixf input[type=email], .aixf input[type=tel], .aixf select, .aixf textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 16px; border-radius: 6px; outline: none;
}
.aixf textarea { min-height: 120px; resize: vertical; }
.aixf-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.aixf-check input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; }
.aixf-check a { text-decoration: underline; }
.aixf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.aixf-error { margin: 0; padding: 10px 12px; border-radius: 6px; font-size: 14px; }
.aixf-submit { align-self: flex-start; min-height: 50px; min-width: 200px; padding: 12px 32px; border: 0; border-radius: 6px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.aixf-submit:disabled { opacity: .6; cursor: wait; }
.aixf-done { outline: none; padding: 8px 0; }
.aixf-done-msg { margin: 0 0 16px; font-size: 16px; font-weight: 700; }
.aixf-doc-btn { display: inline-block; padding: 12px 24px; border-radius: 6px; font-weight: 700; text-decoration: none; }

/* Light (service + solution pages) */
.aixf-light { color: #2B2B2D; }
.aixf-light .aixf-intro { color: #5C5C61; }
.aixf-light input[type=text], .aixf-light input[type=email], .aixf-light input[type=tel], .aixf-light select, .aixf-light textarea {
  background: #fff; color: #2B2B2D; border: 1px solid #CFCFD4;
}
.aixf-light input:focus, .aixf-light select:focus, .aixf-light textarea:focus { border-color: #414143; box-shadow: 0 0 0 3px rgba(255,194,15,.45); }
.aixf-light .aixf-check a { color: #2B2B2D; }
.aixf-light .aixf-error { background: #FDECEA; color: #A0281C; }
.aixf-light .aixf-submit, .aixf-light .aixf-doc-btn { background: #FFC20F; color: #232325; }
.aixf-light .aixf-submit:hover, .aixf-light .aixf-doc-btn:hover { background: #F2B500; }

/* Dark (LP inline form) */
.aixf-dark { color: #E8ECF5; }
.aixf-dark .aixf-intro { color: #A9B4C8; }
.aixf-dark .aixf-row label { font-family: 'JetBrains Mono', 'Noto Sans JP', monospace; font-weight: 400; font-size: 12px; color: #B7C0D6; }
.aixf-dark input[type=text], .aixf-dark input[type=email], .aixf-dark input[type=tel], .aixf-dark select, .aixf-dark textarea {
  background: #26395A; color: #FFFFFF; border: 1px solid rgba(167,179,208,0.3); border-radius: 2px;
}
.aixf-dark select option { color: #172640; background: #fff; }
.aixf-dark input:focus, .aixf-dark select:focus, .aixf-dark textarea:focus { border-color: #FFC316; }
.aixf-dark .aixf-check { color: #C9D1DF; }
.aixf-dark .aixf-check a { color: #FFC316; }
.aixf-dark .aixf-error { background: rgba(217,48,37,.18); color: #FFB4AB; }
.aixf-dark .aixf-submit, .aixf-dark .aixf-doc-btn { background: #FFC316; color: #000; border-radius: 2px; }
.aixf-dark .aixf-done-msg { color: #fff; }
.aixf-inline-wrap { box-sizing: border-box; }

/* Modal */
html.aixf-lock, html.aixf-lock body { overflow: hidden; }
.aixf-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.aixf-modal[hidden] { display: none; }
.aixf-backdrop { position: absolute; inset: 0; background: rgba(20,20,22,.6); }
.aixf-dialog { position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 48px); overflow-y: auto; background: #fff; border-radius: 12px; padding: 32px 32px 28px; box-shadow: 0 24px 64px rgba(0,0,0,.3); border-top: 6px solid #FFC20F; }
.aixf-title { margin: 0 40px 6px 0; font-size: 22px; line-height: 1.35; color: #232325; }
.aixf-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 28px; line-height: 1; color: #414143; cursor: pointer; border-radius: 6px; }
.aixf-x:hover { background: #F2F2F3; }
@media (max-width: 600px) {
  .aixf-dialog { padding: 24px 18px 20px; border-radius: 10px; }
  .aixf-submit { align-self: stretch; }
}
