/* ==========================================================================
   Know Your Area — Asynchronous Report Generator Widget & Progress Modal
   ========================================================================== */

.kya-report-widget {
    background-color: #f8f6f2;
    border: 1.5px solid #e2ddd5;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 20px 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #182534;
}

.kya-report-widget-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: #c86d57;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.kya-report-widget-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
    color: #182534;
    margin: 0 0 8px 0;
}

.kya-report-widget-subtitle {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 18px 0;
}

.kya-report-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
}

.kya-report-field {
    flex: 1 1 200px;
}

.kya-report-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #182534;
    margin-bottom: 5px;
}

.kya-report-field input {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-size: 14px;
    background-color: #ffffff;
    color: #182534;
    box-sizing: border-box;
}

.kya-report-submit-btn {
    background-color: #c86d57;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}

.kya-report-submit-btn:hover {
    background-color: #b15843;
}

/* Modal Backdrop & Dialog */
.kya-report-modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(18, 35, 52, 0.72);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.kya-report-modal {
    background-color: #ffffff;
    border-radius: 14px;
    max-width: 540px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
    border: 1px solid #e2ddd5;
}

.kya-report-modal-header {
    background-color: #182534;
    color: #ffffff;
    padding: 20px 26px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.kya-report-modal-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.3px;
    color: #eb9b86;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.kya-report-modal-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
    color: #ffffff;
    margin: 0;
    font-weight: normal;
}

.kya-report-modal-title-postcode {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.kya-report-modal-close,
button.kya-report-modal-close {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.08) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    outline: none !important;
    color: #cbd5e1 !important;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 0 0 14px !important;
    flex-shrink: 0;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.kya-report-modal-close:hover,
button.kya-report-modal-close:hover,
.kya-report-modal-close:focus,
button.kya-report-modal-close:focus {
    background: rgba(200, 109, 87, 0.85) !important;
    border-color: #eb9b86 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    outline: none !important;
}

.kya-report-modal-body {
    padding: 24px 26px;
    background-color: #f8f6f2;
}

.kya-report-progress-bar-wrap {
    width: 100%;
    height: 10px;
    background-color: #e2ddd5;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}

.kya-report-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #c86d57 0%, #1b7f79 100%);
    width: 8%;
    transition: width 0.4s ease;
    border-radius: 999px;
}

.kya-report-status-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    font-weight: 600;
    color: #182534;
    margin-bottom: 16px;
}

.kya-report-steps-list {
    list-style: none;
    margin: 0 0 18px 0;
    padding: 14px 16px;
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #e5dfd3;
}

.kya-report-steps-list li {
    font-size: 13px;
    color: #64748b;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.kya-report-steps-list li.is-active {
    color: #182534;
    font-weight: 700;
}

.kya-report-steps-list li.is-done {
    color: #1b7f79;
}

.kya-report-step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cbd5e1;
    display: inline-block;
    flex-shrink: 0;
}

.kya-report-steps-list li.is-active .kya-report-step-dot {
    background-color: #c86d57;
    box-shadow: 0 0 0 3px rgba(200, 109, 87, 0.22);
}

.kya-report-steps-list li.is-done .kya-report-step-dot {
    background-color: #1b7f79;
}

/* Inline Email Delivery Box inside Modal */
.kya-report-email-box {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid #e5dfd3;
    margin-top: 12px;
}

.kya-report-email-box-label {
    font-size: 12.5px;
    color: #334155;
    margin-bottom: 8px;
}

.kya-report-email-row {
    display: flex;
    gap: 8px;
}

.kya-report-email-row input {
    flex: 1;
    padding: 8px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13.5px;
}

.kya-report-email-row button {
    background-color: #182534;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.kya-report-email-feedback {
    font-size: 12.5px;
    color: #1b7f79;
    font-weight: 600;
    margin-top: 6px;
}

/* Ready / Download Callout */
.kya-report-ready-actions {
    margin-top: 16px;
    text-align: center;
}

.kya-report-download-btn {
    display: inline-block;
    background-color: #c86d57;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(200, 109, 87, 0.25);
}

.kya-report-download-btn:hover {
    background-color: #b15843;
}

/* ==========================================================================
   Mobile Refinements (<= 600px)
   ========================================================================== */
@media (max-width: 600px) {
    .kya-report-widget {
        padding: 18px 16px;
        margin: 16px 0;
    }

    .kya-report-widget-title {
        font-size: 19px;
        line-height: 1.25;
    }

    .kya-report-widget-subtitle {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .kya-report-form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .kya-report-field {
        flex: 1 1 auto;
        width: 100%;
    }

    .kya-report-field input {
        font-size: 16px;
        min-height: 44px;
        padding: 10px 12px;
    }

    .kya-report-actions {
        width: 100%;
    }

    .kya-report-submit-btn {
        width: 100%;
        min-height: 46px;
        font-size: 15px;
        padding: 12px 18px;
    }

    /* Keep progress modal scrollable and readable on short phone viewports */
    .kya-report-modal-backdrop {
        padding: 12px;
        align-items: flex-start;
        overflow-y: auto;
    }

    .kya-report-modal {
        margin: auto 0;
        max-height: calc(100dvh - 24px);
        display: flex;
        flex-direction: column;
    }

    .kya-report-modal-header {
        padding: 16px 18px;
        flex-shrink: 0;
    }

    .kya-report-modal-title {
        font-size: 18px;
        line-height: 1.3;
    }

    .kya-report-modal-close,
    button.kya-report-modal-close {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
    }

    .kya-report-modal-body {
        padding: 16px 18px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .kya-report-status-line {
        gap: 10px;
        font-size: 13px;
    }

    .kya-report-steps-list {
        padding: 12px 14px;
        margin-bottom: 14px;
    }

    .kya-report-steps-list li {
        font-size: 12.5px;
        line-height: 1.35;
        align-items: flex-start;
    }

    .kya-report-step-dot {
        margin-top: 4px;
    }

    .kya-report-email-row {
        flex-direction: column;
        gap: 8px;
    }

    .kya-report-email-row input {
        width: 100%;
        font-size: 16px;
        min-height: 44px;
        padding: 10px 12px;
        box-sizing: border-box;
    }

    .kya-report-email-row button {
        width: 100%;
        min-height: 44px;
        font-size: 14px;
        padding: 10px 14px;
    }

    .kya-report-download-btn {
        display: block;
        width: 100%;
        box-sizing: border-box;
        min-height: 46px;
    }
}

