/*
 * HBK Insurance Group -- Ultimate Smart Quote Wizard v3 CSS
 * Single-page scrolling form architecture
 * Large fonts, generous spacing, high contrast -- optimized for all ages
 */

/*  KEYFRAMES  */
@keyframes hbkwSpin { to { transform: rotate(360deg); } }
@keyframes hbkwFadeIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@keyframes hbkwSlideDown { from { opacity:0; max-height:0; } to { opacity:1; max-height:2000px; } }

/*  WRAPPER  */
#hbk-wizard {
    font-family: 'Lato', sans-serif;
    color: #111827;
    line-height: 1.6;
}

/*  STEP 0: DEC PAGE BRANCH CHOICES  */
.hbkw-dec-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
@media (max-width: 600px) { .hbkw-dec-choices { grid-template-columns: 1fr; } }

.hbkw-dec-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    background: #fff;
    border: 3px solid #e5e7eb;
    border-radius: 16px;
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s;
    gap: 10px;
    font-family: 'Lato', sans-serif;
}
.hbkw-dec-choice:hover {
    border-color: #4CAF50;
    background: #f0fdf4;
    box-shadow: 0 4px 20px rgba(76,175,80,.15);
}
/* GREEN HIGHLIGHT WHEN SELECTED */
.hbkw-dec-choice.hbkw-selected {
    border-color: #4CAF50;
    background: #f0fdf4;
    box-shadow: 0 0 0 4px rgba(76,175,80,.2);
}
.hbkw-dec-choice-icon { font-size: 48px; margin-bottom: 4px; }
.hbkw-dec-choice strong {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0A192F;
    display: block;
}
.hbkw-dec-choice-sub {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.5;
}
.hbkw-dec-choice-badge {
    display: inline-block;
    background: #0A192F;
    color: #4CAF50;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 99px;
    letter-spacing: .5px;
    margin-top: 4px;
}

