/* Scrollbar */
body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: #EFF2F7; box-shadow: grey 0px 0px 4px inset; border-radius: 10px; }
body::-webkit-scrollbar-thumb { background: #25477B; border-radius: 10px; }
body::-webkit-scrollbar-thumb:hover { background: #0078D3; border-radius: 10px; }

/* Core content positioning and size style */
.centered {
    max-width: 1200px;
    margin: auto;
}

/* Footer positioning and size style */
.footer {
    max-width: 1200px;
    margin: auto;
    overflow-wrap: break-word;
    overflow: wrap;
}
img.social {
    height: 20px;
}

/* General page text style */
body {
    font-family: "Roboto", sans-serif;
    color: #3c5164;
    line-height: normal;
    margin-bottom: 6px;
    font-size: 100%;
}

/* Page title style */
.title {
    font-size: 2em;
    margin-bottom: 6px;
    font-weight: bold;
    color: #25477b;
}

/* Heading 1 style */
h1 {
    font-size: 1.5em;
    font-weight: bold;
    padding-top: 15px;
    color: #0078d3;
    margin-bottom: 6px;
}

/* Heading 2 style */
h2 {
    font-size: 1.25em;
    font-weight: bold;
    padding-top: 5px;
    color: #25477b;
    margin-bottom: 3px;
}

ol {margin: 0px;}
li {padding-top: 6px;}

.pill-text {
    padding: 5px;
    border: 1px solid #66788c;
    border-radius: 10px;
    margin: 0 10px 5px 0;
    display: table-cell;
    background-color: #66788c;
    color: white;
    font-size: 85%;
}

/* Hyperlink style */
a:link {color: #0078d3;}
a:visited {color: #0078d3;}
.screenReader {
    position: absolute;
    width: 1px;
    clip: rect(0 0 0 0);
    overflow: hidden;
    white-space: nowrap;
}

/* Section separator and spacing style */
.section {
    padding-bottom: 15px;
    border-top: 1px dotted #66788c; 
}

/* Pill button format */ 
button.pills {
    padding: 5px 5px;
    border: 1px solid #cfd5dc;
    border-radius: 30px;
    margin: 0 10px 5px 0;
}

/* Button style */
button {
    min-width: 150px;
    display: inline-block;
    background-color: #25477b;
    color: white;
    outline: none;
    border: none;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1em;
    font-weight: bold;
    border-radius: 12px;
    padding: 10px;
}
button:hover {background-color: #546E97;}

/* Style the tip table */
.tipTable {margin: 0 auto;}
.tipCell {
    border:1px solid #0078d3;
    border-left:6px solid #0078d3;
    padding:6px;
}

/* Style embedded content */
.embedVideo {
    border: 1px solid #cfd5dc;
    width: 100%;
    aspect-ratio: 16/9;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.embedTutorial {
    border: none;
    width: 100%;
    aspect-ratio: 16/9;
}

/* Style image selectors */
.imageLink {
    position: relative;
    display: block;
    text-align: center;
    text-decoration: none;
    color: #0078d3;
    overflow: hidden;
    width: 100%;
    margin-bottom: 20px;
}
.imageLink img {
    display: inline-block;
    width: auto;
    height: 100px;
    transition: transform 0.3s ease;
    transform-origin: center center;
}
.imageLink p {
    display: inline-block;
    transition: transform 0.3s ease;
}
.description {
    box-sizing: border-box;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    opacity: 0;
    transition: 0.3s ease;
    color: #ffffff;
    border-radius: 10px;
    font-size: 1em;
    transition: opacity 0.3s ease;
    padding: 10px;
    overflow-y: hidden;
}
.imageLink:hover .description {
    visibility: visible;
    opacity: 1;
}

/* Style more labels */
.more {
    color: #25477b;
    text-align: center;
    font-weight: bold;
    border: none;
    margin-top: 10px;
}

/* STYLE FEEDBACK FORM */
.feedback {
    max-width: 800px;
    min-width: 500px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #d1d6dd;
    border-radius: 8px;
    font-family: "Roboto", sans-serif;
    background-color: #eff2f7;
    color: #3c5164;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-size: 1em;
}
.feedbackGroup {
    margin-bottom: 25px;
}
.feedbackGroup label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
/* Grid system for Q1,Q2 */
.ratingGrid {
    display: grid;
    /* Define columns: Question gets automatic space, Stars get fixed width */
    grid-template-columns: 1fr auto; 
    gap: 10px;
    align-items: center; /* Vertically center the stars */
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d1d6dd; /* Clear separation from next section */
}
.starRating {
    direction: rtl;
    display: inline-flex;
    white-space: nowrap; /* Keep stars on one line */
}
.starRating input { display: none; }
.starRating label {
    font-size: 1.5em;
    color: #d1d6dd;
    cursor: pointer;
    padding: 0 2px;
    transition: color 0.2s;
}
.starRating input:checked ~ label,
.starRating label:hover,
.starRating label:hover ~ label {
    color: #f9ba00;
}
#conditional-feedback {
    display: none;
    padding: 15px;
    border: 2px solid #fe5a3f;
    border-radius: 6px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* NPS labels and scale */
.npsWrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}
.npsLabel {
    font-weight: bold;
    font-size: 0.8em;
    white-space: nowrap;
}
.scaleContainer {
    display: flex;
    justify-content: space-between;
    gap: 2px;
    padding: 10px;
    border-radius: 6px;
    flex-grow: 1;
}
.scaleItem {
    flex: 1;
    text-align: center;
}
.scaleItem input { margin-bottom: 5px; cursor: pointer; }
.scaleItem span { display: block; font-size: 0.75em; }
/* Short answer */
input[type="text"], textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d6dd;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
    background: #fff;
}
/* Character limit for text responses */
.charCount {
    display: block;
    text-align: right;
    font-size: 0.8em;
    color: #66788c;
    margin-top: 4px;
}
/* Response message to submitted form */
.feedbackSent {
    display:none;
    color: #007D3E;
    font-weight: bold;
    margin-top: 10px;
}
/* Responsive feedback form adjustment for mobile view */
@media (max-width: 600px) {
    .ratingGrid {
        grid-template-columns: 1fr; /* 1 column instead of 2 */
        gap: 5px;
    }
    .gridQuestion { margin-bottom: 0px; }
    .starRating { justify-content: flex-start; }
    .npsWrapper {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .npsLabel {
        order: -1; /* Force label to appear before scale */
        margin-bottom: 5px;
    }
    .scaleContainer {
        order: 1; /* Force scale to appear after labels */
        flex-basis: 100%; /* Force scale to take max width on new line */
    }
    /* Allow scale item wrap if screen is tiny */
    .scaleContainer { flex-wrap: wrap; }
    .scaleItem { min-width: 9%; }
}