/* ══════════════════════════════════════════════════════════════════════════════
   QuickBill Checker — Simple, minimal form
   ══════════════════════════════════════════════════════════════════════════════ */

.qbc-checker {
    max-width: 620px;
    margin: 28px auto;
    background: #fff;
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 30px 28px;
    font-family: inherit;
}

/* ── Header — hidden by default for minimal look ── */
.qbc-header {
    display: none;
}

/* ── Form ── */
.qbc-form {
    padding: 0;
}

/* ── Field ── */
.qbc-field {
    margin-bottom: 0;
}

.qbc-field-ke-captcha {
    margin-top: 12px;
}

.qbc-field-ke-captcha .qbc-label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    color: #333;
    font-weight: 600;
}

.qbc-ke-captcha-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.qbc-ke-captcha-code {
    display: inline-block;
    min-width: 140px;
    padding: 10px 12px;
    border: 2px dashed #1e9bd7;
    border-radius: 4px;
    background: #f2fbff;
    color: #0b4f73;
    font-family: "Courier New", Courier, monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    user-select: none;
}

.qbc-ke-captcha-refresh {
    appearance: none;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #1f2937;
    border-radius: 4px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
}

.qbc-ke-captcha-refresh:hover {
    background: #f8fafc;
}

.qbc-ke-captcha-help {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 12px;
}

.qbc-bill-type-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.qbc-bill-type-option {
    position: relative;
    flex: 1;
    cursor: pointer;
}

.qbc-bill-type-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.qbc-bill-type-text {
    display: block;
    padding: 11px 12px;
    border: 2px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    line-height: 1.2;
    color: #333;
    background: #fff;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.qbc-bill-type-radio:checked + .qbc-bill-type-text {
    border-color: #1e9bd7;
    background: #f2fbff;
    color: #1e9bd7;
    font-weight: 700;
}

.qbc-bill-type-radio:focus-visible + .qbc-bill-type-text {
    outline: 2px solid rgba(30, 155, 215, 0.35);
    outline-offset: 1px;
}

.qbc-label {
    display: none;
}

.qbc-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #222;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.qbc-input::placeholder {
    color: #999;
}

.qbc-input:focus {
    border-color: #1e9bd7;
}

/* ── Divider ── */
.qbc-divider {
    text-align: center;
    margin: 14px 0;
}

.qbc-divider-text {
    font-size: 14px;
    color: #666;
}

/* ── Checkbox ── */
.qbc-save-row {
    margin: 18px 0 16px;
    display: flex;
    justify-content: center;
}

.qbc-turnstile-row {
    margin: 0 0 18px;
    display: flex;
    justify-content: center;
}

.qbc-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.qbc-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.qbc-checkbox-box {
    display: none;
}

/* ── Submit Button ── */
.qbc-submit {
    display: block;
    width: 60%;
    margin: 0 auto;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: #1e9bd7;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.qbc-submit:hover {
    background: #1788c1;
}

.qbc-disclaimer {
    margin: 12px 0 0;
    text-align: center;
    font-size: 12px;
    line-height: 1.45;
    color: #6b7280;
}

/* ── Result area ── */
.qbc-result {
    padding: 16px 0 0;
}

.qbc-result[hidden] {
    display: none;
}

/* ── Loading state ── */
.qbc-checker.qbc-loading .qbc-submit {
    pointer-events: none;
    opacity: 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.qbc-checker.qbc-loading .qbc-input {
    pointer-events: none;
    opacity: 0.5;
}

.qbc-checker.qbc-loading .qbc-checkbox-label {
    pointer-events: none;
    opacity: 0.5;
}

.qbc-checker.qbc-loading .qbc-bill-type-option {
    pointer-events: none;
    opacity: 0.5;
}

.qbc-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: qbc-spin 0.6s linear infinite;
}

.qbc-checker.qbc-loading .qbc-spinner {
    display: inline-block;
}

@keyframes qbc-spin {
    to { transform: rotate(360deg); }
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .qbc-checker {
        padding: 22px 16px;
    }
    .qbc-submit {
        width: 80%;
    }
}
