/* Quick Access Floating Menu */
.quick-access-menu {
    position: fixed !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 999 !important;
    display: flex;
    flex-direction: column;
    gap: 15px;
    isolation: isolate;
    will-change: transform;
}

/* ========================================
   Quick Links Modal Styles
======================================== */
.quick-links-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.quick-links-modal.active {
    opacity: 1;
    visibility: visible;
}

.quick-links-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.quick-links-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.quick-links-modal.active .quick-links-content {
    transform: translateY(0) scale(1);
}

.quick-links-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 24px;
    background: #044FA0;
    color: #fff;
}

.quick-links-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.quick-links-header h3 i {
    font-size: 1.1rem;
}

.quick-links-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quick-links-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.quick-links-body {
    padding: 20px 24px;
    overflow-y: auto;
    max-height: calc(85vh - 76px);
}

.quick-links-section {
    margin-bottom: 24px;
}

.quick-links-section:last-child {
    margin-bottom: 0;
}

.quick-links-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-links-section-title i {
    font-size: 0.9rem;
    color: #044FA0;
}

/* Quick Links Grid */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: #f8fafc;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-link-item:hover {
    background: #e0f2fe;
    transform: translateY(-2px);
}

.quick-link-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}

.quick-link-icon.blue {
    background: #044FA0;
}

.quick-link-icon.green {
    background: #059669;
}

.quick-link-icon.purple {
    background: #7c3aed;
}

.quick-link-icon.orange {
    background: #ea580c;
}

.quick-link-item span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #334155;
    text-align: center;
}

/* Emergency List */
.emergency-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.emergency-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.emergency-item:hover {
    background: #fee2e2;
    transform: scale(1.02);
}

.emergency-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
}

.emergency-icon.red {
    background: #dc2626;
}

.emergency-icon.blue {
    background: #044FA0;
}

.emergency-icon.orange {
    background: #ea580c;
}

.emergency-icon.green {
    background: #059669;
}

.emergency-info {
    display: flex;
    flex-direction: column;
}

.emergency-name {
    font-size: 0.75rem;
    color: #64748b;
}