/*  STEP 0B: UPLOAD ZONE  */
.hbkw-sec-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}
.hbkw-sec-icon { font-size: 48px; flex-shrink: 0; }
.hbkw-sec-title {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0A192F;
    margin-bottom: 4px;
}
.hbkw-sec-sub { font-size: 16px; color: #6b7280; }

.hbkw-dropzone {
    border: 3px dashed #9ca3af;
    border-radius: 14px;
    padding: 48px 32px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: border-color .2s, background .2s;
    margin-bottom: 20px;
}
.hbkw-dropzone:hover {
    border-color: #4CAF50;
    background: #f0fdf4;
}
.hbkw-dropzone-icon { font-size: 56px; margin-bottom: 14px; }
.hbkw-dropzone-label {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0A192F;
    margin-bottom: 8px;
}
.hbkw-dropzone-hint { font-size: 15px; color: #9ca3af; }

.hbkw-upload-status {
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 16px;
    border-left: 4px solid #93c5fd;
    background: #eff6ff;
    display: flex;
    align-items: center;
    gap: 12px;
}
.hbkw-upload-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #bfdbfe;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: hbkwSpin .8s linear infinite;
    flex-shrink: 0;
}

/* SUCCESS BANNER -- shown after upload */
.hbkw-upload-success {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #f0fdf4;
    border: 3px solid #4CAF50;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 20px;
    animation: hbkwFadeIn .4s ease;
}
.hbkw-upload-success-icon {
    width: 48px;
    height: 48px;
    background: #4CAF50;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}
.hbkw-upload-success-title {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #166534;
    margin-bottom: 6px;
}
.hbkw-upload-success-sub { font-size: 15px; color: #166534; line-height: 1.6; }

/* Parsed preview grid */
.hbkw-parsed-preview {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
    animation: hbkwFadeIn .4s ease;
}
.hbkw-parsed-preview-title {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0A192F;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}
.hbkw-parsed-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 500px) { .hbkw-parsed-grid { grid-template-columns: 1fr; } }
.hbkw-parsed-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px 14px;
}
.hbkw-parsed-item-label {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-weight: 700;
    margin-bottom: 4px;
}
.hbkw-parsed-item-value {
    font-size: 15px;
    font-weight: 700;
    color: #0A192F;
}

/*  PREFILL NOTICE  */
.hbkw-prefill-notice {
    background: #f0fdf4;
    border: 2px solid #4CAF50;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 16px;
    color: #166534;
    font-weight: 600;
    margin-bottom: 28px;
    animation: hbkwFadeIn .4s ease;
}

/*  FORM SECTION WRAPPERS  */
.hbkw-form-section {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    padding: 36px 40px;
    margin-bottom: 28px;
}
@media (max-width: 640px) { .hbkw-form-section { padding: 24px 20px; } }

.hbkw-form-section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}
.hbkw-form-section-num {
    width: 48px;
    height: 48px;
    background: #0A192F;
    color: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
}
.hbkw-form-section-icon {
    font-size: 40px;
    flex-shrink: 0;
    line-height: 1;
}
.hbkw-form-section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0A192F;
    margin-bottom: 4px;
}
.hbkw-form-section-sub { font-size: 15px; color: #6b7280; line-height: 1.5; }

/*  COVERAGE GRID (3 per row)  */
.hbkw-coverage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
@media (max-width: 640px) { .hbkw-coverage-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .hbkw-coverage-grid { grid-template-columns: 1fr; } }

.hbkw-cov-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    border: 3px solid #e5e7eb;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s;
    background: #fff;
    user-select: none;
    position: relative;
}
.hbkw-cov-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.hbkw-cov-card:hover { border-color: #4CAF50; background: #f0fdf4; }
/* GREEN SELECTION STATE */
.hbkw-cov-card.hbkw-checked {
    border-color: #4CAF50;
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(76,175,80,.2);
}
.hbkw-cov-card.hbkw-checked::after {
    content: '\2714';
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 16px;
    color: #4CAF50;
    font-weight: 900;
}
.hbkw-cov-icon {
    font-size: 44px;
    margin-bottom: 12px;
    display: block;
    line-height: 1;
}
.hbkw-cov-name {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0A192F;
}

/*  MODULE SECTIONS (coverage-specific detail forms)  */
.hbkw-module {
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    margin-bottom: 28px;
    overflow: hidden;
    animation: hbkwFadeIn .35s ease;
}
.hbkw-module-header {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #0A192F;
    padding: 28px 40px;
}
@media (max-width: 640px) { .hbkw-module-header { padding: 20px; } }
.hbkw-module-icon {
    font-size: 64px;
    flex-shrink: 0;
    line-height: 1;
    filter: brightness(1.2);
}
.hbkw-module-title {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.hbkw-module-sub { font-size: 15px; color: #9FE2BF; line-height: 1.5; }
.hbkw-module-body { padding: 36px 40px; background: #fff; }
@media (max-width: 640px) { .hbkw-module-body { padding: 20px; } }

/*  FIELDS  */
.hbkw-fields { display: flex; flex-direction: column; gap: 0; }

.hbkw-field {
    margin-bottom: 28px;
}
.hbkw-field:last-child { margin-bottom: 0; }

.hbkw-label {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0A192F;
    margin-bottom: 8px;
}
.hbkw-hint {
    font-size: 13px;
    font-weight: 400;
    color: #9ca3af;
    margin-left: 6px;
}
.hbkw-req { color: #dc2626; font-size: 16px; margin-left: 2px; }

.hbkw-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 17px;
    font-family: 'Lato', sans-serif;
    color: #111827;
    background: #fff;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
}
.hbkw-input:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 4px rgba(76,175,80,.12);
}
/* RED ERROR STATE */
.hbkw-input.hbkw-error {
    border-color: #dc2626 !important;
    background: #fff5f5 !important;
    box-shadow: 0 0 0 4px rgba(220,38,38,.1) !important;
}
/* GREEN PREFILL STATE */
.hbkw-input.hbkw-prefilled {
    border-color: #4CAF50;
    background: #f0fdf4;
}
.hbkw-field-error-msg {
    font-size: 14px;
    color: #dc2626;
    font-weight: 600;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hbkw-row { display: grid; gap: 20px; }
.hbkw-two-col { grid-template-columns: 1fr 1fr; }
.hbkw-three-col { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) {
    .hbkw-two-col, .hbkw-three-col { grid-template-columns: 1fr; }
    .hbkw-row { gap: 0; }
}

/*  RADIO / CHECKBOX GROUPS  */
.hbkw-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}
.hbkw-radio-opt {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    transition: border-color .15s, background .15s;
    user-select: none;
}
.hbkw-radio-opt:hover { border-color: #4CAF50; background: #f0fdf4; }
.hbkw-radio-opt input[type="radio"],
.hbkw-radio-opt input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #4CAF50;
    cursor: pointer;
    flex-shrink: 0;
}
.hbkw-radio-opt:has(input:checked) {
    border-color: #4CAF50;
    background: #f0fdf4;
    color: #166534;
}
.hbkw-radio-wrap { flex-wrap: wrap; }

/*  SUBHEADINGS INSIDE MODULES  */
.hbkw-subhead {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1B3A6B;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 32px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

/*  OPTIONAL EXPANDABLE GROUPS  */
.hbkw-optional-group {
    margin-top: 8px;
    margin-bottom: 8px;
}
.hbkw-optional-toggle {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1B3A6B;
    cursor: pointer;
    padding: 12px 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hbkw-optional-toggle::-webkit-details-marker { display: none; }
.hbkw-optional-toggle::marker { display: none; }
.hbkw-optional-toggle:hover { color: #4CAF50; }
.hbkw-optional-body {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
    margin-top: 8px;
    background: #f8fafc;
}

/*  REPEATER CARDS (Drivers / Vehicles)  */
.hbkw-repeater-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}
.hbkw-repeater-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
}
.hbkw-repeater-header strong {
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    color: #0A192F;
}
.hbkw-remove-btn {
    background: #fef2f2;
    color: #dc2626;
    border: 1.5px solid #fca5a5;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
}
.hbkw-remove-btn:hover { background: #fee2e2; }

.hbkw-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    color: #166534;
    border: 2px dashed #86efac;
    border-radius: 10px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    margin-top: 4px;
}
.hbkw-add-btn:hover { background: #dcfce7; border-color: #4CAF50; }

/*  CLAIM DETAIL ROWS  */
.hbkw-gap-question {
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
}
.hbkw-gap-question:last-child { border-bottom: none; }
.hbkw-gap-question-label {
    font-size: 17px;
    font-weight: 700;
    color: #0A192F;
    margin-bottom: 12px;
}
.hbkw-claim-detail {
    background: #fff7ed;
    border: 1.5px solid #fed7aa;
    border-radius: 10px;
    padding: 18px 20px;
    margin-top: 12px;
}

/*  DOCUMENT UPLOAD GRID  */
.hbkw-doc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 8px;
}
@media (max-width: 640px) { .hbkw-doc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .hbkw-doc-grid { grid-template-columns: 1fr; } }

.hbkw-doc-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px 16px;
    text-align: center;
    transition: border-color .2s, background .2s;
}
.hbkw-doc-card.hbkw-doc-uploaded {
    border-color: #4CAF50;
    background: #f0fdf4;
}
.hbkw-doc-icon { font-size: 36px; margin-bottom: 10px; }
.hbkw-doc-name {
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #0A192F;
    margin-bottom: 6px;
}
.hbkw-doc-desc { font-size: 13px; color: #9ca3af; margin-bottom: 14px; line-height: 1.4; min-height: 36px; }
.hbkw-doc-btn {
    background: #1B3A6B;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    transition: background .15s;
}
.hbkw-doc-btn:hover { background: #0A192F; }
.hbkw-doc-status {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #166534;
    min-height: 18px;
}

/*  RISK SCORE RESULT  */
.hbkw-risk-result {
    margin-top: 20px;
    border-radius: 12px;
    padding: 24px 28px;
    animation: hbkwFadeIn .4s ease;
}
.hbkw-risk-result ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hbkw-risk-result li {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    color: #374151;
    line-height: 1.5;
}

/*  VALIDATION SUMMARY  */
.hbkw-validation-summary {
    background: #fef2f2;
    border: 2px solid #fca5a5;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    animation: hbkwFadeIn .3s ease;
}
.hbkw-validation-title {
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 12px;
}
.hbkw-validation-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hbkw-validation-list li {
    font-size: 15px;
    color: #991b1b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hbkw-validation-list li::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
    flex-shrink: 0;
}

/*  RESPONSE BADGE  */
.hbkw-response-badge {
    text-align: center;
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 20px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

/*  SUBMIT BUTTON  */
.hbkw-submit-btn {
    display: block;
    width: 100%;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 20px 32px;
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .5px;
    transition: background .2s, transform .1s;
    text-align: center;
}
.hbkw-submit-btn:hover { background: #43a047; }
.hbkw-submit-btn:active { transform: scale(.99); }
.hbkw-submit-btn:disabled { background: #9ca3af; cursor: not-allowed; }

.hbkw-btn-secondary {
    background: none;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    transition: border-color .15s, color .15s;
}
.hbkw-btn-secondary:hover { border-color: #4CAF50; color: #166534; }

/*  SUCCESS SCREEN  */
.hbkw-success {
    text-align: center;
    padding: 48px 32px;
    animation: hbkwFadeIn .5s ease;
}
.hbkw-success-icon {
    width: 72px;
    height: 72px;
    background: #4CAF50;
    color: #fff;
    border-radius: 50%;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: 700;
}
.hbkw-success-title {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #0A192F;
    margin-bottom: 14px;
}
.hbkw-success-body { font-size: 17px; color: #374151; line-height: 1.7; margin-bottom: 12px; }
.hbkw-success-hours { font-size: 15px; color: #9ca3af; }

/*  PRIVACY NOTE  */
.hbkw-privacy-note {
    font-size: 13px;
    color: #9ca3af;
    text-align: center;
    line-height: 1.5;
}
