/* ============================
   Wrapper
   ============================ */
.mh-rdb-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px;
    font-family: inherit;
}

/* ============================
   Form layout
   ============================ */
.mh-rdb-wrap .mh-rdb-form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin-bottom: 22px;
}

.mh-rdb-wrap .mh-rdb-row {
    flex: 1 1 260px;
    min-width: 220px;
}

.mh-rdb-wrap .mh-rdb-row-search,
.mh-rdb-wrap .mh-rdb-row-kw {
    flex: 1 1 100%;
}

.mh-rdb-wrap .mh-rdb-row label {
    font-size: 14px;
    font-weight: 600;
    color: #1E3A5F;
    margin-bottom: 4px;
    display: block;
}

/* ============================
   Inputs (text + search + select)
   ============================ */
.mh-rdb-wrap input[type="text"],
.mh-rdb-wrap input[type="search"],
.mh-rdb-wrap select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 10px;
    border: 1px solid #BFD7EA;
    background: #F8FBFF;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.mh-rdb-wrap input[type="text"]:focus,
.mh-rdb-wrap input[type="search"]:focus,
.mh-rdb-wrap select:focus {
    outline: none;
    border-color: #1E88E5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30,136,229,.15);
}

/* ============================
   Buttons (هرچی دکمه است)
   ============================ */
.mh-rdb-wrap button,
.mh-rdb-wrap input[type="submit"],
.mh-rdb-wrap input[type="button"] {
    font-size: 14px;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
}

/* دکمه Search */
.mh-rdb-wrap .mh-rdb-submit,
.mh-rdb-wrap input[type="submit"] {
    background: #1E88E5;
    border: none;
    color: #fff;
    transition: background .2s, transform .1s;
}

.mh-rdb-wrap .mh-rdb-submit:hover,
.mh-rdb-wrap input[type="submit"]:hover {
    background: #2196F3;
}

.mh-rdb-wrap .mh-rdb-submit:active,
.mh-rdb-wrap input[type="submit"]:active {
    transform: scale(.97);
}

/* دکمه Reset */
.mh-rdb-wrap .mh-rdb-reset {
    background: #f2f6fa;
    color: #345;
    border: 1px solid #cdd8e5;
    margin-left: 8px;
    transition: background .2s;
}

.mh-rdb-wrap .mh-rdb-reset:hover {
    background: #e4edf7;
}

/* ============================
   Cards
   ============================ */
.mh-rdb-wrap .mh-rdb-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.mh-rdb-wrap .mh-rdb-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    border: 1px solid #dfe7ef;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform .15s, box-shadow .15s;
}

.mh-rdb-wrap .mh-rdb-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.07);
}

.mh-rdb-wrap .mh-rdb-card h3 {
    margin: 0 0 10px;
    color: #1E3A5F;
    font-size: 18px;
}

.mh-rdb-wrap .mh-rdb-meta {
    font-size: 13px;
    color: #6c7a89;
    margin-bottom: 8px;
}

.mh-rdb-wrap .mh-rdb-excerpt {
    font-size: 14px;
    color: #334;
    line-height: 1.55;
}

.mh-rdb-wrap .mh-rdb-themes {
    margin-top: 12px;
    font-size: 13px;
    color: #1E3A5F;
    padding-top: 8px;
    border-top: 1px solid #e3e9f1;
}

.mh-rdb-wrap .mh-rdb-noresults {
    padding: 34px;
    text-align: center;
    font-size: 16px;
    color: #567;
}

/* ============================
   Choices.js
   ============================ */
.mh-rdb-wrap .choices {
    font-size: 14px;
}

.mh-rdb-wrap .choices__inner {
    border-radius: 10px !important;
    border: 1px solid #BFD7EA !important;
    background: #F8FBFF !important;
    min-height: 44px !important;
    padding: 6px 8px !important;
    box-shadow: none !important;
}

.mh-rdb-wrap .choices__inner.is-focused {
    border-color: #1E88E5 !important;
    box-shadow: 0 0 0 3px rgba(30,136,229,.15) !important;
    background: #fff !important;
}

.mh-rdb-wrap .choices__list--multiple .choices__item {
    background: #1E88E5;
    color: #fff;
    border-radius: 20px;
    padding: 5px 8px;
    margin: 4px 5px 0 0;
    font-size: 13px;
}

.mh-rdb-wrap .choices__list--dropdown {
    z-index: 50;
    border-radius: 10px !important;
    border: 1px solid #BFD7EA !important;
}

/* ============================
   Mobile
   ============================ */
@media (max-width: 768px) {
    .mh-rdb-wrap .mh-rdb-row,
    .mh-rdb-wrap .mh-rdb-row-search,
    .mh-rdb-wrap .mh-rdb-row-kw {
        flex: 1 1 100%;
    }
}
