/* ================================================================
   footer.css — CostMasters  (refactored)
   ================================================================ */

/* ================= DESIGN TOKENS ================= */
:root {
    /* Backgrounds */
    --color-bg-deep: #1a1a2e;
    --color-bg-mid: #16213e;
    --color-bg-panel: #0b0f14;
    --color-bg-strip: #3a3a3a;
    --color-bg-input: #1f2937;
    --color-bg-input-lt: #ffffff;

    /* Accents */
    --color-accent: #3b82f6;
    --color-accent-alt: #4F9FFF;
    --color-accent-dark: #2563eb;

    /* Text */
    --color-text: #e0e0e0;
    --color-text-muted: #9ca3af;
    --color-text-dim: rgba(255, 255, 255, 0.6);
    --color-text-dark: #333333;
    --color-text-mid: #555555;

    /* Borders */
    --color-border-light: rgba(255, 255, 255, 0.1);
    --color-border-mid: rgba(255, 255, 255, 0.2);
    --color-border-input: #374151;
    --color-border-lt: #cccccc;

    /* Status */
    --color-success: #28a745;
    --color-error: #dc3545;
    --color-warning: #ffc107;
    --color-info: #3490dc;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --radius-xl: 30px;
    --radius-pill: 50%;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-std: 0.3s ease;
    --transition-slow: 0.45s ease;
}


/* ================================================================
   SITE FOOTER
   ================================================================ */
.site-footer {
    padding: 70px 0 0;
    background: linear-gradient(180deg, var(--color-bg-deep) 0%, var(--color-bg-mid) 100%);
    color: #fff;
}

.footer-logo {
    max-height: 60px;
    margin-bottom: 25px;
}

.footer-heading {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

/* ── Footer List ── */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--color-text);
    cursor: pointer;
    transition: color var(--transition-std);
}

.footer-list a {
    color: #ccc;
    text-decoration: none;
    transition: color var(--transition-std);
}

/* Fix: hover must target the <a> inside <li> to work correctly */
.footer-list li:hover,
.footer-list li:hover a {
    color: var(--color-accent-alt);
}

/* ── Map ── */
.footer-map-container {
    border-radius: 15px;
    overflow: hidden;
    height: 262px;
    border: 1px solid var(--color-border-mid);
}

/* ── Bottom Bar ── */
.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer_nav_flex ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

.footer_nav_flex ul li {
    padding: 0;
}

.footer_nav_flex ul li + li::before {
    content: "|";
    padding: 0 10px;
    color: rgba(255,255,255,0.4);
}

.footer_nav_flex ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}

.footer_nav_flex ul li a:hover {
    color: #fff;
}

.footer_copyright {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.footer_copyright a {
    color: var(--color-accent-alt);
    text-decoration: none;
}

/* ================================================================
   SOCIAL ICONS (footer col 1)
   ================================================================ */
.social-icons-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: background var(--transition-std), color var(--transition-std);
}

.social-icon:hover {
    background: var(--color-accent-alt);
    color: #fff;
}


/* ================================================================
   CONTACT DETAILS (footer col 3)
   ================================================================ */
.contact-detail {
    margin-bottom: 18px;
}

.contact-label {
    font-weight: 600;
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.contact-text {
    color: var(--color-text);
    font-size: 15px;
    margin: 0;
}

.contact-text a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-std);
}

.contact-text a:hover {
    color: var(--color-accent-alt);
}


/* ================================================================
   LATEST NEWS WIDGET (fixed right sidebar)
   ================================================================ */
.latest-news-wrapper {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 2000;
    height: 246px;
    display: flex;
    align-items: center;
}

.latest-news-container {
    position: relative;
    height: 246px;
    display: flex;
}

/* Vertical Strip */
.latest-news-strip {
    width: 35px;
    height: 62%;
    background: var(--color-bg-strip);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 11px;
    z-index: 2;
}

.latest-news-strip i {
    color: var(--color-accent);
    font-size: 14px;
}

.latest-news-strip span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 1.5px;
    font-weight: 600;
    font-size: 8px;
    color: #fff;
    text-transform: none;
}

