/* Basic beautiful, accessible styling */
.hcf-wrapper { max-width: 880px; margin: 32px auto; padding: 0 16px; }
.hcf-form { background: #ffffff; border-radius: 16px; box-shadow: 0 12px 36px rgba(2,6,23,.06); overflow: hidden; }
.hcf-progress { height: 6px; background: #e5e7eb; width: 100%; position: relative; }
.hcf-progress-bar { position: absolute; left: 0; top: 0; height: 100%; width: 0%; background: #111; transition: width .35s ease; }

.hcf-step { padding: 28px 28px 16px; }
.hcf-title { margin: 0 0 6px; font-size: 22px; line-height: 1.25; color: #0f172a; }
.hcf-sub { margin: 0 0 18px; color: #6b7280; font-size: 14px; }

.hcf-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
@media (max-width: 640px) { .hcf-grid { grid-template-columns: 1fr; } }
.hcf-list { display: grid; grid-template-columns: 1fr; gap: 10px; }

.hcf-check, .hcf-radio { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 12px; cursor: pointer; background: #fff; transition: all .2s ease; }
.hcf-check:hover, .hcf-radio:hover { border-color: #111; box-shadow: 0 3px 16px rgba(0,0,0,.08); }
.hcf-check input, .hcf-radio input { width: 18px; height: 18px; }
.hcf-radio-link { justify-content: space-between; align-items: center; }
.hcf-inline-link { margin-left: auto; font-size: 13px; color: #111; text-decoration: underline; }

.hcf-other-input { display: none; grid-column: 1 / -1; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 12px; font-size: 14px; }
.hcf-other-input.hcf-show { display: block; }

.hcf-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.hcf-field--full { grid-column: 1 / -1; }
.hcf-field label { display: block; font-size: 13px; color: #475569; margin-bottom: 6px; }
.hcf-field input, .hcf-field textarea { width: 100%; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 12px; font-size: 14px; }
.hcf-field input:focus, .hcf-field textarea:focus, .hcf-other-input:focus { outline: 2px solid #111; border-color: #111; }

.hcf-nav { display: flex; gap: 10px; justify-content: flex-end; padding: 18px 0 10px; }
.hcf-btn { background: #111; color: #fff; border: none; padding: 12px 18px; border-radius: 12px; cursor: pointer; font-weight: 600; }
.hcf-btn:hover { filter: brightness(1.05); }
.hcf-btn.hcf-back { background: #fff; color: #111; border: 1px solid #111; }

/* Ensure theme styles cannot override our button colors */
.hcf-form .hcf-btn { background: #111 !important; color: #fff !important; border-color: #111 !important; }
.hcf-form .hcf-btn.hcf-back { background: #fff !important; color: #111 !important; border: 1px solid #111 !important; }

.hcf-alert { margin: 0 28px 24px; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.hcf-alert.hcf-alert-error { background: #fef2f2; color: #b91c1c; }
.hcf-alert.hcf-alert-success { background: #f3f4f6; color: #111; }

.hcf-error { border-color: #111 !important; background: #f9fafb; }
.hcf-hp { position: absolute !important; left: -99999px !important; opacity: 0 !important; height: 0 !important; width: 0 !important; }
