/* Contact form for installers (public/installateurs-nl/), loaded after styles.css.
   Reuses the check's tokens, inputs, autocomplete and submit button; only the page
   frame differs, because it sits in a ~550px text column on my-pv.com. */

/* No 100vh minimum and no outer padding: lang.js posts body.scrollHeight to the
   parent as the iframe height, and a viewport-based minimum would let the iframe
   only ever grow. Transparent so the card sits on the website's own background. */
body.lp-body {
    display: block;
    min-height: 0;
    padding: 0;
    background: transparent;
}

.lp-card {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 28px 28px 24px;
    background: var(--white);
    border: 1px solid #d8e8f1;
    border-top: 4px solid var(--teal);
    border-radius: var(--radius);
}

.lp-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* display:flex above would otherwise beat the hidden attribute after submit */
.lp-form[hidden] {
    display: none;
}

.lp-heading {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--teal);
    line-height: 1.35;
    margin-bottom: 4px;
}

.lp-field .form-error {
    margin-top: 6px;
}

.lp-textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.5;
}

.lp-submit {
    margin-top: 4px;
}

.lp-submit:disabled {
    cursor: progress;
}

.lp-submit-error {
    margin-top: -8px;
}

.lp-privacy {
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--gray);
}

.lp-privacy a {
    color: var(--teal);
}

.lp-success {
    padding: 20px 0 12px;
    text-align: center;
    outline: none;
}

.lp-success[hidden] {
    display: none;
}

.lp-success__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--un-gruen);
    color: var(--white);
    border-radius: var(--radius);
}

.lp-success .lp-heading {
    margin-bottom: 12px;
}

.lp-success__text {
    color: #4a4f54;
}

@media (max-width: 600px) {
    .lp-card {
        padding: 22px 18px 20px;
    }

    .lp-heading {
        font-size: 1.3rem;
    }
}
