body {
    background: linear-gradient(to right, #950c1d 0%, #950c1d 120px, white 120px);
    font-family: "prompt", sans-serif;
    font-weight: 400;
}
.header-section {
    background: linear-gradient(to right, #950c1d 0%, #950c1d 120px, white 120px);
    padding: 20px 0;
    margin-bottom: 30px;
    position: relative;
}
a:focus {
    outine: 0 !important;
}
label {
    font-weight: 500;
}
.ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 150px 150px 0;
    border-color: transparent #4a4a4a transparent transparent;
}
.ribbon-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}
.logo {
    max-width: 200px;
    margin-bottom: 10px;
}
.main-title {
    color: #4a4a4a;
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}
.sub-title {
    color: #999;
    font-size: 18px;
    margin: 5px 0;
}
.form-container {
    background: #ffffff;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 20px;
    border: 1px solid #e9e9e9;
    position: relative;
}
.section-title {
    color: #333;
    font-size: 20px;
    font-weight: 500;
    /* margin-top: 30px;*/
    margin-bottom: 5px;
}
.section-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}
.question-title {
    color: #333;
    font-weight: 500;
    margin-top: 25px;
    font-size: 18px;
}
.question-subtitle {
    color: #666;
    font-size: 15px;
    margin-bottom: 15px;
}
.required {
    color: #c41e3a;
    margin-left: 3px;
}
.note-text {
    color: #999;
    font-size: 13px;
    margin-bottom: 20px;
}
.warning-box {
    color: red;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}
.warning-text {
    color: #c41e3a;
    font-weight: bold;
    margin-bottom: 5px;
}
.rating-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
    gap: 8px;
    margin: 20px 0;
    padding: 0;
    box-sizing: border-box;
    margin: 15px 0;
    padding: 5px;
}
.rating-option {
    opacity: 1;
    transition: opacity 0.3s;
    position: relative;
    text-align: center;
    cursor: pointer;
    padding: 0;
    border: 1px solid #dfdfdf;
    border-radius: 10px;
    transition: all 0.3s;
    background: transparent;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}
.rating-container:has(.rating-option input:checked) .rating-option:not(:has(input:checked)) {
    opacity: 0.4;
}
.rating-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
    margin: 0;
    top: 0;
    left: 0;
}
.rating-option label {
    cursor: pointer;
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 5px;
    z-index: 1;
}
.rating-option:hover {
    background-color: #f9f9f9;
}
.rating-option:has(input[type="radio"]:checked) {
    opacity: 1;
    border: 3px solid #4CAF50;
    background-color: #E8F5E9;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.emoji {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
    line-height: 1;
}
.emoji img {
    max-width: 50px;
    height: auto;
    margin: 0 auto;
    display: block;
}
.emoji-1 {
    color: #d32f2f;
}
.emoji-2 {
    color: #f57c00;
}
.emoji-3 {
    color: #fbc02d;
}
.emoji-4 {
    color: #9ccc65;
}
.emoji-5 {
    color: #4caf50;
}
.rating-number {
    font-size: 20px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}
