.pf-part-finder {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 28px;
    margin: 24px 0;
    max-width: 520px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: relative;
}

.pf-part-finder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e99128 0%, #f4a340 50%, #d4821f 100%);
    border-radius: 12px 12px 0 0;
}

.pf-search-title,
.pf-part-finder h3 {
    margin: 0 0 24px 0;
    color: #1f2937;
    font-size: 1.5em;
    font-weight: 600;
    text-align: center;
}

#pf-finder-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pf-form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pf-form-row label {
    font-weight: 600;
    color: #374151;
    font-size: 12px;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.pf-form-row select,
.pf-form-row input[type="text"] {
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-weight: 500;
    color: #1f2937;
}

.pf-form-row select:focus,
.pf-form-row input[type="text"]:focus {
    border-color: #e99128;
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 145, 40, 0.1);
}

.pf-form-row select:disabled,
.pf-form-row input[type="text"]:disabled {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #f3f4f6;
}

.pf-appliance-type-container,
.pf-brand-container,
.pf-model-container {
    position: relative;
    z-index: 10;
}

.pf-brand-container {
    z-index: 9;
}

.pf-model-container {
    z-index: 8;
}

.pf-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2px solid #e99128;
    border-radius: 0 0 8px 8px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin-top: -1px;
}

.pf-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    color: #1f2937;
    font-weight: 500;
}

.pf-suggestion-item:last-child {
    border-bottom: none;
}

.pf-suggestion-item:hover,
.pf-suggestion-item.active {
    background: #fef3e2;
}

.pf-suggestion-item strong {
    background: rgba(233, 145, 40, 0.12);
    color: #d4821f;
    padding: 1px 3px;
    border-radius: 3px;
}

.pf-no-results {
    padding: 12px 16px;
    color: #6b7280;
    font-style: italic;
    text-align: center;
    background: #f9fafb;
}

.pf-loading {
    text-align: center;
    padding: 16px;
    color: #6b7280;
    font-weight: 500;
    background: rgba(233, 145, 40, 0.05);
    border: 1px solid rgba(233, 145, 40, 0.12);
    border-radius: 8px;
    margin-top: 16px;
}

.pf-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fde8e8 100%);
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 14px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-weight: 500;
}

@media (max-width: 767px) {
    .pf-part-finder {
        margin: 16px 0;
        padding: 20px 16px;
    }

    .pf-part-finder h3,
    .pf-search-title {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

    .pf-form-row select,
    .pf-form-row input[type="text"] {
        font-size: 16px;
        min-height: 48px;
    }

    .pf-suggestions {
        max-height: 180px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pf-form-row select,
    .pf-form-row input[type="text"],
    .pf-suggestion-item {
        transition: none;
    }
}
