/* Values measured from the Gravity Forms contact form on /yhteydenottolomake.
   Selectors are prefixed with .insure-coverage to outrank the theme's
   .site-main input[type=submit] rules. */

.insure-coverage__fields {
    display: flex;
    flex-wrap: wrap;
}

.insure-coverage__field {
    width: 100%;
    margin: 0 0 7px;
    padding: 0 10px 0 0;
    box-sizing: border-box;
}

.insure-coverage__field--half {
    width: 50%;
}

.insure-coverage .insure-coverage__field input,
.insure-coverage .insure-coverage__field textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #9f951c;
    border-radius: 4px;
    background: #fff;
    color: #54565a;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    box-sizing: border-box;
}

.insure-coverage .insure-coverage__field input::placeholder,
.insure-coverage .insure-coverage__field textarea::placeholder {
    color: #54565a;
    font-weight: 500;
    opacity: 0.8;
}

.insure-coverage__footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 13px;
}

.insure-coverage .insure-coverage__submit,
.insure-coverage .insure-coverage__button {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #9f951c;
    border-radius: 8px;
    background: #9f951c;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 2.6656px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

.insure-coverage .insure-coverage__submit:hover,
.insure-coverage .insure-coverage__submit:focus,
.insure-coverage .insure-coverage__button:hover,
.insure-coverage .insure-coverage__button:focus {
    background: #0f4c5a;
    border-color: #0f4c5a;
    color: #fff;
    text-decoration: none;
}

.insure-coverage .insure-coverage__submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.insure-coverage__error {
    flex: 1 1 240px;
    margin: 0;
    color: #a3231d;
    font-size: 16px;
}

.insure-coverage__error:empty {
    display: none;
}

.insure-coverage__results:empty {
    display: none;
}

.insure-coverage__result {
    margin-top: 40px;
}

.insure-coverage__result h3 {
    margin: 0 0 10px;
    color: #0f4c5a;
}

.insure-coverage__result p {
    margin: 0 0 10px;
}

.insure-coverage__result .insure-coverage__button {
    margin-top: 10px;
}

.insure-coverage__contact {
    margin-top: 30px;
}

.insure-coverage .insure-coverage__field textarea {
    min-height: 90px;
    resize: vertical;
}

@media (max-width: 640px) {
    .insure-coverage__field--half {
        width: 100%;
    }
}
