/* Floating Button */

.floating-tnc-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #be2223 0%, #cc5229 100%);
    color: #fff;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    padding: 10px;
    opacity: 1;
    visibility: visible;
}

.floating-tnc-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.floating-tnc-btn:active {
    transform: scale(0.95);
}

h3.section-title.mt20 {
    font-size: 26px;
}

/* Hide button when modal is open */

body.modal-open .floating-tnc-btn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


/* Modal */

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
    overflow: auto;
}

.modal.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: #fefdf9;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px 40px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
    width: 35px;
    height: 35px;
}

.close-btn:hover {
    background: #000;
    color: #fff;
}

.modal-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    padding: 0;
    color: #333;
}

.subtitle {
    color: #777;
    font-size: 14px;
    margin: 5px 0 15px 0;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tab {
    border: none;
    background: #f0f0f0;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tab:hover {
    background: #e0e0e0;
}

.tab.active {
    background: #c1b99c;
    color: #fff;
}

.tab-content {
    margin-top: 0;
}

.tab-content ul {
    list-style: disc;
    margin: 0;
    line-height: normal;
    padding-left: 15px;
}

.tab-content li {
    margin-bottom: 10px;
    color: #444;
}

.tab-content li strong {
    color: #333;
    font-weight: 600;
}

.hidden {
    display: none;
}


/* Scrollbar styling */

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 20px 20px 0;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #c1b99c;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #a39d7c;
}


/* Responsive Design */

@media (max-width: 768px) {
    .floating-tnc-btn {
        width: 60px;
        height: 60px;
        font-size: 10px;
        bottom: 20px;
        right: 20px;
    }
    .modal {
        padding: 15px;
    }
    .modal-content {
        padding: 25px 20px;
        max-height: 90vh;
        border-radius: 12px;
    }
    .modal-content h2 {
        font-size: 20px;
        padding-right: 35px;
    }
    .subtitle {
        font-size: 13px;
    }
    .close-btn {
        right: 15px;
        top: 15px;
        font-size: 24px;
        width: 30px;
        height: 30px;
    }
    .tab {
        font-size: 12px;
        padding: 8px 16px;
    }
    .tab-content ul {
        font-size: 13px;
        margin-left: 15px;
    }
}

@media (max-width: 480px) {
    .floating-tnc-btn {
        width: 55px;
        height: 55px;
        font-size: 9px;
        bottom: 15px;
        right: 15px;
    }
    .modal-content {
        padding: 20px 15px;
    }
    .modal-content h2 {
        font-size: 18px;
    }
    .tabs {
        gap: 8px;
    }
    .tab {
        font-size: 11px;
        padding: 7px 14px;
    }
    .tab-content ul {
        font-size: 12px;
        line-height: 1.6;
    }
    .tab-content li {
        margin-bottom: 8px;
    }
}