.bf-20947b31-wrapper {
    font-family: inherit;
    background: #E22D2D;
    padding: 20px;
    border-radius: 8px;
}
.bf-20947b31-form .bf-20947b31-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 10px;
}
.bf-20947b31-form .bf-20947b31-col {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Default uniform widths for desktop horizontal layout */
.bf-name-col { width: 12.5%; flex: 0 0 12.5%; }
.bf-email-col { width: 12.5%; flex: 0 0 12.5%; }
.bf-city-col { width: 12.5%; flex: 0 0 12.5%; }
.bf-checkin-col { width: 12.5%; flex: 0 0 12.5%; }
.bf-checkout-col { width: 12.5%; flex: 0 0 12.5%; }
.bf-rooms-col { width: 10%; flex: 0 0 10%; }
.bf-guests-col { width: 10%; flex: 0 0 10%; }
.bf-submit-col { width: 15%; flex: 0 0 15%; }

.bf-20947b31-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
    color: #ffffff;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}
.bf-20947b31-form input,
.bf-20947b31-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: #ffffff;
    box-sizing: border-box;
    height: 42px; /* ensure uniform height */
}

.bf-20947b31-submit-wrapper {
    justify-content: flex-end;
}

.bf-20947b31-submit {
    background-color: #333333;
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    height: auto;
    min-height: 42px;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow: visible;
    display: inline-block;
    line-height: 1.2;
    white-space: normal;
}

.bf-20947b31-submit:hover {
    background-color: #000000;
}
.bf-20947b31-message {
    margin-top: 15px;
    padding: 15px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    border: 1px solid transparent;
}
.bf-20947b31-message.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}
.bf-20947b31-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.bf-20947b31-message h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

/* Tablet Layout */
@media (max-width: 1024px) {
    .bf-20947b31-form .bf-20947b31-row {
        flex-wrap: wrap;
    }
    .bf-name-col, .bf-email-col, .bf-city-col, .bf-checkin-col, .bf-checkout-col, .bf-rooms-col, .bf-guests-col, .bf-submit-col {
        width: calc(33.333% - 10px);
        flex: 0 0 calc(33.333% - 10px);
    }
}

/* Mobile Layout */
@media (max-width: 767px) {
    .bf-name-col, .bf-email-col, .bf-city-col, .bf-checkin-col, .bf-checkout-col, .bf-rooms-col, .bf-guests-col, .bf-submit-col {
        width: 100%;
        flex: 0 0 100%;
    }
    #e-form-date-picker-7,
    #e-form-date-picker-9,
    input[type="date"] {
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        padding: 0 16px !important;
        line-height: 60px !important;
        box-sizing: border-box !important;
        appearance: auto !important;
        -webkit-appearance: auto !important;
    }

    #e-form-date-picker-7::-webkit-datetime-edit,
    #e-form-date-picker-9::-webkit-datetime-edit {
        padding: 0 !important;
        line-height: normal !important;
    }
}
