.contact-us-form-container,
.wp-block .contact-us-form-container,
.editor-styles-wrapper .contact-us-form-container,
.block-editor-block-list__layout .contact-us-form-container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--contact-us-padding);
}

.contact-us-form,
.wp-block .contact-us-form,
.editor-styles-wrapper .contact-us-form,
.block-editor-block-list__layout .contact-us-form {
    display: flex;
    flex-direction: column;
    gap: var(--contact-us-gap);
}

.contact-us-field-group,
.wp-block .contact-us-field-group,
.editor-styles-wrapper .contact-us-field-group,
.block-editor-block-list__layout .contact-us-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-us-label,
.wp-block .contact-us-label,
.editor-styles-wrapper .contact-us-label,
.block-editor-block-list__layout .contact-us-label {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-us-input,
.wp-block .contact-us-input,
.editor-styles-wrapper .contact-us-input,
.block-editor-block-list__layout .contact-us-input {
    width: 100%;
    height: var(--contact-us-input-height);
    padding: 0.5rem;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.contact-us-textarea,
.wp-block .contact-us-textarea,
.editor-styles-wrapper .contact-us-textarea,
.block-editor-block-list__layout .contact-us-textarea {
    width: 100%;
    min-height: var(--contact-us-textarea-height);
    padding: 0.5rem;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.contact-us-submit,
.wp-block .contact-us-submit,
.editor-styles-wrapper .contact-us-submit,
.block-editor-block-list__layout .contact-us-submit {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    align-self: flex-start;
}

.contact-us-submit:disabled,
.wp-block .contact-us-submit:disabled,
.editor-styles-wrapper .contact-us-submit:disabled,
.block-editor-block-list__layout .contact-us-submit:disabled {
    cursor: not-allowed;
}

.contact-us-error,
.wp-block .contact-us-error,
.editor-styles-wrapper .contact-us-error,
.block-editor-block-list__layout .contact-us-error {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.contact-us-dialog,
.wp-block .contact-us-dialog,
.editor-styles-wrapper .contact-us-dialog,
.block-editor-block-list__layout .contact-us-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.contact-us-dialog-content,
.wp-block .contact-us-dialog-content,
.editor-styles-wrapper .contact-us-dialog-content,
.block-editor-block-list__layout .contact-us-dialog-content {
    max-width: 500px;
    padding: 2rem;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-us-dialog-close,
.wp-block .contact-us-dialog-close,
.editor-styles-wrapper .contact-us-dialog-close,
.block-editor-block-list__layout .contact-us-dialog-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}