.emergency-number {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

/* Important Links */
.important-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.important-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.important-link-item:hover {
    background: #e0f2fe;
    transform: translateX(4px);
}

.important-link-item i:first-child {
    width: 20px;
    color: #044FA0;
    font-size: 1rem;
}

.important-link-item span {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
}

.important-link-item i:last-child {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Contact Buttons */
.contact-buttons {
    display: flex;
    gap: 10px;
}

.contact-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    transition: all 0.2s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-btn.whatsapp {
    background: #25d366;
}

.contact-btn.phone {
    background: #044FA0;
}

.contact-btn.email {
    background: #ea580c;
}

.contact-btn i {
    font-size: 1rem;
}

/* Responsive Quick Links Modal */
@media (max-width: 576px) {
    .quick-links-content {
        width: 95%;
        max-height: 90vh;
    }

    .quick-links-header {
        padding: 16px 20px;
    }

    .quick-links-body {
        padding: 16px 20px;
        max-height: calc(90vh - 68px);
    }

    .quick-links-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .quick-link-item {
        padding: 12px 4px;
    }

    .quick-link-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .quick-link-item span {
        font-size: 0.65rem;
    }

    .emergency-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .emergency-item {
        padding: 10px;
    }

    .emergency-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .emergency-name {
        font-size: 0.7rem;
    }

    .emergency-number {
        font-size: 0.9rem;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .contact-btn span {
        display: inline;
    }
}

/* Mobile Trigger Button */
.quick-access-trigger {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #044FA0;
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-right: 10px;
    /* margin-bottom: 70px; */
    /* box-shadow: 0 4px 15px rgba(37, 71, 162, 0.3); */
    transition: all 0.3s ease;
}

.quick-access-trigger:hover {
    transform: scale(1.1);
    /* box-shadow: 0 6px 20px rgba(37, 71, 162, 0.5); */
}

.quick-access-trigger i {
    font-size: 1.2rem;
}

.quick-access-trigger span {
    display: none;
}

/* FLOATING AKSESIBILITAS (kanan bawah) */
.quick-access-item {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    border-radius: 50px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    text-decoration: none;
    z-index: 999;
}

.quick-access-item:hover {
    background: #1e7e34;
    color: white;
    text-decoration: none;
}

.quick-access-icon {
    font-size: 20px;
}

.quick-access-text {
    font-size: 14px;
    font-weight: 500;
}

/* .quick-access-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quick-access-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-access-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: #044FA0;
    color: #fff;
    border-radius: 12px;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.quick-access-item:hover .quick-access-icon {
    transform: scale(1.1);
}

.quick-access-text {
    position: absolute;
    right: 65px;
    background: #044FA0;
    color: #fff;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.quick-access-item:hover .quick-access-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.quick-access-item.featured .quick-access-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
} */

/* Responsive */
@media (max-width: 991px) {
    .quick-access-menu {
        right: 15px;
    }

    .quick-access-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .quick-access-text {
        right: 60px;
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

@media (max-width: 767px) {
    .quick-access-menu {
        right: 10px;
        gap: 12px;
    }

    .quick-access-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        border-radius: 10px;
    }

    .quick-access-text {
        right: 55px;
        padding: 8px 15px;
        font-size: 0.85rem;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .quick-access-menu {
        right: 8px;
        gap: 10px;
    }

    .quick-access-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .quick-access-text {
        right: 50px;
        padding: 7px 12px;
        font-size: 0.8rem;
    }

    .quick-access-item.featured .quick-access-text {
        opacity: 0;
        visibility: hidden;
        transform: translateX(10px);
    }
}

/* Quick Access Modal */
.quick-access-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.quick-access-modal.active {
    display: block;
}

.quick-access-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.quick-access-modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 25px 25px 0 0;
    padding: 30px 20px;
    max-height: 70vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.quick-access-modal-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.quick-access-modal-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 15px;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.quick-access-modal-item:last-child {
    border-bottom: none;
}

.quick-access-modal-item:hover {
    background: #f8f9fa;
}

.modal-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    flex-shrink: 0;
}

.modal-item-icon i {
    font-size: 1.3rem;
    color: #fff;
}

.modal-item-icon.yellow {
    background: #F6D046;
}

.modal-item-icon.green {
    background: #10A37F;
}

.modal-item-icon.blue {
    background: #2196F3;
}

.modal-item-content h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.modal-item-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* Responsive - Show Mobile Button */
@media (max-width: 767px) {
    .quick-access-trigger {
        display: flex;
        width: 48px;
        height: 48px;
    }

    .quick-access-trigger i {
        font-size: 1.1rem;
    }

    .quick-access-items {
        display: none;
    }

    .quick-access-menu {
        top: auto !important;
        bottom: 20px !important;
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .quick-access-trigger {
        width: 45px;
        height: 45px;
    }

    .quick-access-trigger i {
        font-size: 1rem;
    }
}

/* Weather Popup Modal */
.weather-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}

.weather-popup-modal.active {
    display: block;
}

.weather-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.weather-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 25px;
    width: 90%;
    max-width: 420px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.weather-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
}

.weather-popup-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
}

.weather-popup-close {
    background: #f5f5f5;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.weather-popup-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.weather-popup-close i {
    font-size: 1.1rem;
    color: #666;
}

.weather-popup-body {
    padding: 25px;
}

.weather-popup-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.weather-popup-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.weather-popup-temp-section {
    flex: 1;
}

.weather-popup-temp {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 8px;
}

.temp-unit {
    font-size: 2rem;
    font-weight: 400;
    color: #666;
}

.weather-popup-desc {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 8px;
    text-transform: capitalize;
}

.weather-popup-location {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.weather-popup-location i {
    font-size: 0.85rem;
}

.weather-popup-icon {
    flex-shrink: 0;
}

.weather-emoji-large {
    font-size: 5rem;
    line-height: 1;
}

.weather-popup-details {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.weather-detail-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.weather-detail-row:last-child {
    margin-bottom: 0;
}

.weather-detail-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
}

.detail-icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #044FA0 0%, #3d67c9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon-circle i {
    font-size: 1.2rem;
    color: #fff;
}

.detail-info {
    flex: 1;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.detail-label {
    font-size: 0.8rem;
    color: #666;
}

.weather-popup-close-btn {
    width: 100%;
    padding: 15px;
    background: #044FA0;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.weather-popup-close-btn:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 71, 162, 0.3);
}

.weather-popup-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.weather-popup-loading i {
    font-size: 2.5rem;
    color: #044FA0;
    margin-bottom: 15px;
}

.weather-popup-loading p {
    margin: 0;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 480px) {
    .weather-popup-content {
        width: 95%;
        border-radius: 20px;
    }

    .weather-popup-header {
        padding: 15px 20px;
    }

    .weather-popup-header h3 {
        font-size: 1.1rem;
    }

    .weather-popup-close {
        width: 32px;
        height: 32px;
    }

    .weather-popup-body {
        padding: 20px;
    }

    .weather-popup-temp {
        font-size: 3rem;
    }

    .temp-unit {
        font-size: 1.7rem;
    }

    .weather-emoji-large {
        font-size: 4rem;
    }

    .weather-popup-desc {
        font-size: 1rem;
    }

    .weather-detail-row {
        flex-direction: column;
        gap: 10px;
    }

    .weather-detail-item {
        padding: 12px;
    }

    .detail-icon-circle {
        width: 40px;
        height: 40px;
    }

    .detail-icon-circle i {
        font-size: 1.1rem;
    }

    .detail-value {
        font-size: 1rem;
    }

    .detail-label {
        font-size: 0.75rem;
    }
}

/* Rating/Penilaian Popup Modal */
.rating-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: none;
}

.rating-popup-modal.active {
    display: block;
}

.rating-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.rating-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 20px;
    width: 95%;
    max-width: 650px;
    max-height: 85vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: popupSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.rating-popup-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px 30px;
    border-bottom: 1px solid #f0f0f0;
    background: #044FA0;
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}

.rating-popup-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    flex: 1;
    padding-right: 15px;
}

