
/* ==========================================
   RIDERS PHILIPPINES
   WEBSITE UPGRADE NOTICE MODAL
   ========================================== */

/* Hide modal by default */
#upgradeNoticeModal[hidden] {
    display: none !important;
}

/* Modal background overlay */
#upgradeNoticeModal.upgrade-visible {
    display: flex !important;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    z-index: 1055;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.75);
    opacity: 1 !important;
    visibility: visible !important;
}

/* Prevent background scrolling */
body.upgrade-modal-open {
    overflow: hidden;
}

/* Modal container */
#upgradeNoticeModal .modal-dialog {
    width: 100%;
    max-width: 500px;
    margin: auto;
    position: relative;
    pointer-events: auto;
    transform: none !important;
}

/* Main modal card */
#upgradeNoticeModal .modal-content,
.upgrade-modal {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.30);
}

/* Modal header */
#upgradeNoticeModal .modal-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border: none;
    padding: 12px 18px 0;
}

/* Close button */
#upgradeNoticeModal .close {
    position: relative;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    color: #666666;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 1;
    padding: 4px 8px;
    margin: 0;
    float: none;
    text-shadow: none;
}

#upgradeNoticeModal .close:hover {
    color: #e67e22;
}

/* Modal body */
#upgradeNoticeModal .modal-body {
    padding: 10px 28px 28px;
    text-align: center;
}

/* Upgrade icon */
.upgrade-icon {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    background: #fff3e5;
    color: #e67e22;
    border-radius: 50%;
    font-size: 32px;
}

/* Upgrade status pill */
.upgrade-status {
    display: inline-block;
    padding: 8px 15px;
    background: #fff3e5;
    color: #a84c00;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    line-height: 1.5;
    text-transform: uppercase;
}

/* Main heading */
.upgrade-modal h2 {
    margin: 18px 0 14px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    color: #20252b;
}

/* Main description */
.upgrade-description {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 18px;
}

/* Information panel */
.upgrade-info {
    background: #f6f8fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 18px;
    margin: 20px 0;
    text-align: left;
}

/* Information items */
.upgrade-info p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    color: #444444;
}

.upgrade-info p:last-child {
    margin-bottom: 0;
}

/* Information icons */
.upgrade-info i {
    color: #e67e22;
    font-size: 16px;
    flex: 0 0 18px;
    width: 18px;
    margin-top: 2px;
}

/* Thank you message */
.upgrade-thanks {
    margin: 18px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    color: #333333;
}

/* Continue button */
.upgrade-button {
    display: block;
    width: 100%;
    padding: 14px 18px;
    background: #e67e22;
    color: #ffffff;
    border: none;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.upgrade-button:hover,
.upgrade-button:focus {
    background: #cf6d17;
    color: #ffffff;
}

/* Keyboard accessibility */
#upgradeNoticeModal button:focus-visible {
    outline: 3px solid #20252b;
    outline-offset: 3px;
}

/* Footer tagline */
.upgrade-modal small {
    display: block;
    margin-top: 15px;
    font-size: 12px;
    color: #888888;
}

/* ==========================================
   TABLET RESPONSIVENESS
   ========================================== */

@media (max-width: 768px) {

    #upgradeNoticeModal .modal-dialog {
        max-width: 460px;
    }

    .upgrade-modal h2 {
        font-size: 25px;
    }

    .upgrade-description {
        font-size: 14px;
    }
}

/* ==========================================
   MOBILE RESPONSIVENESS
   ========================================== */

@media (max-width: 576px) {

    #upgradeNoticeModal.upgrade-visible {
        padding: 12px;
    }

    #upgradeNoticeModal .modal-dialog {
        width: 100%;
        max-width: 100%;
    }

    #upgradeNoticeModal .modal-content {
        border-radius: 14px;
    }

    #upgradeNoticeModal .modal-body {
        padding: 8px 18px 22px !important;
    }

    .upgrade-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
        margin-bottom: 14px;
    }

    .upgrade-status {
        font-size: 9px;
        letter-spacing: 0.5px;
        padding: 7px 12px;
    }

    .upgrade-modal h2 {
        font-size: 23px;
        margin: 14px 0 10px;
    }

    .upgrade-description {
        font-size: 13px;
        line-height: 1.6;
    }

    .upgrade-info {
        padding: 14px;
        margin: 16px 0;
    }

    .upgrade-info p {
        font-size: 12px;
        margin-bottom: 11px;
    }

    .upgrade-thanks {
        font-size: 13px;
    }

    .upgrade-button {
        padding: 13px 12px;
        font-size: 13px;
    }
}

/* ==========================================
   SMALL SCREEN / LANDSCAPE SUPPORT
   ========================================== */

@media (max-height: 650px) {

    #upgradeNoticeModal.upgrade-visible {
        align-items: flex-start;
    }

    #upgradeNoticeModal .modal-dialog {
        margin: auto;
    }

    .upgrade-icon {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }

    .upgrade-info {
        margin: 12px 0;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    .upgrade-button {
        transition: none;
    }
}
