/* Container */
.rcg-wrap {
    max-width: 900px;
    margin: 30px auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #111827;
}

/* Top box */
.rcg-top {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

/* Rows */
.rcg-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.rcg-label-main {
    font-size: 16px;
    font-weight: 600;
}

.rcg-label-sub {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
}

.rcg-input {
    width: 260px;
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    outline: none;
}

.rcg-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.rcg-select {
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    min-width: 180px;
    font-size: 14px;
    outline: none;
}

.rcg-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.rcg-row-gender {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Primary button */
.rcg-btn-primary {
    background: #3b82f6;
    border: none;
    color: #ffffff;
    padding: 9px 20px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    transition: background 0.15s ease, transform 0.15s ease;
}

.rcg-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* Quick section */
.rcg-quick-title {
    margin-top: 18px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.rcg-quick-buttons {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.rcg-btn-quick {
    background: #e0ecff;
    border: none;
    color: #1d4ed8;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.rcg-btn-quick:hover {
    background: #bfdbfe;
    transform: translateY(-2px);
}

/* Results grid */
.rcg-results {
    margin-top: 20px;
}

.rcg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

/* Card */
.rcg-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 12px 14px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    text-align: center;
}

.rcg-card-image {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.rcg-img {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
}

.rcg-noimg {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 12px;
}

.rcg-card-body {
    margin-top: 8px;
}

.rcg-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 2px;
}

.rcg-profession {
    font-size: 14px;
    font-weight: 500;
    color: #1d4ed8;
    margin-bottom: 6px;
}

.rcg-facts {
    font-size: 14px;
    color: #4b5563;
}

.rcg-none {
    text-align: center;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 640px) {
    .rcg-top {
        padding: 16px 12px;
    }
    .rcg-input {
        width: 100%;
    }
    .rcg-row-gender {
        flex-direction: column;
    }
    .rcg-select {
        width: 100%;
    }
}