/* Sliding Panel */
.latest-news-panel {
    width: 294px;
    height: 62%;
    background: var(--color-bg-panel);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    padding: 14px;
    position: absolute;
    right: 0;
    top: 0;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    box-shadow: -7px 0 28px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.latest-news-wrapper:hover .latest-news-panel {
    transform: translateX(0);
}

/* News Content */
.featured-label {
    color: var(--color-accent);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1px;
    white-space: nowrap;
}

.news-content h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    line-height: 1.1em;
    overflow-wrap: break-word;
    max-height: 2.2em;
}

.news-date {
    color: var(--color-text-muted);
    font-size: 10px;
    margin: 2px 0 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-read-btn {
    background: #2f2f2f;
    padding: 6px 15px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    flex-shrink: 0;
    margin-top: 1px;
    transition: background var(--transition-std), color var(--transition-std);
}

.news-read-btn:hover {
    background: var(--color-accent);
    color: #000;
}

/* Navigation Dots */
.news-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 1px;
}

.news-dots .dot {
    height: 8px;
    width: 8px;
    background-color: #555;
    border-radius: var(--radius-pill);
    display: inline-block;
    cursor: pointer;
    transition: background-color var(--transition-std);
}

.news-dots .dot.active {
    background-color: var(--color-accent);
}


/* ================================================================
   DEMO MODAL — DARK THEME
   ================================================================ */
.demo-modal-content {
    background: #111827;
    border: 1px solid rgba(79, 159, 255, 0.3);
    border-radius: 12px;
}

.demo-modal-content .modal-header {
    border-bottom: 1px solid var(--color-border-light);
}

.cs-input {
    background: var(--color-bg-input);
    border: 1px solid var(--color-border-input);
    color: #fff;
    padding: 12px 15px;
    border-radius: var(--radius-md);
    height: auto;
    font-size: 15px;
}

.cs-input::placeholder {
    color: var(--color-text-muted);
    opacity: 1;
}

.iti__selected-flag {
    padding-left: 10px;
}

.btn-otp-action {
    background: var(--color-accent);
    color: #fff;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-weight: 700;
    border: none;
}

/* ── Primary Submit Button (single definition) ── */
.btn-primary-submit {
    background: var(--color-accent);
    color: #fff;
    padding: 7px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    transition: transform var(--transition-std), box-shadow var(--transition-std);
}

.btn-primary-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.cs-section-label {
    color: var(--color-accent-alt);
    font-size: 0.80rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

/* OTP */
.otp-verification-bar {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.otp-field {
    width: 42px;
    height: 42px;
    background: #000;
    border: 1px solid #4b5563;
    color: #fff;
    text-align: center;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.error-msg {
    color: var(--color-error);
    font-size: 12px;
    margin-top: 5px;
    display: block;
}


/* ================================================================
   MODAL — LIGHT THEME
   ================================================================ */
.cs-modal-medium {
    max-width: 620px;
    width: 95%;
    margin: 1.75rem auto;
}

.demo-modal-content-light {
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.demo-modal-content-light .modal-header {
    border-bottom: 1px solid #eee;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, #0d47a1 0%, #0b3d91 60%, var(--color-accent-alt) 100%);
}

.demo-modal-content-light .modal-title {
    color: #fff;
    font-weight: 700;
}

.cs-input-light {
    background: var(--color-bg-input-lt);
    border: 1px solid var(--color-border-lt);
    color: var(--color-text-dark);
    border-radius: var(--radius-sm);
    height: auto;
    font-size: 0.80rem;
}

.cs-input-light::placeholder {
    color: #888;
    opacity: 1;
}

/* Single rule for mobile number dial code overlap */
#book_contact {
    padding-left: 95px;
}

.iti--separate-dial-code .iti__selected-dial-code {
    color: var(--color-text-dark);
    font-weight: 500;
}

.cs-section-label-light {
    color: #007bff;
    font-weight: 600;
    font-size: 0.80rem;
    margin-bottom: 10px;
    display: block;
}

#otptimer {
    color: var(--color-text-mid);
}

.otp-box {
    width: 40px;
    text-align: center;
    border: 2px solid var(--color-border-lt);
    height: 32px;
}

.otp_box_cs_flex {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    flex-wrap: wrap;
}

i#mobile_verified_tick,
i#wp_otp_verified_tick {
    position: absolute;
    right: 7px;
    top: 9px;
}

.iti.iti--allow-dropdown.iti--separate-dial-code {
    width: 100%;
}

.btn-otp-blue {
    background: #007bff;
    color: #fff;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    border: none;
}

.form-check-label {
    color: var(--color-text-mid);
    font-size: 0.80rem;
    font-weight: 400;
}

.form-group.table-paddingzero {
    display: flex;
    justify-content: space-between;
}

.commodities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    width: 100%;
    max-width: 600px;
}

