.hkmb-wg {
    width: 90%; max-width: 1180px; margin: 20px auto; padding: 20px;
    color: #fff; background: #2b2b2b; border-radius: 15px;
    box-shadow: 0 0 15px rgba(0,0,0,.5); font-family: Arial, sans-serif; line-height: 1.5;
}
.hkmb-wg *, .hkmb-wg *::before, .hkmb-wg *::after { box-sizing: border-box; }
.hkmb-wg [hidden], .hkmb-wg__step[hidden] { display: none !important; }

.hkmb-wg__head { padding: 0 0 14px; color: #fff; text-align: center; background: transparent; }
.hkmb-wg__eyebrow { display: block; margin-bottom: 5px; color: #ccc; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hkmb-wg__head h2, .hkmb-wg__section-title h3, .hkmb-wg h4 { color: #fff; font-family: Arial, sans-serif; }
.hkmb-wg__head h2 { margin: 0 0 8px; font-size: 32px; line-height: 1.2; text-align: center; }
.hkmb-wg__head p { max-width: 760px; margin: 0 auto; color: #ddd; font-size: 15px; }

.hkmb-wg__progress { margin: 5px 0 22px; padding: 12px 14px; background: #303030; border: 1px solid #555; border-radius: 10px; }
.hkmb-wg__progress-bar { height: 7px; overflow: hidden; background: #1f1f1f; border-radius: 99px; }
.hkmb-wg__progress-bar span { display: block; width: 20%; height: 100%; background: #777; border-radius: inherit; transition: width .25s ease; }
.hkmb-wg__progress p { margin: 7px 0 0; color: #ccc; font-size: 12px; text-align: center; }

.hkmb-wg__form { padding: 0; color: #fff; background: transparent; border: 0; box-shadow: none; }
.hkmb-wg__step.is-active { animation: hkmb-wg-in .18s ease; }
@keyframes hkmb-wg-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.hkmb-wg__section-title { display: block; margin: 0 0 22px; padding-top: 18px; text-align: center; border-top: 1px solid #555; }
.hkmb-wg__section-title > span { display: inline; color: #fff; background: transparent; font-size: 22px; font-weight: 700; }
.hkmb-wg__section-title > span::after { content: ". "; }
.hkmb-wg__section-title > div { display: inline; }
.hkmb-wg__section-title h3 { display: inline; margin: 0; font-size: 22px; line-height: 1.3; text-align: center; }
.hkmb-wg__section-title p { display: block; margin: 6px auto 0; color: #ccc; font-size: 13px; text-align: center; }
.hkmb-wg h4 { margin: 28px 0 14px; font-size: 18px; text-align: center; }

.hkmb-wg__grid { display: grid; gap: 0 20px; }
.hkmb-wg__grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.hkmb-wg__field { min-width: 0; margin: 0 0 16px; }
.hkmb-wg__field > label, .hkmb-wg__field > legend { display: block; width: 100%; margin: 0 0 6px; padding: 0; color: #fff; font-size: 15px; font-weight: 700; }
.hkmb-wg__field label span[aria-hidden="true"], .hkmb-wg__field legend span[aria-hidden="true"] { color: #ff9a9a; }

.hkmb-wg input[type="text"], .hkmb-wg input[type="email"], .hkmb-wg input[type="tel"],
.hkmb-wg input[type="number"], .hkmb-wg input[type="date"], .hkmb-wg input[type="file"],
.hkmb-wg select, .hkmb-wg textarea {
    width: 100%; min-height: 46px; margin: 0; padding: 12px; color: #fff;
    background: #3a3a3a; border: none; border-radius: 8px; font: inherit;
    box-shadow: inset 0 0 5px rgba(0,0,0,.3);
}
.hkmb-wg textarea { min-height: 116px; resize: vertical; }
.hkmb-wg input::placeholder, .hkmb-wg textarea::placeholder { color: #bbb; opacity: 1; }
.hkmb-wg input[type="file"] { padding: 10px; }
.hkmb-wg input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 12px; color: #fff; background: #5a5a5a; border: 0; border-radius: 6px; cursor: pointer; }
.hkmb-wg input:focus, .hkmb-wg textarea:focus, .hkmb-wg select:focus { outline: none; color: #fff; background: #4a4a4a; box-shadow: 0 0 5px #fff; }
.hkmb-wg input.is-invalid, .hkmb-wg textarea.is-invalid { box-shadow: 0 0 0 2px #ff9a9a; }
.hkmb-wg small { display: block; margin-top: 6px; color: #ccc; font-size: 12px; }

.hkmb-wg__hint, .hkmb-wg__info { margin: 10px 0 18px; padding: 12px 14px; color: #e7e7e7; background: #3a3a3a; border: 0; border-left: 4px solid #7a7a7a; border-radius: 10px; line-height: 1.5; }
.hkmb-wg__hint { margin-top: 0; font-size: 13px; }
.hkmb-wg__info strong { color: #fff; }
.hkmb-wg__info p { margin: 5px 0 0; }

.hkmb-wg__choice { min-width: 0; padding: 0; border: 0; }
.hkmb-wg__choice-grid { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.hkmb-wg__choice-grid label { display: flex; flex: 0 1 auto; gap: 8px; align-items: flex-start; min-width: 0; margin: 0; padding: 0; color: #fff; background: transparent; border: 0; border-radius: 0; font-weight: 400; cursor: pointer; }
.hkmb-wg__choice-grid label:hover, .hkmb-wg__choice-grid label:has(input:checked) { color: #fff; background: transparent; border: 0; }
.hkmb-wg__choice-grid input { flex: 0 0 auto; width: auto; height: auto; margin: 3px 0 0; accent-color: #777; }
.hkmb-wg__choice-grid span { color: #fff; font-weight: 400; }
.hkmb-wg__choice--checkbox .hkmb-wg__choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 24px; }

.hkmb-wg__conditional { margin: 12px 0 18px; padding: 14px 14px 1px; color: #fff; background: #303030; border: 1px solid #555; border-radius: 10px; }
.hkmb-wg__renovation { margin: 12px 0 18px; padding: 14px; color: #fff; background: #303030; border: 1px solid #555; border-radius: 10px; }
.hkmb-wg__renovation > .hkmb-wg__field { margin-bottom: 0; }
.hkmb-wg__renovation .hkmb-wg__conditional { margin: 14px 0 0; background: #353535; }

.hkmb-wg__consent { display: flex; gap: 8px; align-items: flex-start; margin: 22px 0 4px; color: #fff; }
.hkmb-wg__consent input { flex: 0 0 auto; width: auto; margin: 4px 0 0; accent-color: #777; }
.hkmb-wg__consent label { color: #fff; font-size: 13px; }

.hkmb-wg__actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid #555; }
.hkmb-wg__button { min-height: 46px; padding: 12px 20px; color: #fff; background: #5a5a5a; border: none; border-radius: 8px; font: inherit; font-size: 16px; cursor: pointer; transition: background .3s; }
.hkmb-wg__button:hover, .hkmb-wg__button:focus { color: #fff; background: #777; transform: none; }
.hkmb-wg__button--next, .hkmb-wg__button--submit { margin-left: auto; }
.hkmb-wg__button--submit { background: #5a5a5a; }
.hkmb-wg__button:disabled { cursor: wait; opacity: .7; }

.hkmb-wg__errors, .hkmb-wg__notice { margin: 0 0 18px; padding: 12px 14px; color: #fff; background: #303030; border: 1px solid #555; border-radius: 10px; }
.hkmb-wg__errors, .hkmb-wg__notice--error { color: #ff9a9a; }
.hkmb-wg__notice--success { color: #9aff9a; }
.hkmb-wg__hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 800px) {
    .hkmb-wg { width: 96%; padding: 14px; }
    .hkmb-wg__head h2 { font-size: 27px; }
    .hkmb-wg__grid--2, .hkmb-wg__choice--checkbox .hkmb-wg__choice-grid { grid-template-columns: 1fr; }
    .hkmb-wg__choice-grid { gap: 10px 18px; }
    .hkmb-wg__actions { position: static; padding-bottom: 0; background: transparent; }
    .hkmb-wg__button { padding-right: 16px; padding-left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .hkmb-wg *, .hkmb-wg *::before, .hkmb-wg *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
