﻿/* survey.css */
.outer {
    max-width: 800px; /* max survey width on a monitor */
    margin: auto;
    border: 1px solid #b5b5b5;
}

.titlebar {
    width: 100%;
    background-color: #34a1eb;
    color: white;
    padding: 5px;
    text-align: center;
    font-size: 1.3em;
}

.likert .row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.likert .col-auto {
    flex: 0 0 auto;
    width: auto;
    padding-right: 10px;
}

.likert .col {
    flex: 1;
}

.likert input[type="radio"] {
    margin-top: 0;
}

.logo {
    margin: auto;
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    max-height: 80px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Hide logo container when it has no visible content */
.logo:empty,
.logo:has(img[style*="visibility:hidden"]) {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo {
        padding: 10px;
        min-height: 50px;
    }
    
    .logo img {
        max-height: 60px;
    }
}

.welcome-button {
    text-align: center;
    margin-top: 15px;
}

.welcome-text {
    margin-left: 15px;
    margin-right: 15px;
}

section {
    width: 100%;
}

.section-heading {
    width: 100%;
    background-color: #b5b5b5;
    color: white;
    padding: 5px;
    text-align: left;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 1.2em;
    font-weight: bold;
}

.progress-bar-outer {
    width: 100%;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    background-color: white;
}

.progress-bar-inner {
    width: 0%; /* ################DYnamically updated in JS */
    background-color: green;
    min-height: 10px;
    background: linear-gradient(45deg, rgba(0, 128, 0, 0.5) 25%, /* Semi-transparent green */
    transparent 25%, transparent 50%, rgba(0, 128, 0, 0.5) 50%, rgba(0, 128, 0, 0.5) 75%, transparent 75%, transparent);
    background-size: 10px 10px;
    border: 1px solid #cccccc;
}

.question {
    margin-bottom: 15px;
}

.question-div {
    margin-left: 25px;
    margin-right: 25px;
    margin-top: 15px;
}

.question-text {
    color: black;
    font-weight: bold;
}

.question-help {
    color: grey;
    margin-bottom: 15px;
}

.question-required {
    color: red;
    font-weight: normal;
}

.alert {
    margin-top: 5px;
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 2em;
    position: relative;
    margin-bottom: 15px;
}

    .button-container .btn-secondary {
        margin-left: auto;
        float: right;
    }

h1 {
    font-size: 1.5em;
}

h2 {
    font-size: 1.2em;
}





/* Paragraph */
.paragraph {
}

/* Short text */
.short-text {
}

/* Likert */
.likert {
}
    .likert input {
        width: 1.5em;
        height: 1.5em;
    }

    .likert label {
        font-size: 1.25em;
        margin-left: 0.5em;
    }

.likert-check {
    margin-bottom: 1.5em;
}
/* Radio button */
.radio-button {
}

/* DropDown */
.dropdown {
}

/* Multiselect */
.multiselect {
}

    .multiselect input {
        width: 1.5em;
        height: 1.5em;
    }

    .multiselect label {
        font-size: 1.25em;
        margin-left: 0.5em;
    }
/* Date Picker */
.date-picker {
}

/* Number */
.number {
}

/* Yes-no */
.yes-no {
}

.yes-no-btn {
    width: 100px;
    height: 100px;
    display: inline-block;
    text-align: center;
    line-height: 100px;
    border: 2px solid grey;
    margin-right: 10px;
    cursor: pointer;
}

    .yes-no-btn.active {
        background-color: grey;
        color: white;
        font-weight: bold;
        box-shadow: 0px 0px 10px 5px #f5ae07;
    }
/* NPS1-10 */
.nps1-10 {
}

.nps-rating-scale {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.nps-rating-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.nps-rating-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nps-btn-rating {
    width: 35px;
    height: 35px;
    margin: 0 3px;
    border: 2px solid grey;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    font-size: 16px;
}

    .nps-btn-rating.active {
        background-color: grey;
        color: white;
    }

/* NPS0-10 */
.nps0-10 {
}

/* Photo */
.photo {
}
/* Override Bootstrap styles for the square radio button */
.na-square-radio .form-check-input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 1.5em;
    height: 1.5em;
    border: 0.1em solid black;
    border-radius: 0; /* Ensure the corners are square */
    outline: none;
    margin-left: 20px;
    margin-top: 7px;
    cursor: pointer;
    background-color: white;
}

    .na-square-radio .form-check-input[type="radio"]:checked {
        background-color: #000;
    }

    .na-square-radio .form-check-input[type="radio"]:focus {
        border-color: #033;
        outline: 0.11em solid black;
    }

/* Further ensure no other styles conflict */
input.na-square-radio[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 1.5em;
    height: 1.5em;
    border: 0.1em solid black;
    border-radius: 0;
    outline: none;
    cursor: pointer;
    background-color: white;
}

    input.na-square-radio[type="radio"]:checked {
        background-color: #000;
    }

    input.na-square-radio[type="radio"]:focus {
        border-color: #033;
        outline: 0.11em solid black;
    }

.left-border {
    border-left: 5px;
    min-height: 11px;
}

.green-border {
    background-color: green;
}

.red-border {
    background-color: red;
}

.finger-icon {
    font-size: 40px;
}

.iconVHappy {
    color: #20c61e;
}

.iconHappy {
    color: #50f54e;
}

.iconNeutral {
    color: #e4b417;
}

.iconUnHappy {
    color: #ff0000;
}

.iconVUnHappy {
    color: #c70000;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-icon {
    text-align: center;
}
#loading-message {
    font-size: 18px;
    color: black;
}

/* Stars Based Rating */
.stars-based {
    margin-bottom: 20px;
}

.star-rating-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.star-rating-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.star-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    user-select: none;
}

.star-btn:hover {
    background-color: #f0f0f0;
}

.star-icon {
    font-size: 30px;
    color: #ddd;
    transition: all 0.3s ease;
}

.star-btn.hover .star-icon,
.star-btn.active .star-icon {
    color: #ffd700; /* Gold color for stars */
}

.star-label {
    font-size: 14px;
    font-weight: bold;
    margin-top: 5px;
    color: #666;
}

.star-btn.active .star-label {
    color: #333;
}

/* Text Item */
.text-item {
    margin-bottom: 20px;
}

.text-item-content {
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    border-radius: 4px;
}

.text-item-content p {
    margin-bottom: 0;
}

.text-item-content br {
    line-height: 1.8;
}

/* Alternative styling for informational text items */
.text-item-content.info {
    background-color: #e7f3ff;
    border-left-color: #0056b3;
}

.text-item-content.warning {
    background-color: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.text-item-content.success {
    background-color: #d1edff;
    border-left-color: #28a745;
    color: #155724;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .star-rating-buttons {
        gap: 5px;
    }
    
    .star-icon {
        font-size: 25px;
    }
    
    .star-btn {
        padding: 8px;
    }
}