.rating-popup-close {
    background: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.rating-popup-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.rating-popup-close i {
    font-size: 1.1rem;
    color: #666;
}

.rating-popup-body {
    padding: 30px 30px 0 30px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

#ratingForm {
    padding-bottom: 30px;
}

/* Rating Intro Section */
.rating-intro {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.rating-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.emoji-rating-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.emoji-rating-btn {
    background: transparent;
    border: none;
    width: 65px;
    height: 65px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-rating-btn:hover {
    transform: scale(1.1);
}

.emoji-rating-btn.active {
    transform: scale(1.2);
}

.emoji-rating-btn .emoji {
    font-size: 2.5rem;
    line-height: 1;
    filter: grayscale(100%);
    opacity: 0.4;
    transition: all 0.3s ease;
}

.emoji-rating-btn:hover .emoji {
    filter: grayscale(0%);
    opacity: 1;
}

.emoji-rating-btn.active .emoji {
    filter: grayscale(0%);
    opacity: 1;
}

.rating-help-text {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Form Groups */
.rating-form-group {
    margin-bottom: 15px;
}

.rating-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.5;
}

.required {
    color: #dc3545;
}

.radio-group {
    display: flex;
    gap: .75em;
    flex-flow: row wrap;
    align-items: center;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #555;
    margin: 0;
    padding: 0;
    transition: all 0.2s ease;
    position: relative;
}

.radio-label:hover {
    color: #044FA0;
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
    accent-color: #044FA0;
    transition: transform 0.2s ease;
}

.radio-label:hover input[type="radio"] {
    transform: scale(1.1);
}

.radio-label span {
    line-height: 1.2;
    user-select: none;
}

.radio-label span {
    line-height: 1;
}

.rating-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.875rem;
    font-family: 'Poppins', sans-serif;
    color: #333;
    resize: vertical;
    transition: all 0.3s ease;
    background: #fff;
}

.rating-form-group textarea:hover {
    border-color: #c0c0c0;
}

.rating-form-group textarea:focus {
    outline: none;
    border-color: #044FA0;
    box-shadow: 0 0 0 3px rgba(37, 71, 162, 0.1);
}

.char-count {
    display: block;
    font-size: 0.75rem;
    color: #999;
    margin-top: 6px;
    text-align: right;
}

.rating-form-group select,
.rating-form-group input[type="text"],
.rating-form-group input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.875rem;
    font-family: 'Poppins', sans-serif;
    color: #333;
    transition: all 0.3s ease;
    background: #fff;
}

.rating-form-group select:hover,
.rating-form-group input:hover {
    border-color: #c0c0c0;
}

.rating-form-group select:focus,
.rating-form-group input:focus {
    outline: none;
    border-color: #044FA0;
    box-shadow: 0 0 0 3px rgba(37, 71, 162, 0.1);
}

/* Rating Section */
.rating-section {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
}

.rating-section-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
}

.rating-item {
    margin-bottom: 25px;
}

.rating-item:last-child {
    margin-bottom: 0;
}

.rating-item>label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
}

.rating-scale-horizontal {
    display: flex;
    align-items: center;
    gap: 20px;
}

.rating-buttons {
    display: flex;
    gap: 0;
}

.rating-btn-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    gap: 8px;
    margin-right: 5px;
}

.rating-btn-option input[type="radio"] {
    display: none;
}

.rating-btn-option .rating-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: #fff;
    border: 2px solid #ddd;
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    transition: all 0.3s ease;
}

