/* Wrapper – fullbredd, centrerad innehåll */
.elmarknad-elomrade-widget {
    width: 100%;
    max-width: none;
    margin: 40px auto 60px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: inherit;
}

/* Titel / ev. underrubrik om du använder dem i shortcoden */
.elomrade-widget__title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #183b6b;
    margin: 0 0 8px;
    text-align: center;
}

.elomrade-widget__subheading {
    margin: 0 0 24px;
    font-size: 1rem;
    color: #4b5c75;
    text-align: center;
}

/* Form */
.elomrade-widget__form {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Visually hidden (för label) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Sökrad – lik “Hitta nätägare”-fältet */
.elomrade-widget__search-row {
    width: 100%;
    max-width: 600px;
    height: 40px;
    display: flex;
    align-items: center;
    border-radius: 999px;
    gap: 10px;
}

/* Input */
.elomrade-widget__input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    height: 100%;
    outline: none;
    color: #183b6b;
    border-radius:999px;
}

.elomrade-widget__input::placeholder {
    color: #9aa7bd;
}

/* Knapp */
.elomrade-widget__btn-primary {
    height: 40px;
    margin-right: 8px;
    padding: 0 24px;
    border-radius: 999px;
    background: #19b586;
    border: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.elomrade-widget__btn-primary:hover {
    background: #159e73;
}

/* Resultat */
.elomrade-widget__result {
    width: 100%;
    max-width: 600px;
    margin-top: 10px;
    font-size: 0.95rem;
}

.elomrade-widget__result-inner {
    padding: 14px 16px;
    border-radius: 12px;
    background: #f4f8ff;
    border: 1px solid #d5e2f0;
}

.elomrade-widget__result-meta {
    margin: 0 0 6px;
    font-size: 0.95rem;
    color: #4b5c75;
}

.elomrade-widget__result-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.elomrade-widget__result.is-error .elomrade-widget__result-inner {
    background: #ffeeee;
    border-color: #e0a0a0;
}

/* Felanmälan */
.elomrade-widget__report {
    width: 100%;
    max-width: 600px;
    margin-top: 10px;
    font-size: 0.9rem;
    text-align:center!important;
}

.elomrade-widget__report-toggle {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    color: #2f7ac4;
    text-decoration: underline;
    cursor: pointer;
}

.elomrade-widget__report-form {
    margin-top: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #d5e2f0;
    background: #f8fbff;
}

.elomrade-widget__report-title {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: #183b6b;
}

.elomrade-widget__report-label {
    display: block;
    margin-bottom: 8px;
}

.elomrade-widget__report-label span {
    display: block;
    margin-bottom: 3px;
    font-size: 0.85rem;
    color: #4b5c75;
}

.elomrade-widget__report-select,
.elomrade-widget__report-textarea,
.elomrade-widget__report-input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d5e2f0;
    font-size: 0.9rem;
    text-align:center;
}

.elomrade-widget__report-textarea {
    resize: vertical;
}

.elomrade-widget__report-submit {
    margin-top: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    background: #45b657;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.elomrade-widget__report-status {
    margin-top: 6px;
    font-size: 0.85rem;
}

.elomrade-widget__report-status.is-success {
    color: #2e7d32;
}

.elomrade-widget__report-status.is-error {
    color: #b94444;
}

@media (max-width: 640px) {
    .elmarknad-elomrade-widget {
        margin-top: 20px;
        padding: 0 16px;
    }

    .elomrade-widget__search-row {
        max-width: 100%;
    }

    .elomrade-widget__result,
    .elomrade-widget__report {
        max-width: 100%;
    }
}
