.er-wrapper {
    border: 1px solid #ddd;
    padding: 16px;
    margin: 16px 0;
    background: #fafafa;
}

.er-question {
    margin-bottom: 12px;
}

.er-question-label,
.er-question-label-only {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.er-required {
    color: #d00;
}

.er-date-range {
    margin-bottom: 16px;
}

.er-date-range-label {
    display: inline-block;
    font-weight: 600;
    margin-bottom: 8px;
}

.er-date-range-label > span {
    display: block;
    margin-bottom: 4px;
}

/* Flatpickr will render its calendar inside this div */
.er-date-range-calendar {
    max-width: 320px; /* adjust to taste */
}

.er-date-range-picker {
    margin-top: 4px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.er-input,
.er-text-input,
.er-text-input-line,
.er-email-input,
.er-date-range input {
    width: 100%;
    max-width: 320px;
}

.er-actions,
.er-book-actions {
    margin-top: 16px;
}

.er-search-button,
.er-book-button {
    padding: 8px 16px;
    border: 1px solid #0073aa;
    background: #0073aa;
    color: #fff;
    cursor: pointer;
}

.er-search-button:hover,
.er-book-button:hover {
    background: #005f8d;
}

.er-products {
    margin-top: 16px;
}

.er-product-item {
    border: 1px solid #ddd;
    padding: 8px;
    margin-bottom: 8px;
    background: #fff;
}

.er-product-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.er-product-title {
    margin-left: 4px;
}

.er-product-desc {
    margin-top: 4px;
    font-size: 14px;
}

.er-value-image {
    max-width: 60px;
    max-height: 60px;
    margin-left: 6px;
}

.er-message {
    margin-top: 12px;
    padding: 8px;
    border-radius: 3px;
    font-size: 14px;
}

.er-message-info {
    background: #eef5ff;
    border: 1px solid #aac4ff;
}

.er-message-success {
    background: #e7f8ec;
    border: 1px solid #7ac89b;
}

.er-message-error {
    background: #fbeaea;
    border: 1px solid #e39a9a;
    color: #c00;
}

.er-hidden-option {
    display: none !important;
}

.er-question-hidden {
    display: none !important;
}
/* Radio groups with images: card grid layout */
.er-radio-group-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

/* Card style for each radio option */
.er-radio-option {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

/* Hide default radio visually but keep it accessible */
.er-radio-option input[type="radio"] {
    margin-bottom: 8px;
}

/* Larger, nicer images */
.er-radio-option .er-value-image {
    max-width: 140px;
    max-height: 140px;
    margin-bottom: 8px;
    display: block;
    object-fit: contain;
}

/* Label text under the image */
.er-radio-label-text {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-top: 4px;
}

/* Hover effect */
.er-radio-option:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

/* Selected state */
.er-radio-option.er-radio-selected {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
    background-color: #f3f9ff;
}
