.footer-widget-area{
    display:none !important;
}
/* مخفی کردن پیام "this image could not be loaded" */
/* Bootstrap modals need the backdrop; legacy #modal on wifi page hides its own if needed */
.modal-backdrop {
    z-index: 1040;
}
/* استایل دکمه بستن پاپ آپ */
.close {
    color: #000; /* رنگ متن دکمه */
    font-size: 24px; /* اندازه قلم دکمه */
    font-weight: bold; /* وزن متن دکمه */
    position: absolute; /* موقعیت مطلق */
    top: 10px; /* فاصله بالایی */
    right: 10px; /* فاصله راستی */
    cursor: pointer; /* نشانگر ماوس */
    background-color: transparent; /* رنگ پس زمینه شفاف */
    border: none; /* بدون حاشیه */
}
/* تغییر استایل دکمه بستن هنگام هوور موس بر روی آن */
.close:hover {
    color: #ff0000; /* تغییر رنگ متن */
}
.product-menu {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    padding: 10px;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: scroll;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    gap: 10px;
}

.product-menu li {
    list-style: none;
}

.product-menu a {
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
}

.product-menu a.active {
    color: #fff;
    background: #112573 ;
    border-radius: 10px;
}

.products {
    padding-top: 60px;
}

.product {
    margin: 20px 0;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 4px;
}

.line-title {
    display: flex;
    align-items: center;
    text-align: center;
}

.line-title::before,
.line-title::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #000;
    margin: 0 10px;
}

.line-title .text-primary {
    white-space: nowrap;
}

body.modal-active #page-content {
    display: none;
}

/* Legacy custom modal (e.g. wifi.html #modal) — not Bootstrap .modal.fade */
.modal:not(.fade) {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    padding-top: 60px;
    animation: fadeIn 0.5s;
}

.modal:not(.fade) .modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border: none;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.5s;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s; /* Smooth transition on hover */
}

.close-btn:hover,
.close-btn:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #555;
}

input.form-control {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

button.btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s; /* Smooth transition on hover */
}

button.btn:hover {
    background-color: #0056b3;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideIn {
    from {transform: translateY(-20px);}
    to {transform: translateY(0);}
}

.btn-submit{
background-color: var(--mainColor)!important;
}

.popup-messages {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050; /* Higher than other content */
    width: 300px;
    max-width: 90%;
    height: 50px;
    background: transparent; /* Remove white background */
    padding: 0;
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Deeper shadow */
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    animation: fadeIn 0.5s ease-in-out; 
}

.popup-messages .alert {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 10px; 
    font-size: 16px; 
    text-align: left;
    position: relative;
    color: #fff; 
}

.popup-messages .alert-success {
    background: linear-gradient(45deg, #06ef3d, #05aa29); 
}
.popup-messages .alert-danger {
    background: linear-gradient(45deg, #dc3545, #c82333);
}

.popup-messages .alert-warning {
    background: linear-gradient(45deg, #ffc107, #e0a800); 
}

.popup-messages .alert-info {
    background: linear-gradient(45deg, #17a2b8, #138496); 
}

.popup-messages .btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.25rem;
    color: #fff;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease-in-out; 
}

.popup-messages .btn-close:hover {
    color: #ffdddd; 
}

.popup-messages.fade-out {
    opacity: 0;
    transform: translate(-50%, -60%); /* Move up slightly during fade out */
}