﻿/* Container */
body {
    background-size :contain;
}
.survey-container {
    width: 100%;
    height: 100%;
    max-width: 700px;
    margin: 40px auto;
    background-color: #101a33;
    color: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Question labels */
.question-label {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    justify-content: left;
}

/* Divider */
.divider {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 15px 0;
}

/* Options row */
.options-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

    /* Hide default radio */
    .options-row input[type="radio"] {
        display: none;
    }

    /* Label as emoji button */
    .options-row label {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        text-align: center;
        cursor: pointer;
        padding: 10px;
        border-radius: 10px;
        transition: transform 0.2s, background-color 0.2s, color 0.2s;
        user-select: none;
        width: 80px;
        min-width: 60px;
        line-height: 1.2;
        
    }

        /* Small text under emoji */
        .options-row label span {
            font-size: 0.85rem;
            margin-top: 4px;
        }

        /* Hover effect */
        .options-row label:hover {
            transform: scale(1.15);
            background-color: rgba(255, 255, 255, 0.1);
        }

    /* Checked state with colors */
    .options-row input[type="radio"]:checked + label.good {
        border: 2px solid #28a745;
        background-color: rgba(40, 167, 69, 0.15);
        color: #28a745;
        font-weight: bold;
    }

    .options-row input[type="radio"]:checked + label.moderate {
        border: 2px solid #fd7e14;
        background-color: rgba(253, 126, 20, 0.15);
        color: #fd7e14;
        font-weight: bold;
    }

    .options-row input[type="radio"]:checked + label.bad {
        border: 2px solid #dc3545;
        background-color: rgba(220, 53, 69, 0.15);
        color: #dc3545;
        font-weight: bold;
    }

/* Suggestions box */
textarea.form-control {
    width: 100%;
    min-height: 80px;
    border-radius: 8px;
    padding: 8px;
    resize: vertical;
    border: none;
}

/* Submit button */
button.btn-success {
    background-color: #F5B333;
    color: #000;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    width: 100%;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Responsive tweaks */
@media (max-width: 576px) {
    .options-row label {
        font-size: 1rem;
        width: 50px;
        min-width: 40px;
    }

    .survey-container {
        padding: 15px;
    }

    button.btn-success {
        font-size: 1rem;
        padding: 10px;
    }
}
/* Label as emoji button with default colors */
.options-row label.emoji-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: transform 0.2s, background-color 0.2s, border 0.2s;
    user-select: none;
    width: 80px;
    min-width: 60px;
    line-height: 1.2;
}
/* Span text colors before checked */
label.emoji-option.good, label.emoji-option.good span {
    color: #28a745; /* green for Excellent */
}

label.emoji-option.moderate, label.emoji-option.moderate span {
    color: #fd7e14; /* orange for Moderate */
}

label.emoji-option.bad, label.emoji-option.bad span {
    color: #dc3545; /* red for Bad */
}


/* Checked state with colors */
#food-good:checked + label,
#speed-good:checked + label,
#service-good:checked + label {
    border: 2px solid #28a745; /* green */
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.15);
}

#food-ok:checked + label,
#speed-ok:checked + label,
#service-ok:checked + label {
    border: 2px solid #fd7e14; /* orange */
    color: #fd7e14;
    background-color: rgba(253, 126, 20, 0.15);
}

#food-bad:checked + label,
#speed-bad:checked + label,
#service-bad:checked + label {
    border: 2px solid #dc3545; /* red */
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.15);
}
.hidden-section {
    display: none;
}

#customer-details-section {
    margin-top: 15px;
    transition: all 0.3s ease-in-out;
}