.rating-label {
    font-size: 12px;
    color: #666;
    display: block;
    line-height: 1.2;
    word-wrap: break-word;
}
.legend {
    display: flex;
    justify-content: left;
    margin-top: 15px;
    font-size: 12px;
    flex-wrap: wrap;
}
.legend-item {
    margin: 5px 15px;
    display: flex;
    align-items: center;
}
.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}
.legend-satisfied {
    background-image: url(../img/emo-1.png);
    background-size: contain;
    background-repeat: no-repeat;
}
.legend-dissatisfied {
    background-image: url(../img/emo-5.png);
    background-size: contain;
    background-repeat: no-repeat;
}
.checkbox span {
    font-weight: 400;
    color: #8d8d8d;
    font-style: italic;
}
.header-text {
    margin-top: 20px;
}
.black-ribbon {
    position: absolute;
    right: 14px;
    z-index: 9;
    max-width: 150px;
    top: -20px;
}
.header-container {
    position: relative;
}
@media (max-width: 768px) {
    .rating-container {
        gap: 2px;
    }
    .rating-option {
        padding: 0;
    }
    .rating-option label {
        padding: 8px 2px;
    }
    .emoji {
        font-size: 36px;
        margin-bottom: 5px;
    }
    .emoji img {
        max-width: 40px;
    }
    body {
        background: linear-gradient(to right, #950c1d 0%, #950c1d 5px, white 5px);
    }
    .header-section {
        background: linear-gradient(to right, #950c1d 0%, #950c1d 5px, white 5px);
    }
    .black-ribbon {
        right: 0;
        max-width: 100px;
    }
    .header-text {
        text-align: center;
    }
    .header-section {
        margin: 0;
    }
    .logo {
        max-width: 150px;
        margin-bottom: 10px;
    }
    span.rating-label {
        display: none;
    }
}
.thankyou-section h1 {
    color: #c41e3a;
    font-size: 48px;
    text-align: center;
    position: relative;
}
.thankyou-section span.top {
    color: #353535;
    font-size: 34px;
    display: block;
    margin-top: 35px;
    position: relative;
    left: 20px;
}
.thankyou-section span.bottom {
    color: #353535;
    font-size: 30px;
    display: inline-block;
    margin-top: 15px;
    margin-right: 10px;
}
span.quotes-start {
    position: relative;
    top: 15px;
    color: #a9a9a9;
    display: inline-block;
    font-size: 80px;
    font-weight: 600;
    font-family: 'Merriweather', serif !important;
}
span.quotes-end {
    position: absolute;
    margin-left: 10px;
    color: #a9a9a9;
    display: inline-block;
    font-size: 80px;
    font-weight: 600;
    font-family: 'Merriweather', serif !important;
    margin-top: 30px;
}
.img-mascot {
    margin-top: 50px;
    max-width: 120px;
}
@media (max-width: 768px) {
    .container {
        padding-left: 20px !important;
    }
    .thankyou-section h1 {
        font-size: 24px;
        left: 0;
    }
    .thankyou-section span.top {
        font-size: 21px;
        margin-top: 15px;
        padding: 0 30px;
        margin-left: 0;
    }
    .thankyou-section span.top {
        left: 0;
        line-height: 30px;
    }
    .thankyou-section span.bottom {
        font-size: 20px;
        padding: 0 30px;
        margin-left: 0;
        line-height: 30px;
    }
    .thankyou-section .form-container {
        padding: 10px 0;
    }
    span.quotes-end {
        margin-top: 45px;
        right: 40px;
    }
    span.quotes-start,
    span.quotes-end {
        display: none;
    }
    span.quotes-start {
        top: 10px;
    }
}
.error-message {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -30px;
    margin: 0 auto;
    display: none;
    color: #d9534f;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    padding: 0px 10px;
    margin-top: 12px;
    border-radius: 5px;
    font-size: 14px;
}
}
.error-message.show {
    display: block;
    width: 100%;
}
.input-error {
    border-color: #d9534f !important;
    box-shadow: 0 0 5px rgba(217, 83, 79, 0.5) !important;
}
.rating-container.has-error {
    background-color: #fff5f5;
    outline: 1px solid #d9534f;
    border-radius: 5px;
    position: relative;
    margin: 50px 0;
    padding: 15px;
}
div#error_checkbox_group {
    margin: 10px 5px;
    bottom: 0;
    background: 0;
    border: 0;
}
.form-container.has-error {
    background-color: #fff5f5;
    border: 2px solid #d9534f;
    border-radius: 8px;
    padding: 15px;
}
@media (max-width: 430px) {
    .emoji img {
        max-width: 45px !important;
        margin: 0 auto;
        padding: 5px;
    }
    .form-container {
        padding: 10px !important;
    }
    .rating-container {
        padding: 0;
    }
    .error-message {
        font-size: 12px;
    }
}
@media (min-width: 768px) {
    body,
    .header-section {
        background: linear-gradient(to right, #950c1d 0%, #950c1d 20px, white 20px);
        font-family: "prompt", sans-serif;
        font-weight: 400;
    }
}
@media (min-width: 1400px) {
    body,
    .header-section {
        background: linear-gradient(to right, #950c1d 0%, #950c1d 120px, white 120px);
        font-family: "prompt", sans-serif;
        font-weight: 400;
    }
}
button#submitBtn {
    max-width: 100% !important;
    background-color: #a31f34;
}
.form-control.is-valid {
    border-color: #5bae58 !important;
    background-color: #f0fdf4;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
}
.form-control.is-invalid {
    border-color: #dc3545 !important;
    background-color: #fef2f2;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
}
.validation-message {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}
.validation-message.show {
    display: block;
}
.validation-message.valid-feedback {
    color: #198754;
    font-size: 12px;
}
.validation-message.invalid-feedback {
    color: #dc3545;
    font-size: 12px;
    font-style: italic;
}
