/* Senfyab – Global search bar (all mobile pages) */

/* ── CTA buttons ── */
.sf-cta-row {
    margin: 0.65rem 0 0.5rem;
    width: 100%;
    max-width: 100%;
}

.sf-cta-row > [class*="col-"] {
    min-width: 0;
}

.sf-cta__btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block !important;
    text-align: center;
    padding: 0.65rem 0.5rem !important;
    border: none !important;
    border-radius: 7px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    font-family: 'IRANSans', sans-serif !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    text-transform: none !important;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(0, 45, 90, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    margin: 0 !important;
    position: relative;
    overflow: hidden;
}

.sf-cta__btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, transparent 55%);
    pointer-events: none;
}

.sf-cta__btn:hover,
.sf-cta__btn:focus {
    text-decoration: none !important;
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.sf-cta__btn:active {
    transform: scale(0.98);
    filter: brightness(0.96);
}

.sf-cta__btn--primary {
    background: linear-gradient(135deg, #007DC5 0%, #006aad 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 125, 197, 0.32) !important;
}

.sf-cta__btn--primary:hover,
.sf-cta__btn--primary:focus {
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(0, 125, 197, 0.38) !important;
}

.sf-cta__btn--success {
    background: linear-gradient(135deg, #00a86b 0%, #008f5a 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 168, 107, 0.28) !important;
}

.sf-cta__btn--success:hover,
.sf-cta__btn--success:focus {
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(0, 168, 107, 0.34) !important;
}

.sf-search {
    margin: 0.5rem 0 0.75rem;
}

.sf-search__card {
    position: relative;
    background: linear-gradient(180deg, #fff 0%, #fafcfe 100%);
    border: 1.5px solid #e8edf3;
    border-radius: 16px;
    padding: 0.9rem 1rem 0.85rem;
    box-shadow: 0 4px 18px rgba(0, 45, 90, 0.08);
    overflow: visible;
}

.sf-search__card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 1.25rem;
    left: 1.25rem;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, #007DC5 0%, #00a3e8 50%, #007DC5 100%);
    opacity: 0.85;
}

.sf-search__label {
    display: block;
    margin: 0.15rem 0 0.7rem;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    line-height: 1.45;
}

.sf-search__brand {
    color: #007DC5;
    font-weight: 800;
}

.sf-search__brand-dark {
    color: #1b2636;
    font-weight: 800;
}

.sf-search__label-sep {
    margin: 0 0.35rem;
    color: #cbd5e1;
    font-weight: 400;
}

.sf-search__input-wrap {
    position: relative;
}

.sf-search__input-wrap.is-searching .sf-search__icon {
    opacity: 0.35;
}

.sf-search__spinner {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border: 2px solid #e2e8f2;
    border-top-color: #007DC5;
    border-radius: 50%;
    animation: sf-search-spin 0.65s linear infinite;
    z-index: 3;
    display: none;
}

.sf-search__input-wrap.is-searching .sf-search__spinner {
    display: block;
}

@keyframes sf-search-spin {
    to {
        transform: rotate(360deg);
    }
}

.sf-search__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 1rem 0.75rem;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.sf-search__loading .sf-search__spinner {
    position: static;
    margin: 0;
    display: block;
    flex-shrink: 0;
}

.sf-search .ajax_items--empty {
    display: block;
    padding: 0.75rem 0.65rem;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
}

.sf-search__input-wrap .sf-search__icon {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Material Icons' !important;
    font-size: 21px !important;
    font-weight: normal !important;
    font-style: normal !important;
    line-height: 1 !important;
    display: inline-block !important;
    direction: ltr !important;
    color: #94a3b8 !important;
    margin: 0 !important;
    pointer-events: none;
    z-index: 2;
    -webkit-font-feature-settings: 'liga' !important;
    font-feature-settings: 'liga' !important;
}

.sf-search__input.search {
    width: 100%;
    height: auto !important;
    padding: 0.72rem 2.75rem 0.72rem 0.9rem !important;
    font-size: 14px !important;
    font-family: 'IRANSans', sans-serif !important;
    color: #1b2636 !important;
    background: #f0f4f9 !important;
    border: 1.5px solid #e2e8f2 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    margin: 0 !important;
}

.sf-search__input.search:focus {
    background: #fff !important;
    border-color: #007DC5 !important;
    box-shadow: 0 0 0 3px rgba(0, 125, 197, 0.14) !important;
}

.sf-search__input.search::placeholder {
    color: #aab4c2;
    font-size: 13px;
}

/* AJAX dropdown – reposition for new card height */
.sf-search .section_ajax_search {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    max-height: 260px;
    padding: 0.5rem;
    border-radius: 12px;
    background: #fff;
    border: 1.5px solid #e2e8f2;
    box-shadow: 0 8px 28px rgba(0, 45, 90, 0.14) !important;
    z-index: 200;
    overflow-y: auto;
    text-align: right !important;
}

.sf-search .close_search_result {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding: 0.35rem 0.5rem 0.5rem;
    font-size: 12px;
    font-weight: 600;
    color: #64748b !important;
    text-decoration: none !important;
    border-bottom: 1px solid #f0f4f9;
    margin-bottom: 0.25rem;
    cursor: pointer;
}

.sf-search .close_search_result:hover {
    color: #007DC5 !important;
}

.sf-search .ajax_items {
    display: block;
    padding: 0.55rem 0.65rem;
    margin-bottom: 2px;
    font-size: 12.5px !important;
    font-weight: 500;
    color: #1b2636 !important;
    text-decoration: none !important;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
    line-height: 1.45;
}

.sf-search .ajax_items:hover {
    background: #e7f4fb !important;
    color: #007DC5 !important;
    box-shadow: none !important;
}

@media (min-width: 576px) {
    .sf-cta__btn {
        font-size: 13.5px !important;
        padding: 0.7rem 0.65rem !important;
    }

    .sf-search__label {
        font-size: 14px;
    }

    .sf-search__input.search {
        font-size: 14.5px !important;
        padding: 0.78rem 2.85rem 0.78rem 1rem !important;
    }
}

@media (max-width: 360px) {
    .sf-cta__btn {
        font-size: 11.5px !important;
        padding: 0.55rem 0.3rem !important;
    }
}

@media (min-width: 992px) {
    .sf-cta__btn {
        font-size: 14px !important;
    }

    .sf-search__card {
        padding: 1rem 1.15rem 0.95rem;
    }
}
