/* Contact form styles for Edwards Music Company. */
.contact-widget {
    margin-top: 1.75rem;
}

.contact-widget__panel {
    padding: clamp(1.25rem, 3vw, 2rem);
    background: #fff;
    border: 1px solid #d3e3eb;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(8, 42, 58, 0.06);
}

.contact-widget__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1rem;
}

.contact-widget__field {
    min-width: 0;
}

.contact-widget__field--wide {
    grid-column: 1 / -1;
}

.contact-widget__label {
    display: block;
    margin-bottom: 0.4rem;
    color: #173c4c;
    font-size: 0.92rem;
    font-weight: 800;
}

.contact-widget__optional {
    color: #637984;
    font-size: 0.82rem;
    font-weight: 500;
}

.contact-widget__input {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 0.85rem;
    border: 1px solid #b9ced8;
    border-radius: 8px;
    background: #fbfdfe;
    color: #153744;
    font: inherit;
    line-height: 1.45;
}

.contact-widget__input::placeholder {
    color: #788d97;
    opacity: 1;
}

.contact-widget__input:focus {
    outline: 3px solid rgba(0, 101, 134, 0.2);
    border-color: #006586;
    background: #fff;
}

.contact-widget__textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-widget__footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.9rem 1.25rem;
    margin-top: 1.35rem;
}

.contact-widget__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 48px;
    padding: 0.85rem 1.25rem;
    border: 0;
    border-radius: 8px;
    background: #006586;
    color: #fff;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.contact-widget__submit:hover {
    background: #00516d;
    transform: translateY(-1px);
}

.contact-widget__submit:focus-visible {
    outline: 3px solid #ffcf62;
    outline-offset: 3px;
}

.contact-widget__note {
    margin: 0;
    color: #617783;
    font-size: 0.84rem;
}

.contact-widget__alert {
    margin: 0 0 1.2rem;
    padding: 1rem 1.1rem;
    border: 1px solid;
    border-radius: 9px;
    font-size: 0.94rem;
}

.contact-widget__alert strong {
    display: block;
    margin-bottom: 0.2rem;
}

.contact-widget__alert--error {
    border-color: #e4b9b9;
    background: #fff5f5;
    color: #7a2222;
}

.contact-widget__alert--success {
    border-color: #b8d9c2;
    background: #f3fbf5;
    color: #1d5430;
}

.contact-widget__botcheck {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.contact-widget__result {
    max-width: 760px;
    margin-inline: auto;
}

.contact-widget__result p {
    color: #456171;
}

.contact-widget__result a:not(.button) {
    color: #006586;
    font-weight: 800;
}

.contact-widget__result .button {
    margin-top: 0.7rem;
}

@media (max-width: 600px) {
    .contact-widget__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-widget__field--wide {
        grid-column: auto;
    }

    .contact-widget__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-widget__submit {
        width: 100%;
    }
}


/* Inline status messages for the HTML + AJAX contact form. */
.contact-widget__status {
    margin: 1.1rem 0 0;
    padding: 0.9rem 1rem;
    border: 1px solid #c7dbe4;
    border-radius: 9px;
    background: #f4f9fb;
    color: #214657;
    font-size: 0.94rem;
    line-height: 1.5;
}

.contact-widget__status:empty,
.contact-widget__status[hidden] {
    display: none;
}

.contact-widget__status--success {
    border-color: #b8d9c2;
    background: #f3fbf5;
    color: #1d5430;
}

.contact-widget__status--error {
    border-color: #e4b9b9;
    background: #fff5f5;
    color: #7a2222;
}

.contact-widget__status--info {
    border-color: #c7dbe4;
    background: #f4f9fb;
    color: #214657;
}

.contact-widget__submit:disabled {
    cursor: not-allowed;
    opacity: 0.68;
    transform: none;
}
