.miracle-contact-form {
    margin-top: 1.2em;
}

.miracle-contact-form p {
    margin: .8em 0;
}

.miracle-contact-form label {
    display: block;
    margin-bottom: 5px;
    color: #561522;
    font-size: .76em;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.miracle-contact-form input,
.miracle-contact-form textarea {
    box-sizing: border-box;
    width: 100% !important;
    padding: 10px 11px;
    border: 1px solid rgba(86, 21, 34, .2);
    border-radius: 5px;
    background: rgba(255, 255, 255, .8);
    color: #4d4142;
    font: inherit;
}

.miracle-contact-form input:focus,
.miracle-contact-form textarea:focus {
    border-color: #ef807f;
    outline: 2px solid rgba(239, 128, 127, .18);
}

.miracle-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.miracle-form-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.miracle-submit {
    padding: 10px 17px;
    border: 0;
    border-radius: 999px;
    background: #561522;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.miracle-submit:hover {
    background: #ff6f49;
}

.miracle-submit:disabled {
    cursor: wait;
    opacity: .65;
}

.miracle-form-status {
    font-size: .76em;
    line-height: 1.4;
}

.miracle-form-status.is-success {
    color: #27734a;
}

.miracle-form-status.is-error {
    color: #a61b2b;
}

.miracle-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 520px) {
    .miracle-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .miracle-form-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Service dropdown, matching the text fields. */
.miracle-contact-form select {
    box-sizing: border-box;
    width: 100% !important;
    height: auto;
    padding: 10px 36px 10px 11px;
    border: 1px solid rgba(86, 21, 34, .2);
    border-radius: 5px;
    background: rgba(255, 255, 255, .8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef807f' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 11px center / 16px no-repeat;
    color: #4d4142;
    font: inherit;
    cursor: pointer;
    -webkit-appearance: none;
            appearance: none;
}

.miracle-contact-form select:invalid {
    color: #9a8d8e;
}

.miracle-contact-form select option,
.miracle-contact-form select optgroup {
    color: #4d4142;
}

.miracle-contact-form select optgroup {
    color: #561522;
    font-weight: 700;
}

.miracle-contact-form select:focus {
    border-color: #ef807f;
    outline: 2px solid rgba(239, 128, 127, .18);
}
