body {
    font-family: Arial, sans-serif;
    margin: 20px;
}
h1 {
    color: #333;
}
.loader{
    display: none;
    position: fixed;
    background-color: rgba(255,255,255,0.5);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-image: url(../images/loader/loader.gif);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 75px;
}



/* ######################################### NEW CSS ######################################### */
.all-fields {
    background: #fff;
    border-radius: 20px;
}
.fix-fields {
    background: #eee;
    padding: 20px 10px;
    border-radius: 20px;
}
.dynamic-fields {
    padding: 20px 0 20px;
}
.all-fields input, .all-fields select, .all-fields input, .all-fields span.select2 .select2-selection {
    height: 35px;
}

.order-fieldset:last-child .addmore-remove-action-btn #add-more {
    display: inline-block;
}

.order-fieldset .addmore-remove-action-btn #add-more {
    display: none;
}

/* Feedback For CSS */
.feedback-container .form-label {
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}
.btn-theme-green{
    background: #8dc640 !important;
    border: 1px solid #8dc640;
    border-radius: 5px;
    color: #fff !important;
}
span.my-2.quest {
    font-size: 14px;
    display: block;
}
body {
    background-image: url(/assets/images/cafe-art-bg-black.jpg);
    background-repeat: repeat;
    background-size: cover;
}
.logo {
    width: 280px;
    margin: 0;
}
/* ######################################### NEW CSS ######################################### */

body {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity))!important;
    font-family: 'Arial', sans-serif;
}
.feedback-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
@media (max-width: 576px) {
    .feedback-container {
        padding: 1rem;
    }
}
h1 {
    color: #343a40;
}
.form-check-label {
    font-size: 13px;
}
.error-message {
    font-size: 0.9rem;
    margin-top:-10px;
    color: red;
}
.required-asterisk {
    color: red;
    font-weight: bold;
}
@media (max-width: 768px) {
    .error-message {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .error-message {
        font-size: 0.75rem;
    }
}
.face-btn {
    width: 50px;
    height: 50px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background: #f1f1f1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    transition: 0.2s ease;
    border: 3px solid transparent;
    flex: 0 0 auto !important;
}

.face-btn:hover {
    transform: scale(1.15);
    background: #e8ffe8;
}
.face-btn.selected {
    border-color: #8dc640;
    background: #d8ffd9;
    transform: scale(1.18);
}
.face-1 { background: #ffe0e0; }
.face-2 { background: #ffd9b3; }
.face-3 { background: #fff0b3; }
.face-4 { background: #c6ffd6; }
.face-5 { background: #aef9ff; }

.category-option {
    background-color: #fff !important;
    color: #333 !important;
    border-color: #ddd !important;
    transition: 0.2s ease;
}

.category-option {
    border: 1px solid #ced4da !important;
    background-color: #fff !important;
    color: #000 !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px;
}

/* .category-option:hover {
    background-color: #f8f9fa !important;
    border-color: #8dc640 !important;
} */

.category-option.active {
    background-color: #8dc640 !important;
    border-color: #8dc640 !important;
     color: #fff !important;
}

.category-option .check-icon {
    width: 18px;
    height: 18px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    flex-shrink: 0;
}

.category-option.active .check-icon {
    background-color: #0d6efd;
    border-color: #0d6efd;
}


.choice-input {
    display: none; /* hide default checkbox */
}

.choice-item {
    border-radius: 6px;
    border: 1px solid #ddd;
}

.choice-label {
    display: block;
    padding: 10px 14px;
    cursor: pointer;
    font-size: unset;
}

.choice-item.active {
    background: #8dc640;
    color: #fff;
    border-color: #8dc640;
}

.choice-item.active .choice-label {
    background: #8dc640;
    color: #fff;
    border-color: #8dc640;
}

/* Feedback form - compact question grid + segmented choices (tablet friendly) */
.q-block {
    padding: 6px 8px;
    border: 1px solid #ececec;
    border-radius: 8px;
    background: #fcfcfc;
}
.q-block .quest {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 500;
}
.q-block .error-message {
    margin-top: 5px;
    margin-bottom: 0;
}
.q-block .comments {
    font-size: 13px;
}
.choice-row {
    gap: 6px;
}
/* visually hidden but still focusable for keyboard users */
.choice-row .choice-input {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    margin: 0;
}
.choice-row .choice-item {
    flex: 1 1 0;
    min-width: 62px;
    margin: 0;
    display: flex;
}
.choice-row .choice-label {
    padding: 7px 4px;
    text-align: center;
    font-size: 12.5px;
    line-height: 1.2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.choice-row .choice-input:focus-visible + .choice-label {
    outline: 2px solid #8dc640;
    outline-offset: 1px;
}

/* step 2 holds the whole questionnaire - trim the card padding so it stays on one screen */
.feedback-container.feedback-step {
    padding: 1rem;
}

/* error text sits directly under its field in the order form */
#order-info .error-message {
    margin-top: 4px;
}

/* ------------------------------------------------------------------
   Tablet and up, ANY orientation: comfortable touch sizing.
   48-52px targets clear the 44px minimum for finger input.
   ------------------------------------------------------------------ */
@media (min-width: 768px) {
    /* step 2 carries the whole questionnaire - let it breathe, but never
       stretch the fields across a huge desktop monitor */
    .feedback-container.feedback-step {
        padding: 1.25rem;
        max-width: 950px;
    }
    .feedback-container .form-label {
        font-size: 16px;
    }
    .feedback-container .form-control,
    .feedback-container .form-select {
        height: 52px;
        font-size: 16px;
    }
    .feedback-container textarea.form-control {
        height: auto;
        font-size: 16px;
    }
    .q-block {
        padding: 12px 14px;
    }
    .q-block .quest {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .choice-row {
        gap: 8px;
    }
    .choice-row .choice-label {
        padding: 15px 6px;
        font-size: 15px;
    }
    .feedback-container .btn {
        padding: 12px 30px;
        font-size: 16px;
    }
    .feedback-container .form-check-label,
    .feedback-container .form-check-label small {
        font-size: 15px;
    }
    #anonymous-checkbox {
        width: 20px;
        height: 20px;
    }
}

/* ------------------------------------------------------------------
   Portrait-mounted tablets (e.g. a Samsung tab in a vertical stand):
   height to spare, so centre the card instead of leaving dead space.
   ------------------------------------------------------------------ */
@media (min-width: 768px) and (orientation: portrait) {
    .main-body {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    /* auto margins centre it without the overflow clipping that
       justify-content:center causes when content grows past the screen */
    .main-body > .container {
        margin-top: auto !important;
        margin-bottom: auto !important;
    }
    .logo {
        width: 340px;
    }
}

/* ------------------------------------------------------------------
   Tall tablets in a vertical stand (~1250px+ of viewport height).
   There is real slack here, so open the layout up: wider gutters,
   roomier question cards and more separation between sections.
   ------------------------------------------------------------------ */
@media (min-width: 768px) and (min-height: 1250px) {
    .feedback-container.feedback-step {
        padding: 1.75rem;
    }
    .question-grid {
        --bs-gutter-x: 1.25rem;
        --bs-gutter-y: 1.25rem;
        margin-top: 1.5rem !important;
    }
    .customer-info-wrapper .row {
        --bs-gutter-x: 1.5rem;
    }
    .q-block {
        padding: 16px 18px;
    }
    .q-block .quest {
        margin-bottom: 12px;
    }
    .choice-row {
        gap: 10px;
    }
    .action-row {
        margin-top: 1.5rem !important;
    }
    .logo-section {
        margin-bottom: 1rem !important;
    }
}
