.sindesi-search-form {
    --ssf-blue:        #0280DE;
    --ssf-teal:        #08B4BB;
    --ssf-text:        #1a202c;
    --ssf-muted:       #718096;
    --ssf-border:      #e2e8f0;
    --ssf-panel:       #ffffff;
    --ssf-shadow:      0 4px 20px rgba(15, 23, 42, 0.08);
    --ssf-shadow-hover:0 8px 30px rgba(15, 23, 42, 0.14);
    --ssf-shadow-focus:0 0 0 3px rgba(2, 128, 222, 0.20);
    --ssf-radius:      999px;

    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 640px;
    margin: 24px auto;
    padding: 0 16px;
}

.sindesi-search-form *,
.sindesi-search-form *::before,
.sindesi-search-form *::after {
    box-sizing: border-box;
}

.sindesi-search-form .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ssf-form {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--ssf-panel);
    border: 1px solid var(--ssf-border);
    border-radius: var(--ssf-radius);
    box-shadow: var(--ssf-shadow);
    padding: 6px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ssf-form:hover {
    box-shadow: var(--ssf-shadow-hover);
}

.ssf-form:focus-within {
    box-shadow: var(--ssf-shadow-focus), var(--ssf-shadow-hover);
    border-color: var(--ssf-blue);
}

.ssf-form__label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    padding: 0 16px;
    cursor: text;
}

.ssf-form__icon {
    width: 20px;
    height: 20px;
    color: var(--ssf-muted);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.ssf-form:focus-within .ssf-form__icon {
    color: var(--ssf-blue);
}

.ssf-form__input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 16px;
    color: var(--ssf-text);
    padding: 12px 0;
    font-family: inherit;
    box-shadow: none;
    line-height: 1.4;
}

.ssf-form__input::placeholder {
    color: var(--ssf-muted);
    opacity: 1;
}

.ssf-form__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.ssf-form__submit {
    border: 0;
    background: linear-gradient(135deg, var(--ssf-blue), var(--ssf-teal));
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--ssf-radius);
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    flex-shrink: 0;
    line-height: 1.4;
    text-shadow: none;
    box-shadow: 0 2px 8px rgba(2, 128, 222, 0.25);
}

.ssf-form__submit:hover {
    filter: brightness(1.05);
    box-shadow: 0 4px 14px rgba(2, 128, 222, 0.35);
}

.ssf-form__submit:active {
    transform: translateY(1px);
}

.ssf-form__submit:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -4px;
}

@media (max-width: 639px) {
    .ssf-form {
        flex-direction: column;
        border-radius: 20px;
        padding: 10px;
        gap: 10px;
    }
    .ssf-form__label {
        width: 100%;
        padding: 6px 12px;
        background: transparent;
    }
    .ssf-form__submit {
        width: 100%;
        padding: 14px 24px;
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ssf-form,
    .ssf-form__submit,
    .ssf-form__icon {
        transition: none;
    }
    .ssf-form__submit:active {
        transform: none;
    }
}
