:root {
  --cwa-blue: #1c3454;
  --cwa-blue-2: #294e77;
  --cwa-light: #f4f7f9;
  --cwa-line: #dbe3e9;
  --cwa-orange: #00696e;
  --cwa-text: #263746;
  --cwa-muted: #657684;
}

.cwa-wrap { max-width: 980px; margin: 44px auto; padding: 0 18px; color: var(--cwa-text); font-family: inherit; }
.cwa-head { display: grid; grid-template-columns: 210px 1fr; align-items: center; gap: 34px; padding: 38px 42px; color: #fff; background: linear-gradient(135deg,var(--cwa-blue),var(--cwa-blue-2)); border-radius: 18px 18px 0 0; }
.cwa-brand { display: flex; align-items: center; justify-content: center; min-height: 92px; padding: 12px 18px; background: #fff; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.cwa-brand img { display: block; width: 100%; max-width: 180px; height: auto; }
.cwa-head h2 { margin: 4px 0 9px; color: #fff; font-size: clamp(28px,4vw,42px); line-height: 1.12; }
.cwa-head p { margin-bottom: 0; line-height: 1.55; }
.cwa-kicker { margin: 0!important; color: #bde9e8; font-size: 13px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }

.cwa-form { padding: 34px 42px 40px; background: #fff; border: 1px solid var(--cwa-line); border-top: 0; border-radius: 0 0 18px 18px; box-shadow: 0 14px 38px rgba(28,52,84,.09); }
.cwa-progress { display: flex; align-items: center; margin: 0 0 34px; }
.cwa-progress span { position: relative; z-index: 1; display: grid; flex: 1; place-items: center; height: 36px; color: #72808c; font-weight: 750; }
.cwa-progress span::before { position: absolute; z-index: -1; width: 36px; height: 36px; content: ''; background: #e9eef2; border-radius: 50%; }
.cwa-progress span:not(:last-child)::after { position: absolute; z-index: -2; top: 17px; right: calc(-50% + 18px); left: calc(50% + 18px); height: 2px; content: ''; background: #e1e7ec; }
.cwa-progress span.active { color: #fff; }
.cwa-progress span.active::before { background: var(--cwa-blue); }
.cwa-progress span.active:not(:last-child)::after { background: #8ea5b9; }
.cwa-step { display: none; animation: cwa-in .18s ease-out; }
.cwa-step.active { display: block; }
@keyframes cwa-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.cwa-step h2 { margin: 0 0 24px; color: var(--cwa-blue); font-size: 28px; }
.cwa-step h3 { margin: 30px 0 10px; color: var(--cwa-blue); font-size: 19px; }
.cwa-section-intro { margin: -10px 0 24px; color: var(--cwa-muted); line-height: 1.55; }
.cwa-help { margin-top: -4px; color: var(--cwa-muted); }
.cwa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 22px; }
.cwa-field { min-width: 0; }
.cwa-width-full { grid-column: 1 / -1; }
.cwa-dynamic-condition[hidden] { display: none!important; }
.cwa-field-help { display: block; margin-top: 7px; color: var(--cwa-muted); font-size: 13px; font-weight: 400; line-height: 1.45; }
.cwa-form label > span em { color: var(--cwa-muted); font-size: 13px; font-style: normal; font-weight: 500; }
.cwa-form label,.cwa-form fieldset { display: block; margin: 0 0 20px; }
.cwa-form label > span,.cwa-form legend,.cwa-sign-label { display: block; margin-bottom: 7px; color: #283b4b; font-weight: 700; }
.cwa-form fieldset { min-width: 0; padding: 0; border: 0; }
.cwa-form input[type=text],.cwa-form input[type=email],.cwa-form input[type=tel],.cwa-form input[type=date],.cwa-form input[type=number],.cwa-form select,.cwa-form textarea { box-sizing: border-box; width: 100%; min-height: 48px; padding: 11px 13px; color: var(--cwa-text); font: inherit; background: #fff; border: 1px solid #aebdc8; border-radius: 8px; outline: none; transition: border-color .15s,box-shadow .15s; }
.cwa-form input:focus,.cwa-form select:focus,.cwa-form textarea:focus { border-color: var(--cwa-blue-2); box-shadow: 0 0 0 3px rgba(41,78,119,.13); }
.cwa-form textarea { min-height: 96px; resize: vertical; }
.cwa-choices { display: flex; flex-wrap: wrap; gap: 9px; }
.cwa-choices label,.cwa-checkgrid label { display: flex; align-items: center; gap: 8px; min-height: 43px; margin: 0; padding: 8px 13px; background: #f7f9fa; border: 1px solid var(--cwa-line); border-radius: 8px; cursor: pointer; }
.cwa-choices label:has(input:checked),.cwa-checkgrid label:has(input:checked) { background: #edf3f8; border-color: #7894aa; box-shadow: inset 3px 0 var(--cwa-orange); }
.cwa-form input[type=radio],.cwa-form input[type=checkbox] { width: 17px; height: 17px; margin: 0; accent-color: var(--cwa-blue); }
.cwa-checkgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.cwa-info,.cwa-declaration,.cwa-scope { margin-bottom: 24px; padding: 17px 18px; background: var(--cwa-light); border-left: 4px solid var(--cwa-orange); border-radius: 7px; }
.cwa-scope label { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-weight: 650; line-height: 1.5; }
.cwa-scope input { flex: 0 0 auto; margin-top: 4px!important; }
.cwa-form label.cwa-scope { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 20px; font-weight: 650; line-height: 1.5; }
.cwa-form label.cwa-scope > span { margin: 0; font-weight: 650; }
.cwa-declaration { line-height: 1.55; }
.cwa-declaration strong { display: block; margin-top: 13px; color: var(--cwa-blue); }

.cwa-slot { margin-bottom: 12px; padding: 16px 17px 4px; background: #fafbfc; border: 1px solid var(--cwa-line); border-radius: 10px; }
.cwa-slot fieldset { margin-bottom: 12px; }
.cwa-slot legend { max-width: 760px; margin-bottom: 11px; line-height: 1.45; }
.cwa-slot .cwa-choices label { min-width: 74px; justify-content: center; padding: 6px 12px; }
.cwa-explain[hidden] { display: none!important; }
.cwa-explain { margin-top: 7px; padding-top: 14px; border-top: 1px solid var(--cwa-line); }
.cwa-explain label { margin-bottom: 13px; }
.cwa-explain textarea { min-height: 75px; }

.cwa-upload { padding: 20px; background: #fafcfd; border: 2px dashed #b6c5d0; border-radius: 10px; }
.cwa-upload small { display: block; margin-top: 8px; color: var(--cwa-muted); }
#cwa-files { margin-top: 8px; color: var(--cwa-blue); font-size: 14px; }
.cwa-sign { margin: 25px 0; }
.cwa-sign p { margin: -2px 0 9px; color: var(--cwa-muted); font-size: 14px; }
.cwa-sign-box { position: relative; overflow: hidden; background: #fff; border: 2px solid #8fa2b0; border-radius: 10px; }
.cwa-sign-box::after { position: absolute; right: 28px; bottom: 32px; left: 28px; height: 1px; content: ''; background: #d9e0e5; pointer-events: none; }
#cwa-signature { position: relative; z-index: 2; display: block; width: 100%; height: 180px; cursor: crosshair; touch-action: none; }
.cwa-sign-hint { position: absolute; z-index: 1; top: 50%; left: 50%; color: #91a0ab; transform: translate(-50%,-50%); pointer-events: none; }
.cwa-sign-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
#cwa-sign-status { color: #7a8994; font-size: 14px; }
#cwa-sign-status.done { color: #287844; font-weight: 700; }
.cwa-clear { padding: 7px 12px!important; color: var(--cwa-blue); background: #e9eef2; }
.cwa-agree { display: flex!important; align-items: flex-start; gap: 9px; margin: 22px 0!important; font-weight: 650; }
.cwa-agree input { flex: 0 0 auto; margin-top: 4px!important; }
.cwa-agree > span { margin: 0; }

.cwa-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--cwa-line); }
.cwa-actions button,.cwa-clear { min-height: 44px; padding: 11px 21px; font-weight: 750; font-family: inherit; border: 0; border-radius: 8px; cursor: pointer; }
.cwa-prev { color: var(--cwa-blue); background: #e9eef2; }
.cwa-next,.cwa-submit { color: #fff; background: var(--cwa-blue); box-shadow: 0 4px 12px rgba(28,52,84,.18); }
.cwa-next:hover,.cwa-submit:hover { background: #294e77; }
.cwa-submit:disabled { opacity: .6; }
.cwa-hp { position: absolute; left: -10000px; }
.cwa-notice { margin: 20px 0; padding: 20px; border-radius: 10px; }
.cwa-notice.success { background: #e7f7ed; }
.cwa-notice.error { background: #fff0f0; }

@media(max-width:720px) {
  .cwa-wrap { margin: 0 auto; padding: 0; }
  .cwa-head { grid-template-columns: 1fr; gap: 20px; padding: 26px 20px; border-radius: 0; }
  .cwa-brand { justify-self: start; width: 180px; min-height: 70px; }
  .cwa-form { padding: 26px 18px 32px; border-radius: 0; }
  .cwa-grid,.cwa-checkgrid { grid-template-columns: 1fr; }
  .cwa-width-half,.cwa-width-full { grid-column: 1; }
  .cwa-progress span:not(:last-child)::after { display: none; }
  .cwa-actions button { padding: 11px 14px; }
  #cwa-signature { height: 165px; }
}