.rating-btn-option:hover .rating-number {
    border-color: #044FA0;
    background: #f0f4ff;
}

.rating-btn-option input[type="radio"]:checked~.rating-number {
    background: #044FA0;
    border-color: #044FA0;
    color: #fff;
}

.rating-btn-option .rating-label {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.3;
    max-width: 80px;
}

.rating-status {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
    margin-left: 10px;
    white-space: nowrap;
}

.rating-status.selected {
    color: #198754;
    font-weight: 600;
}

/* Footer Section */
.rating-popup-footer {
    display: flex;
    gap: 15px;
    padding: 20px 30px;
    border-top: 1px solid #f0f0f0;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
    flex-shrink: 0;
}

.btn-submit-rating,
.btn-cancel-rating {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-submit-rating {
    background: #044FA0;
    color: #fff;
}

.btn-submit-rating:hover {
    /* background: #5a6268; */
    transform: translateY(-2px);
    /* box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3); */
}

.btn-cancel-rating {
    background: #6c757d;

    color: #fff;
}

.btn-cancel-rating:hover {
    /* background: #0d8968; */
    transform: translateY(-2px);
    /* box-shadow: 0 5px 15px rgba(16, 163, 127, 0.3); */
}

/* Responsive */
@media (max-width: 768px) {
    .rating-popup-content {
        width: 95%;
        max-height: 82vh;
    }

    .rating-popup-header {
        padding: 18px 25px;
    }

    .rating-popup-header h3 {
        font-size: 1.2rem;
    }

    .rating-popup-body {
        padding: 25px 20px 0 20px;
    }

    #ratingForm {
        padding-bottom: 25px;
    }

    .emoji-rating-container {
        gap: 12px;
    }

    .emoji-rating-btn {
        width: 58px;
        height: 58px;
    }

    .emoji-rating-btn .emoji {
        font-size: 2.2rem;
    }

    /* Rating Scale Responsive */
    .rating-scale-horizontal {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .rating-buttons {
        gap: 0;
    }

    .rating-btn-option .rating-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .rating-status {
        margin-left: 0;
        font-size: 0.8rem;
    }

    .rating-section {
        padding: 20px;
    }

    .rating-item>label {
        font-size: 0.875rem;
    }

    .rating-popup-footer {
        flex-direction: column;
        padding: 15px 20px;
    }

    .btn-submit-rating,
    .btn-cancel-rating {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .rating-popup-content {
        width: 96%;
        max-height: 80vh;
    }

    .rating-popup-header {
        padding: 16px 20px;
    }

    .rating-popup-header h3 {
        font-size: 1.05rem;
    }

    .rating-popup-close {
        width: 32px;
        height: 32px;
    }

    .rating-popup-body {
        padding: 20px 18px 0 18px;
    }

    #ratingForm {
        padding-bottom: 20px;
    }

    .rating-subtitle {
        font-size: 1.05rem;
    }

    .emoji-rating-container {
        gap: 10px;
    }

    .emoji-rating-btn {
        width: 55px;
        height: 55px;
    }

    .emoji-rating-btn .emoji {
        font-size: 2rem;
    }

    .rating-section {
        padding: 18px;
    }

    .rating-section-title {
        font-size: 0.98rem;
    }

    .rating-item {
        margin-bottom: 20px;
    }

    .rating-item>label {
        font-size: 0.875rem;
        margin-bottom: 10px;
    }

    .rating-buttons {
        gap: 0;
    }

    .rating-btn-option .rating-number {
        width: 42px;
        height: 42px;
        font-size: 1.05rem;
        border-radius: 8px;
    }

    .rating-status {
        font-size: 0.78rem;
    }

    .rating-popup-footer {
        padding: 14px 18px;
    }

    .btn-submit-rating,
    .btn-cancel-rating {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn-submit-rating i,
    .btn-cancel-rating i {
        font-size: 0.85rem;
    }
}

/* ===== Accessibility Sidebar Styles ===== */
.accessibility-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
}

.accessibility-modal.active {
    display: block;
}

.accessibility-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.accessibility-modal.active .accessibility-modal-overlay {
    opacity: 1;
    pointer-events: auto;
}

.accessibility-modal-content {
    position: fixed;
    top: 0;
    right: 0;
    background: #fff;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.accessibility-modal.active .accessibility-modal-content {
    transform: translateX(0);
}

.accessibility-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.accessibility-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
}

.accessibility-modal-close {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    color: #7f8c8d;
    transition: all 0.2s ease;
}

.accessibility-modal-close:hover {
    background: #e0e0e0;
    color: #2c3e50;
}

