/* Common Custom Styles for ZPLUS Website */

.benefit-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    height: 100%;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 40px;
    color: #007bff;
    margin-bottom: 15px;
}

.benefit-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.benefit-desc {
    font-size: 14px;
    color: #666;
}

/* Comparison Table Styles */
.comparison-table-container {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    margin-top: 30px;
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th, .comparison-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.comparison-table th {
    background-color: #6c757d;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.comparison-table th.highlight-header {
    background-color: #007bff;
    font-size: 16px;
}

.comparison-table td.highlight-cell {
    background-color: rgba(0, 123, 255, 0.05);
    color: #007bff;
    font-weight: 600;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table i {
    margin-right: 8px;
}

.text-danger {
    color: #dc3545;
}

.feature-list li {
    margin-bottom: 10px;
}

.feature-list i {
    color: #007bff;
    margin-right: 10px;
}

.step-number {
    background: #007bff;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    line-height: 30px;
    margin-right: 10px;
    font-weight: bold;
}

.top-banner {
    background-color: #007bff;
    color: white;
    padding: 8px 0;
    font-size: 14px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1031;
}

.top-banner a {
    color: white;
    text-decoration: none;
}

.top-banner .social-icons {
    text-align: right;
}

.top-banner .social-icons a {
    margin-left: 10px;
    margin-right: 0;
    font-size: 16px;
}

.top-banner .contact-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.top-banner .contact-info i {
    margin-right: 5px;
}

@media (max-width: 768px) {
    .top-banner .social-icons {
        text-align: center;
        margin-top: 5px;
    }

    .top-banner .contact-info {
        justify-content: center;
    }
    .table-responsive {
        overflow-x: visible;
    }
    .comparison-table {
        table-layout: fixed;
        width: 100%;
    }
    .comparison-table td, .comparison-table th {
        white-space: normal;
        word-wrap: break-word;
        padding: 8px 4px;
        font-size: 12px;
    }
}

.navbar-b.fixed-top {
    top: 40px;
    min-height: 60px;
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-b.fixed-top .navbar-brand {
    padding-top: 5px;
    padding-bottom: 5px;
}

body {
    padding-top: 40px;
}

/* WhatsApp Widget Styles */
.wa-widget-wrapper {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* This keeps the button to the right */
    font-family: Arial, sans-serif;
}

/* Popup Window Styles */
.wa-popup {
    display: none;
    width: 320px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    margin-bottom: 15px;
    overflow: hidden;
    animation: waFadeIn 0.3s ease-out;
}

.wa-header {
    background: #234d44;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wa-brand { display: flex; align-items: center; gap: 10px; }
.wa-avatar { width: 40px; height: 40px; border-radius: 50%; background: #fff; }
.wa-name { font-weight: bold; }
.wa-status { font-size: 12px; opacity: 0.8; }
.wa-close { cursor: pointer; font-size: 24px; line-height: 1; }

.wa-body {
    background: #e5ddd5 url('../img/wa-bg.webp'); /* Classic WhatsApp pattern background color */
    background-size: 200px;
    background-repeat: repeat;
    padding: 20px;
    height: 150px;
}

.wa-bubble {
    background: white;
    padding: 10px 15px;
    border-radius: 0 10px 10px 10px;
    font-size: 14px;
    max-width: 80%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.wa-bubble-sender { font-size: 11px; color: #888; font-weight: bold; display: block; }

.wa-footer { padding: 15px; text-align: center; background: #fff; }
.wa-start-btn {
    background: #72c054;
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
}

.wa-brand-tag { font-size: 10px; color: #aaa; margin-top: 10px; }
.wa-brand-tag span { color: #72c054; font-weight: bold; }

/* Launcher Button Styles */
.wa-launcher {
    background-color: #72c054;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Default Pill Shape */
    padding: 0 20px;
    height: 50px;
    border-radius: 50px;
}

/* Circle state triggered by JS */
.wa-launcher.is-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 0;
}

.wa-launcher img { width: 28px; height: 28px; }
#waBtnText { margin-left: 10px; font-weight: bold; }

@keyframes waFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-bottom: none;
    padding: 20px 30px;
}

.modal-title {
    font-weight: 700;
    font-size: 24px;
    color: #fff;
}

.modal-header .close {
    color: white;
    opacity: 0.8;
    text-shadow: none;
    font-size: 28px;
    padding: 20px 30px;
    margin: -20px -30px -20px auto;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-body {
    padding: 30px;
    background-color: #f8f9fa;
}

.distributor-info {
    padding-right: 20px;
}

.distributor-info h4 {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 15px;
}

.distributor-info p {
    color: #555;
    margin-bottom: 20px;
}

.distributor-form-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.distributor-form-box .form-control {
    background-color: #f1f3f4;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 12px 15px;
    height: auto;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.distributor-form-box .form-control:focus {
    background-color: white;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.distributor-form-box textarea.form-control {
    height: 100px;
}

.distributor-form-box .button {
    width: 100%;
    margin-top: 10px;
    background: #007bff;
    color: white;
    border: none;
}

.distributor-form-box .button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .distributor-info {
        margin-bottom: 30px;
        padding-right: 0;
    }
}
