/* General container and form styling */
.mrel-search-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.mrel-search-form {
    font-family: 'Inter', sans-serif;
}

.mrel-search-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

/* Form field and label styling */
.mrel-search-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.mrel-search-field input,
.mrel-search-field select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    color: #4a5568;
    background-color: #f7fafc;
    transition: all 0.3s ease;
}

.mrel-search-field input:focus,
.mrel-search-field select:focus {
    outline: none;
    border-color: #4c51bf;
    box-shadow: 0 0 0 3px rgba(76, 81, 191, 0.2);
}

.mrel-search-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236B7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1em top 50%;
    background-size: 1.5em;
    padding-right: 3em;
}

/* Range input group styling */
.mrel-search-range-group {
    margin-top: 25px;
}

.mrel-search-range-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 18px;
}

.mrel-search-range {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mrel-search-range input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    color: #4a5568;
}

.mrel-range-separator {
    color: #a0aec0;
    font-weight: bold;
}

/* Button styling */
.mrel-search-button {
    background-color: #4c51bf;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
}

.mrel-search-button:hover {
    background-color: #3f47a6;
    transform: translateY(-2px);
}

.mrel-search-actions {
    margin-top: 30px;
    text-align: right;
}

/* Search results container */
.mrel-search-results {
    margin-top: 30px;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.mrel-search-result-item {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.mrel-search-result-item h3 a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mrel-search-result-item h3 a:hover {
    color: #4c51bf;
}

.mrel-search-result-item p {
    margin: 5px 0;
    font-size: 14px;
    color: #718096;
}

.mrel-loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4c51bf;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .mrel-search-grid {
        grid-template-columns: 1fr;
    }
}