.accessibility-modal-close i {
    font-size: 1.2rem;
}

.accessibility-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    height: calc(100vh - 80px);
}

.accessibility-modal-body::-webkit-scrollbar {
    width: 6px;
}

.accessibility-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.accessibility-modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.accessibility-modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Accessibility Items */
.accessibility-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.accessibility-item:last-of-type {
    border-bottom: none;
}

.accessibility-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.accessibility-item-left i {
    font-size: 1.1rem;
    color: #044FA0;
    width: 24px;
}

.accessibility-item-left span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2c3e50;
}

.accessibility-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.accessibility-item-header i {
    font-size: 1.1rem;
    color: #044FA0;
    width: 24px;
}

.accessibility-item-header span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2c3e50;
}

/* Toggle Switch */
.accessibility-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.accessibility-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.accessibility-toggle input:checked+.toggle-slider {
    background-color: #044FA0;
}

.accessibility-toggle input:checked+.toggle-slider:before {
    transform: translateX(24px);
}

/* Control Buttons */
.accessibility-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #044FA0;
    background: white;
    color: #044FA0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.control-btn:hover {
    background: #044FA0;
    color: white;
}

.control-value {
    min-width: 60px;
    text-align: center;
    font-weight: 600;
    color: #044FA0;
    font-size: 1rem;
}

/* Button Groups */
.accessibility-button-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.spacing-btn,
.alignment-btn {
    flex: 1;
    min-width: 70px;
    /* padding: 10px 16px; */
    padding: 10px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #2c3e50;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.spacing-btn:hover,
.alignment-btn:hover {
    border-color: #044FA0;
    color: #044FA0;
}

.spacing-btn.active,
.alignment-btn.active {
    background: #044FA0;
    color: white;
    border-color: #044FA0;
}

.alignment-btn {
    min-width: 50px;
    padding: 10px;
}

.alignment-btn i {
    font-size: 1rem;
}

/* Reset Button */
.accessibility-reset-btn {
    width: 100%;
    padding: 14px;
    background: #044FA0;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s ease;
}

.accessibility-reset-btn:hover {
    background: #033a7a;
    transform: translateY(-2px);
    /* box-shadow: 0 4px 12px rgba(74, 91, 220, 0.3); */
}

/* Accessibility Effects */
body.a11y-bold-text {
    font-weight: 600 !important;
}

body.a11y-bold-text * {
    font-weight: 600 !important;
}

body.a11y-highlight-links a {
    background: #ffeb3b !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
}

body.a11y-monochrome .body_wrap,
body.a11y-monochrome #app,
body.a11y-monochrome main,
body.a11y-monochrome .main-content {
    filter: grayscale(100%);
}

body.a11y-high-contrast .body_wrap,
body.a11y-high-contrast #app,
body.a11y-high-contrast main,
body.a11y-high-contrast .main-content {
    filter: contrast(150%) brightness(110%);
}

/* Ensure quick access and modals remain unaffected */
.quick-access-menu,
.accessibility-modal,
.rating-popup-modal,
.quick-access-modal {
    filter: none !important;
}

body.a11y-large-cursor,
body.a11y-large-cursor * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 12 12" fill="none"><path d="M1 1L1 10L4 7.5L5.5 11L7 10.5L5.5 7L9 7L1 1Z" fill="white" stroke="black" stroke-width="0.4"/><path d="M1.5 1.5L1.5 9L3.8 7L5 10L6.2 9.6L5 7L8 7L1.5 1.5Z" fill="black"/></svg>') 0 0, auto !important;
}

body.a11y-pause-animations,
body.a11y-pause-animations * {
    animation-play-state: paused !important;
    transition: none !important;
}

body.a11y-hide-images img {
    visibility: hidden !important;
}

/* Responsive */
@media (max-width: 768px) {
    .accessibility-modal-content {
        max-width: 100%;
        width: 90%;
    }

    .accessibility-modal-header {
        padding: 18px 20px;
    }

    .accessibility-modal-header h3 {
        font-size: 1.15rem;
    }

    .accessibility-modal-body {
        padding: 16px 20px;
        height: calc(100vh - 70px);
    }

    .accessibility-item {
        padding: 14px 0;
    }

    .accessibility-item-left span,
    .accessibility-item-header span {
        font-size: 0.9rem;
    }

    .control-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .control-value {
        font-size: 0.95rem;
        min-width: 50px;
    }

    .spacing-btn,
    .alignment-btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .alignment-btn {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .accessibility-modal-content {
        width: 100%;
        max-width: 100%;
    }
}