#rbi-firms-portal * { box-sizing: border-box; margin: 0; padding: 0; font-family: Arial, sans-serif; }

.rfi-main {
    background: #fff;
    padding: 20px;
    border: 1px solid #dde3ed;
    border-radius: 4px;
}

.rfi-section-title {
    font-size: 15px;
    font-weight: bold;
    color: #1a3c6e;
    border-bottom: 2px solid #1a3c6e;
    padding-bottom: 6px;
    margin-bottom: 20px;
}

/* Form */
.rfi-form-row {
    display: flex;
    gap: 24px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.rfi-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.rfi-field label {
    font-size: 12px;
    font-weight: bold;
    color: #333;
}
.rfi-field select,
.rfi-field input[type="text"] {
    border: 1px solid #aaa;
    padding: 6px 8px;
    font-size: 12px;
    background: #fff;
    min-width: 180px;
    border-radius: 3px;
}
.rfi-field select { min-width: 200px; }

/* Submit button row — aligned to right like wireframe */
.rfi-submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 32px;
}

.rfi-btn-submit {
    background: #fff;
    color: #1a3c6e;
    border: 1px solid #1a3c6e;
    padding: 8px 32px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 3px;
}
.rfi-btn-submit:hover { background: #1a3c6e; color: #fff; }
.rfi-btn-submit:disabled { background: #aaa; border-color:#aaa; color:#fff; cursor: not-allowed; }

/* Results page */
.rfi-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.rfi-results-header .rfi-section-title {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.rfi-btn-back {
    background: #fff;
    color: #1a3c6e;
    border: 1px solid #1a3c6e;
    padding: 6px 18px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 3px;
    text-decoration: none;
    display: inline-block;
}
.rfi-btn-back:hover { background: #1a3c6e; color: #fff; }

/* Results table */
.rfi-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 700px;
}
.rfi-table th {
    background: #1a3c6e;
    color: #fff;
    padding: 9px 11px;
    text-align: left;
    font-weight: bold;
    white-space: nowrap;
}
.rfi-table td {
    padding: 8px 11px;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}
.rfi-table tr:nth-child(even) { background: #f5f8ff; }
.rfi-table tr:hover { background: #e8f0fe; }

/* Status badges */
.rfi-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}
.rfi-badge-pending  { background: #fff3cd; color: #856404; }
.rfi-badge-approved { background: #d4edda; color: #155724; }
.rfi-badge-rejected { background: #f8d7da; color: #721c24; }

/* No results */
.rfi-no-results {
    padding: 16px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    border-radius: 3px;
    font-size: 13px;
}

/* Verified / found banner (after-submission page) */
.rfi-verified {
    padding: 16px;
    background: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
    border-radius: 3px;
    font-size: 13px;
    font-weight: bold;
}

@media (max-width: 600px) {
    .rfi-form-row { flex-direction: column; }
    .rfi-field select,
    .rfi-field input { width: 100%; }
}
