:root {
  --primary-color: #1a535c;
  --secondary-color: #b08b59;
  --dark-gray: #2d2d2d;
  --light-bg: #f8f9fa;
  --accent: var(--primary-color);
  --secondary: var(--secondary-color);
  --font-display: "Pretendard", sans-serif;
  --font-body: "Pretendard", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: hidden; }
body { margin: 0; overflow-x: hidden; font-family: var(--font-body); }
button, textarea { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }

.form-body {
  min-height: 100vh;
  padding: 0;
  background-color: var(--primary-color);
  background-image: linear-gradient(135deg,rgba(26,83,92,.97),rgba(45,122,130,.93) 50%,rgba(26,83,92,.97)),url("../imgs/bgc.png?v=20260903-form-theme");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  color: white;
}
.form-page { width: min(680px,calc(100% - 28px)); margin: auto; padding: 32px 0 70px; }
.form-brand { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 42px; color: rgba(255,255,255,.76); font-size: 11px; letter-spacing: .04em; }
.form-brand a { flex: 0 0 auto; color: #fee500; font-family: var(--font-display); font-size: 22px; font-weight: 900; text-decoration: none; text-shadow: 0 2px 10px rgba(0,0,0,.2); }
.form-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-intro { display: flex; align-items: center; gap: 17px; margin: 14px 0 18px; padding: 20px 22px; border: 1px solid rgba(255,255,255,.2); border-radius: 15px; background: rgba(255,255,255,.12); box-shadow: 0 12px 32px rgba(0,0,0,.14); backdrop-filter: blur(12px); }
.form-intro strong { display: block; color: #fee500; font-size: 16px; line-height: 1.35; }
.form-intro p { margin: 4px 0 0; color: rgba(255,255,255,.78); font-size: 12px; line-height: 1.45; }
.form-check,.thank-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%; background: #fee500; color: #171717; box-shadow: 0 8px 24px rgba(254,229,0,.28); font-size: 21px; font-weight: 900; }
.question-card { position: relative; min-height: 440px; padding: 37px 34px 32px; overflow: hidden; border: 1px solid rgba(255,255,255,.6); border-radius: 20px; background: rgba(255,255,255,.985); color: var(--dark-gray); box-shadow: 0 15px 40px rgba(0,0,0,.18); text-align: center; }
.question-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg,var(--primary-color),#2d7a82,var(--secondary-color)); }
.form-kicker { display: inline-flex; padding: 7px 13px; border-radius: 99px; background: rgba(26,83,92,.09); color: var(--primary-color); font-size: 9px; font-weight: 850; letter-spacing: .15em; }
.form-progress { width: 100%; height: 10px; margin: 22px 0 30px; padding: 2px; border-radius: 99px; background: #e8eeeb; overflow: hidden; }
.form-progress span { display: block; width: 8%; height: 100%; border-radius: 99px; background: linear-gradient(90deg,var(--primary-color),#2d7a82,var(--secondary-color)); transition: width .3s; }
.question-card h1 { max-width: 580px; margin: 0 auto 9px; font-family: var(--font-display); font-size: clamp(25px,4.3vw,35px); line-height: 1.25; letter-spacing: -.03em; }
.question-card > p { margin: 0 0 24px; color: #71817b; font-size: 13px; }
.form-options { display: grid; gap: 12px; }
.form-options button { display: grid; grid-template-columns: 35px 1fr 24px; align-items: center; gap: 12px; min-height: 63px; padding: 10px 16px; border: 1px solid #d7e1df; border-radius: 12px; background: var(--light-bg); color: var(--dark-gray); cursor: pointer; text-align: left; font-weight: 750; transition: transform .2s,border .2s,background .2s,box-shadow .2s; }
.form-options button:hover { transform: translateY(-2px); border-color: var(--primary-color); background: #eef6f5; box-shadow: 0 8px 20px rgba(26,83,92,.09); }
.form-options button span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #d7e1df; border-radius: 8px; background: white; color: var(--primary-color); font-size: 11px; }
.form-options button b { color: var(--secondary-color); text-align: right; }
.form-back { margin-top: 22px; border: 0; background: transparent; color: var(--primary-color); cursor: pointer; font-weight: 700; }
.form-final { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.form-final .form-check { margin-bottom: 16px; }
.form-final h1 { margin-top: 18px; }
.form-final > p { max-width: 520px; line-height: 1.6; }
.form-app-cta { display: flex; align-items: center; justify-content: center; gap: 15px; width: min(430px,100%); min-height: 64px; margin-top: 20px; padding: 10px 22px; border: 0; border-radius: 11px; background: #fee500; color: #171717; box-shadow: 0 7px 0 #c8b500,0 20px 42px rgba(91,78,0,.18); text-decoration: none; font-weight: 900; transition: transform .2s,filter .2s; }
[data-platform="band"] .form-app-cta { background: #22c55e; color: #fff; box-shadow: 0 7px 0 #14843d,0 20px 42px rgba(20,132,61,.18); }
.form-app-cta:hover { transform: translateY(-2px); filter: brightness(1.04); }
.form-app-cta img { width: 29px; height: 29px; object-fit: contain; }
.form-app-cta span { flex: 1; text-align: center; }
.form-app-cta b { font-size: 22px; }
.no-data-note { display: flex; align-items: center; gap: 13px; margin-top: 17px; padding: 15px 19px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(13,55,59,.9); color: #d7eeee; box-shadow: 0 10px 28px rgba(0,0,0,.13); }
.no-data-note > span { color: #fee500; }
.no-data-note p { margin: 0; font-size: 11px; line-height: 1.5; }
.no-data-note strong { color: white; }
.consultation-notice { width: 100%; margin: 22px 0 2px; padding: 20px 21px; border: 1px solid rgba(176,139,89,.42); border-radius: 14px; background: #06100c; color: #f4f8f6; text-align: left; box-shadow: 0 14px 34px rgba(0,0,0,.2); }
.consultation-notice h2 { margin: 0 0 15px; color: #ff5d55; font-size: 18px; }
.consultation-notice p { margin: 0 0 12px; color: #e6eeea; font-size: 13px; line-height: 1.65; }
.consultation-notice p:last-child { margin-bottom: 0; }
.consultation-notice p > strong { color: #ff5d55; }
.consultation-notice .consultation-alert { padding-top: 4px; color: #ffb55e; }
.consultation-notice .consultation-alert strong { color: #ff5d55; }
.form-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 18px; overflow: auto; background: rgba(2,19,18,.82); backdrop-filter: blur(9px); }
.form-modal[hidden] { display: none !important; }
.form-modal-shell { position: relative; width: min(720px,100%); max-height: calc(100vh - 36px); overflow: auto; border: 1px solid rgba(255,255,255,.22); border-radius: 22px; background: linear-gradient(145deg,#164f57,#28747b); box-shadow: 0 36px 100px rgba(0,0,0,.45); outline: none; }
.form-modal .form-page { width: 100%; padding: 22px 20px 26px; }
.form-modal-close { position: sticky; top: 12px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; margin: 12px 12px -52px auto; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(5,41,43,.92); color: white; cursor: pointer; font-size: 25px; line-height: 1; }
.form-modal-open { overflow: hidden !important; }
.form-modal .form-brand { padding-right: 52px; }

.thank-body { display: grid; place-items: center; padding: 20px; }
.thank-page { width: min(590px,100%); min-height: 470px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 38px; border: 1px solid rgba(255,255,255,.6); border-radius: 20px; background: rgba(255,255,255,.985); color: var(--dark-gray); box-shadow: 0 15px 40px rgba(0,0,0,.18); text-align: center; }
.thank-page .thank-icon { margin-bottom: 19px; }
.thank-page h1 { margin: 19px 0 10px; font-family: var(--font-display); font-size: clamp(30px,5vw,45px); line-height: 1.1; }
.thank-page p { max-width: 450px; margin: 0; color: #657870; line-height: 1.65; }
.thank-page a { margin-top: 28px; color: var(--primary-color); font-weight: 700; text-underline-offset: 3px; }

.generator-body { min-height: 100vh; padding: 0; background: radial-gradient(circle at 18% 0,#eaf2ff,transparent 34%),#f5f7fb; color: #17223a; font-family: "Microsoft YaHei","PingFang SC",Arial,sans-serif; }
.generator-page { min-height: 100vh; padding: 38px clamp(16px,5vw,70px) 80px; }
.generator-header,.generator-grid { width: min(1240px,100%); margin-inline: auto; }
.generator-header > a { display: inline-block; margin-bottom: 20px; color: #5a6a84; font-size: 13px; text-decoration: none; }
.generator-header > span { display: block; width: fit-content; padding: 7px 13px; border: 1px solid #dce3ef; border-radius: 99px; background: white; color: #245eca; font: 800 10px ui-monospace,Consolas,monospace; }
.generator-header h1 { margin: 18px 0 8px; font-size: clamp(34px,5vw,54px); line-height: 1.08; letter-spacing: -.045em; }
.generator-header p { max-width: 800px; margin: 0; color: #60708a; line-height: 1.65; }
.generator-header code { padding: 2px 5px; border-radius: 4px; background: #e9edf4; font-size: 12px; }
.generator-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 23px; margin-top: 32px; }
.generator-panel { padding: 27px; border: 1px solid #e0e5ee; border-radius: 21px; background: rgba(255,255,255,.96); box-shadow: 0 24px 65px rgba(37,61,102,.08); }
.generator-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 17px; margin-bottom: 20px; }
.generator-panel h2 { margin: 0 0 6px; font-size: 20px; }
.generator-panel-head p { margin: 0; color: #7b879b; font-size: 12px; }
.generator-panel label { display: block; margin: 14px 0 8px; color: #4a5870; font-size: 11px; font-weight: 800; }
.generator-panel textarea { width: 100%; min-height: 520px; padding: 17px; resize: vertical; border: 1px solid #d9e0eb; border-radius: 12px; outline: none; background: #f8faff; color: #27364e; font: 13px/1.65 ui-monospace,Consolas,monospace; }
.generator-panel textarea:focus { border-color: #3576ec; box-shadow: 0 0 0 4px rgba(53,118,236,.1); }
.generator-panel button { min-height: 42px; padding: 0 15px; border: 1px solid #d9e0eb; border-radius: 9px; background: white; color: #47566f; cursor: pointer; font-weight: 750; }
.generator-panel .generator-primary { width: 100%; min-height: 55px; display: flex; align-items: center; justify-content: center; gap: 13px; margin-top: 17px; border: 0; background: linear-gradient(135deg,#3478ef,#1f5ed5); color: white; box-shadow: 0 8px 20px rgba(45,106,224,.22); }
.generator-notice { min-height: 19px; margin: 13px 0 0; color: #2b67c8; font-size: 12px; }
.generator-help { margin-top: 19px; padding: 17px; border-radius: 12px; background: #f8f9fc; }
.generator-help h3 { margin: 0 0 8px; font-size: 13px; }
.generator-help p { margin: 0; color: #66758d; font-size: 11px; line-height: 1.75; }
.generator-help pre { margin: 10px 0 0; padding: 10px; border-radius: 7px; background: #edf1f7; color: #9a4c4c; font-size: 11px; white-space: pre-wrap; }
.privacy-pill { padding: 7px 10px; border-radius: 99px; background: #e8f8f0; color: #16804a; font-size: 9px; font-weight: 800; white-space: nowrap; }
.generator-preview { min-height: 220px; padding: 19px; border-radius: 14px; background: #10251e; color: white; }
.generator-preview > p { color: #8da99d; }
.generator-preview h3 { margin: 8px 0 5px; font-size: 18px; }
.generator-preview .preview-question { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); }
.preview-question small { color: #25db7c; }
.preview-question strong { font-size: 12px; }
.preview-question span { color: #7d9b8d; font-size: 9px; }
.generator-panel .generator-output { min-height: 300px; background: #111827; color: #c7d2fe; }
.generator-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 11px; }
.generator-actions .generator-primary { margin: 0; min-height: 45px; }
.generator-actions .danger { grid-column: 1/-1; color: #a34c4c; border-color: #efd9d9; background: #fffafa; }
.generator-flow { display: grid; grid-template-columns: 80px 1fr; gap: 8px; margin-top: 18px; padding: 15px; border-radius: 11px; background: #f6f8fc; font-size: 11px; }
.generator-flow span { color: #718096; }
.generator-flow b { color: #253650; }

@media (max-width: 900px) {
  .generator-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .form-modal { align-items: start; padding: 8px; }
  .form-modal-shell { max-height: calc(100vh - 16px); border-radius: 15px; }
  .form-modal .form-page { padding: 14px 10px 20px; }
  .form-modal-close { top: 8px; margin: 8px 8px -48px auto; }
  .consultation-notice { padding: 17px 15px; }
  .form-page { width: min(100% - 22px,680px); padding-top: 16px; }
  .form-brand { gap: 10px; }
  .form-intro { padding: 17px; }
  .question-card { min-height: 420px; padding: 31px 17px 24px; }
  .form-options button { padding-inline: 11px; }
  .thank-page { min-height: 430px; padding: 28px 20px; }
  .generator-page { padding-inline: 12px; }
  .generator-panel { padding: 19px 14px; }
  .generator-panel-head { flex-direction: column; }
  .generator-panel textarea { min-height: 430px; }
  .generator-actions { grid-template-columns: 1fr; }
  .generator-actions .danger { grid-column: auto; }
}
