/* ========================================
   BARANGAY — BUSINESS CLEARANCE
   CSS/index_business_prompt.css
   Inherits base from index_residency_prompt.css
   ======================================== */

/* ── RADIO SECTION ───────────────────────────────────── */
.biz-radio-section {
    padding: 4px 0;
}

.biz-radio-section>.rbi-label {
    display: block;
    margin-bottom: 12px;
}

/* ── RADIO GROUP ─────────────────────────────────────── */
.biz-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.biz-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #1a2a4a;
    /* solid dark navy — matches project labels */
    cursor: pointer;
    user-select: none;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1.5px solid #d0d8ea;
    /* matches project-wide input border */
    background: #f7f8fc;
    /* matches project-wide input background */
    transition: border-color 0.18s, background 0.18s;
}

.biz-radio-label:hover {
    border-color: #10b981;
    /* project-wide brand green on hover */
    background: #ffffff;
}

/* Hide native radio */
.biz-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom radio */
.biz-radio-custom {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #94a3b8;
    background: #ffffff;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.18s;
}

.biz-radio-custom::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #10b981;
    /* project-wide brand green fill */
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.18s, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.biz-radio:checked+.biz-radio-custom {
    border-color: #10b981;
    /* project-wide brand green border */
}

.biz-radio:checked+.biz-radio-custom::after {
    opacity: 1;
    transform: scale(1);
}

/* ── SECTION DIVIDER ─────────────────────────────────── */
.biz-section-divider {
    height: 1px;
    background: #e5e8f0;
    /* matches project-wide divider color */
    margin: 16px 0;
}

/* ── FIELD ───────────────────────────────────────────── */
.biz-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.biz-field.has-error .rbi-input,
.biz-field.has-error .rbi-select {
    border-color: #c0392b !important;
    /* matched to project-wide error red */
    background: #fff8f8;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.08);
}

/* ── ERROR MESSAGES ──────────────────────────────────── */
.biz-error-msg {
    font-size: 0.73rem;
    color: #c0392b;
    /* matched to project-wide error red */
    font-weight: 500;
    min-height: 16px;
    display: block;
}

.biz-radio-section.has-error>.biz-error-msg {
    margin-top: 6px;
}

/* ── KIND OF BUSINESS — HIDDEN BY DEFAULT ────────────── */
.biz-kind-field {
    display: none;
    overflow: hidden;
}

.biz-kind-field.biz-kind-visible {
    display: flex;
    animation: bizKindSlideIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes bizKindSlideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}