/* ==============================================
   DPF Product Form
   ============================================== */

.dpf-product-form {
    font-family: inherit;
    max-width: 480px;
}

/* Heading */
.dpf-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1d5c3a;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 20px;
}

.dpf-heading-icon {
    width: 1.4em;
    height: 1.4em;
    flex-shrink: 0;
    color: #1d5c3a;
}

/* Label */
.dpf-field label {
    display: block;
    color: #1d5c3a;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* Input */
.dpf-autosuggest-wrapper {
    position: static;
}

#dpf-oem-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 2px solid #3a8c5c;
    border-radius: 8px;
    font-size: 1rem;
    color: #222;
    outline: none;
    transition: border-color 0.15s ease;
}

#dpf-oem-input:focus {
    border-color: #1d5c3a;
}

/* Suggestions list */
.dpf-suggestions-list {
    margin: 4px 0 0 !important;
    padding: 0 !important;
    list-style: none;
    background: #fff;
    border: 1px solid #d0e8da;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-height: 300px;
    overflow-y: auto;
}

.dpf-suggestions-list[hidden] {
    display: none;
}

/* Individual suggestion item */
.dpf-suggestions-list li {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #eef5f1;
    line-height: 1.4;
}

.dpf-suggestions-list li:last-child {
    border-bottom: none;
}

.dpf-suggestions-list li:hover,
.dpf-suggestions-list li[aria-selected="true"] {
    background: #eef5f1;
}

/* Post title — bold, dark green */
.dpf-suggestions-list li strong {
    display: block;
    color: #1d5c3a;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Application field — plain text below */
.dpf-suggestions-list li .dpf-application {
    display: block;
    color: #444;
    font-size: 0.875rem;
    margin-top: 2px;
}

/* Selected part panel */
.dpf-selected-part {
    border: 1px solid #d0e8da;
    border-radius: 8px;
    padding: 12px 16px;
}

.dpf-selected-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.dpf-selected-label {
    color: #1d5c3a;
    font-weight: 700;
    font-size: 0.95rem;
}

.dpf-change-btn {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: #3a8c5c !important;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.dpf-change-btn:hover,
.dpf-change-btn:focus {
    background: none !important;
    border: none !important;
    color: #3a8c5c !important;
    text-decoration: underline;
}

.dpf-selected-details strong {
    display: block;
    color: #1d5c3a;
    font-weight: 700;
    font-size: 0.95rem;
}

.dpf-selected-details span {
    display: block;
    color: #444;
    font-size: 0.875rem;
    margin-top: 2px;
}

/* "I can't find my part" option in the list */
.dpf-cant-find-option {
    border-top: 1px solid #d0e8da !important;
    color: #b35c00;
    font-size: 0.9rem;
    font-style: italic;
}

.dpf-cant-find-option:hover,
.dpf-cant-find-option[aria-selected="true"] {
    background: #fff7ee !important;
}

/* Part not found panel */
.dpf-not-found-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dpf-not-found-panel[hidden] {
    display: none;
}

.dpf-not-found-alert {
    border: 2px solid #c87000;
    border-radius: 8px;
    background: #fff7ee;
    padding: 12px 16px;
}

.dpf-not-found-title {
    display: block;
    color: #c87000;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.dpf-not-found-message {
    margin: 0;
    color: #444;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Fake input showing the typed OEM number */
.dpf-not-found-oem label {
    display: block;
    color: #1d5c3a;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.dpf-fake-input-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 2px solid #3a8c5c;
    border-radius: 8px;
    background: #fff;
}

.dpf-fake-input-value {
    color: #222;
    font-size: 1rem;
}

.dpf-fake-input-clear {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin-left: 12px;
    color: #b35c00 !important;
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
}

.dpf-fake-input-clear:hover,
.dpf-fake-input-clear:focus {
    background: none !important;
    border: none !important;
    color: #b35c00 !important;
}

/* Contact fields */
.dpf-contact-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.dpf-contact-fields[hidden] {
    display: none;
}

.dpf-contact-fields .dpf-field label {
    display: block;
    color: #222;
    font-weight: 400;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.dpf-contact-fields .dpf-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 2px solid #3a8c5c;
    border-radius: 8px;
    font-size: 1rem;
    color: #222;
    outline: none;
    transition: border-color 0.15s ease;
}

.dpf-contact-fields .dpf-field input:focus {
    border-color: #1d5c3a;
}

/* Submit button */
.dpf-submit-btn {
    width: 100%;
    padding: 14px 16px;
    background-color: #7a9e3b;
    color: #fff !important;
    font-size: 1rem;
    font-weight: 700;
    border: none !important;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.dpf-submit-btn:hover,
.dpf-submit-btn:focus {
    background-color: #628030 !important;
    color: #fff !important;
    border: none !important;
}

.dpf-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Form messages */
.dpf-form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.dpf-form-message[hidden] {
    display: none;
}

.dpf-form-message--success {
    background: #eef5f1;
    border: 1px solid #3a8c5c;
    color: #1d5c3a;
}

.dpf-form-message--error {
    background: #fff7ee;
    border: 1px solid #c87000;
    color: #c87000;
}