.m_commodity-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 6px;
    border-radius: var(--radius-md);
    color: var(--color-text-mid);
    transition: background var(--transition-std), color var(--transition-std);
    word-break: break-word;
}

.cs-btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color var(--transition-fast);
}

.cs-btn-close:hover {
    color: #343a40;
}

.cs-input-white {
    background: #fff;
    border: 1px solid #ced4da;
    color: #495057;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.80rem;
}

.cs-input-white::placeholder {
    color: #adb5bd;
    opacity: 1;
}

/* Fix intlTelInput country dropdown text */
/* ===== intlTelInput Fixes ===== */



.iti {
    width: 100%;
}

.iti__country-list {
    z-index: 999999 !important;
}

.iti__country,
.iti__country-name,
.iti__dial-code {
    color: #1a1a1a !important;
}

.iti__country-list {
    background: #fff !important;
}

/* ================================================================
   TOASTR OVERRIDES (consolidated)
   ================================================================ */
#toast-container>div {
    opacity: 1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-md);
}

#toast-container>.toast-success {
    background-color: var(--color-success) !important;
    color: #fff;
}

#toast-container>.toast-error {
    background-color: var(--color-error) !important;
    color: #fff;
}

#toast-container>.toast-warning {
    background-color: var(--color-warning) !important;
    color: #fff;
}

#toast-container>.toast-info {
    background-color: var(--color-info) !important;
    color: #fff;
}

.toast-title {
    font-weight: 700;
}

.toast-message {
    font-size: 14px;
    opacity: 1;
}


/* ================================================================
   RESPONSIVE
   ================================================================ */

/* ── Tablet (≤991px) ── */
@media (max-width: 991px) {
    .site-footer {
        padding: 50px 0 0;
    }

    .site-footer .row {
        flex-direction: column;
        gap: 36px;
    }

    .site-footer .col-lg-4 {
        width: 100%;
        max-width: 100%;
    }

    .site-footer .px-lg-5 {
        padding-left: 15px;
        padding-right: 15px;
    }

    .site-footer .ps-lg-5 {
        padding-left: 0;
    }

    .footer-map-container {
        height: 220px;
    }
}

/* ── Mobile (≤767px) ── */
@media (max-width: 767px) {
    .footer-heading {
        font-size: 16px;
        margin-top: 4px;
    }

    .footer-list li {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .contact-text {
        font-size: 14px;
    }

    .footer-bottom-bar {
        font-size: 12px;
        margin-top: 30px;
    }

    .social-icons-row {
        margin-top: 14px;
    }

    .footer-map-container {
        height: 180px;
    }

    /* News widget: anchor to bottom-right on mobile */
    .latest-news-wrapper {
        top: auto;
        bottom: 70px;
        transform: none;
        height: auto;
    }

    .latest-news-container {
        height: auto;
    }

    .latest-news-strip {
        height: 52px;
        width: 30px;
        border-radius: 10px 0 0 10px;
    }

    .latest-news-strip span {
        font-size: 7px;
    }

    .latest-news-panel {
        width: 220px;
        height: 160px;
        padding: 10px 12px;
        border-radius: 10px 0 0 10px;
    }

    .news-content h3 {
        font-size: 12px;
        max-height: none;
    }

    .news-date {
        font-size: 9px;
        margin-bottom: 8px;
    }

    .news-read-btn {
        font-size: 9px;
        padding: 5px 10px;
    }

    .featured-label {
        font-size: 7px;
    }

    .cs-modal-medium {
        margin: 10px;
    }
}

/* ── Small mobile (≤400px) ── */
@media (max-width: 400px) {
    .latest-news-panel {
        width: 180px;
    }
}