/* /assets/css/style.css */

.mfc-form {
    max-width: 500px;
    margin: 20px auto;
    border: 1px solid #ddd;
    padding: 25px;
    border-radius: 8px;
    background: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.mfc-field { margin-bottom: 18px; }

.mfc-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 0.9em;
    color: #333;
}

.mfc-field input[type="text"],
.mfc-field select,
.mfc-field button {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; 
    font-size: 1em;
}

.mfc-field button {
    background-color: #0073aa;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}

.mfc-field button:hover { background-color: #005a87; }
.mfc-field button:disabled { background-color: #aaa; cursor: not-allowed; }

/* Autocomplete */
.mfc-autocomplete-wrapper { position: relative; }
.mfc-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.mfc-autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}
.mfc-autocomplete-item:last-child { border-bottom: none; }
.mfc-autocomplete-item:hover,
.mfc-autocomplete-item.active { background-color: #f5f5f5; }
.mfc-autocomplete-item strong { font-weight: bold; color: #000; }
.mfc-autocomplete-item small  { display: block; font-size: 0.9em; color: #777; margin-top: 2px; }

/* Results */
#mfc-ajax-response { max-width: 500px; margin: 10px auto; }
.mfc-loading {
    padding: 20px; text-align: center; color: #555;
    background-color: #f0f0f0; border: 1px solid #ddd; border-radius: 8px;
}
.mfc-result.success {
    padding: 20px; text-align: center; line-height: 1.6;
    color: #155724; background-color: #d4edda; border: 1px solid #c3e6cb; border-radius: 8px;
}
.mfc-result.error {
    padding: 20px; text-align: center; line-height: 1.6;
    color: #721c24; background-color: #f8d7da; border: 1px solid #f5c6cb; border-radius: 8px;
}

/* CTA سبک و ساده؛ فقط پس از موفقیت به‌صورت داینامیک اضافه می‌شود */
.mfc-cta-wrap{max-width:500px;margin:12px auto 0;display:flex;justify-content:center}
.exb-cta{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 16px;border-radius:12px;
  background:#FE5302;color:#fff;font-weight:700;text-decoration:none;
}
.exb-cta:focus{outline:2px solid #1A156D; outline-offset:2px;}
