/* Crate Configurator Styles */
.crate-configurator-container {
    display: flex;
    flex-direction: column;
}

.crate-configurator-content {
    display: flex;
    flex: 1;
    position: relative;
}

.crate-form-container {
    width: 40%;
    min-width: 350px;
    background: #f5f5f5;
    padding: 20px;
    overflow-y: auto;
}

.crate-viewer-container {
    flex-grow: 1;
    background: #fff;
    position: relative;
}

/* Form Styles */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.wpcf7-form label {
    display: block;
    font-weight: bold;
}

.wpcf7-submit {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

/* Error Messages */
.error-message {
    color: #d32f2f;
    background-color: #ffebee;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.crate-error-message {
    color: #d32f2f;
    background-color: #ffebee;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 4px;
    font-size: 14px;
}
.wpcf7-form.invalid .wpcf7-response-output {
    border-color: #d32f2f;
    background-color: #ffebee;
    color: #d32f2f;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .crate-configurator-content {
        flex-direction: column;
    }

    .crate-form-container {
        width: 100%;
        max-width: 100%;
    }

    .crate-viewer-container {
        height: 50vh;
    }
}