/*
 * Styles for the contact form block.
 *
 * Scope: Global
 */

.scb-block {
    max-width: 640px;
}

.scb-status {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
}

.scb-status p {
    margin: 0 0 0.5rem 0;
}

.scb-errors {
    margin: 0;
    padding-left: 1.25rem;
}

.scb-errors li {
    margin: 0.2rem 0;
}

.scb-status--success {
    background: #e6f7ea;
    color: #1c6b3d;
}

.scb-status--error {
    background: #fde8e8;
    color: #9a1c1c;
}

.scb-form {
    display: grid;
    gap: 1rem;
}

.scb-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.scb-label {
    font-weight: 600;
}

.scb-input,
.scb-textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #c7c7c7;
    border-radius: 4px;
    font-size: 1rem;
}

.scb-textarea {
    resize: vertical;
}

.scb-actions {
    display: flex;
    justify-content: flex-start;
}

.scb-button {
    padding: 0.7rem 1.4rem;
    background: #1f2937;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.scb-form--preview {
    opacity: 0.7;
    pointer-events: none;
}

@media (max-width: 600px) {
    .scb-actions {
        justify-content: stretch;
    }

    .scb-button {
        width: 100%;
    }
}
