/* =============================================================
   CostMasters — Demo Modal CSS
   Pixel-matched to CI3 localhost design (Image 1)
   ============================================================= */

/* ── MODAL DIALOG SIZE ── */
.request-template-modal .modal-dialog {
    max-width: 660px;
    width: 96%;
    margin: 1.5rem auto;
}

/* ── MODAL CARD ── */
.request-template-modal .modal-content.demo-modal-content-light {
    border-radius: 10px;
    border: none;
    box-shadow: 0 12px 48px rgba(0,0,0,0.22);
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    background: #fff;
}

/* ── HEADER — blue gradient exactly as CI3 ── */
.request-template-modal .modal-header {
    background: linear-gradient(90deg, #1565C0 0%, #1976D2 60%, #1e88e5 100%);
    padding: 16px 22px;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: unset;
}
.request-template-modal .modal-header .modal-title {
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.2px;
    font-family: 'Montserrat', sans-serif;
}

/* ── CLOSE BUTTON ── */
.request-template-modal .cs-btn-close {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    transition: background 0.18s, border-color 0.18s;
    flex-shrink: 0;
}
.request-template-modal .cs-btn-close:hover {
    background: rgba(255,255,255,0.2);
    border-color: #fff;
}

/* ── BODY ── */
.request-template-modal .modal-body {
    background: #fff;
    padding: 22px 22px 18px !important;
}

/* ── INPUTS — clean white exactly like CI3 ── */
.request-template-modal .cs-input-light,
.request-template-modal .form-control.cs-input-light {
    width: 100%;
    height: 44px;
    border: 1px solid #c8d0db;
    border-radius: 6px;
    padding: 9px 13px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background: #fff;
    outline: none;
    box-shadow: none !important;
    transition: border-color 0.18s;
    display: block;
}
.request-template-modal .cs-input-light:focus,
.request-template-modal .form-control.cs-input-light:focus {
    border-color: #1976D2;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(25,118,210,0.10) !important;
}
.request-template-modal textarea.cs-input-light,
.request-template-modal .form-control.cs-input-light[rows] {
    height: auto;
    resize: vertical;
    min-height: 85px;
}

/* ── PHONE GROUP (intl-tel-input wrapper) ── */
.request-template-modal .cs-phone-group {
    position: relative;
    display: block;
}
/* Make intl-tel-input fill the column */
.request-template-modal .cs-phone-group .iti {
    width: 100%;
    display: block;
}
.request-template-modal .cs-phone-group .iti input,
.request-template-modal .cs-phone-group .iti input[type=tel] {
    width: 100%;
    height: 44px;
    border: 1px solid #c8d0db;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background: #fff;
    box-shadow: none !important;
    padding-right: 52px; /* room for OTP button */
}
.request-template-modal .cs-phone-group .iti input:focus {
    border-color: #1976D2;
    box-shadow: 0 0 0 3px rgba(25,118,210,0.10) !important;
    outline: none;
}
/* OTP button absolutely positioned inside the phone wrapper */
.request-template-modal .input-group-append {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
}

/* ── OTP SEND BUTTON ── */
.request-template-modal .btn-otp-blue {
    background: #1565C0;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.4;
    transition: background 0.18s;
}
.request-template-modal .btn-otp-blue:hover { background: #0d47a1; }

/* ── OTP BOX GROUP ── */
.request-template-modal .otp_box_cs_flex {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}
.request-template-modal .otp-box {
    width: 42px;
    height: 42px;
    border: 1.5px solid #b0c4de;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
}
.request-template-modal #otptimer {
    font-size: 11px;
    color: #64748b;
    margin-top: 5px;
    display: block;
}

/* ── SECTION LABEL "Product of Interest *" ── */
.request-template-modal .cs-section-label-light {
    font-size: 13px;
    font-weight: 700;
    color: #1565C0;
    display: inline-block;
    margin-bottom: 6px;
    font-family: 'Montserrat', sans-serif;
}
.request-template-modal .input-required { color: #e53935; }

/* ── PRODUCT + COMMODITY CHECKBOXES ── */
.request-template-modal .form-check {
    padding: 4px 0 4px 22px;
    min-height: unset;
}
.request-template-modal .form-check-input {
    width: 15px;
    height: 15px;
    accent-color: #1565C0;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}
.request-template-modal .form-check-label {
    font-size: 13px;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    line-height: 1.4;
}

/* ── COMMODITIES GRID ── */
.request-template-modal .commodities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 5px 10px;
    padding: 8px 0;
}
.request-template-modal .commodity-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.request-template-modal .commodity-checkbox {
    width: 14px;
    height: 14px;
    accent-color: #1565C0;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}
.request-template-modal .select-all {
    font-size: 12px;
    font-weight: 600;
    color: #1565C0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ── ERROR MESSAGES ── */
.request-template-modal .error-msg {
    font-size: 11px;
    color: #e53935;
    display: block;
    margin-top: 3px;
    min-height: 14px;
    font-family: 'Montserrat', sans-serif;
}

/* ─────────────────────────────────────────────────────────────
   SUBMIT BUTTON
   ───────────────────────────────────────────────────────────── */
.request-template-modal .btn-submit,
.request-template-modal button.btn-submit,
.request-template-modal button[type="submit"].btn-submit,
#DemoModal .btn-submit,
#DemoModal button[type="submit"] {
    width: 100% !important;
    height: 48px !important;
    background: linear-gradient(90deg, #1565C0 0%, #1976D2 60%, #1e88e5 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    font-family: 'Montserrat', sans-serif !important;
    letter-spacing: 0.4px !important;
    cursor: pointer !important;
    transition: opacity 0.18s, transform 0.12s !important;
    display: block !important;
}
#DemoModal .btn-submit:hover,
#DemoModal button[type="submit"]:hover {
    opacity: 0.90 !important;
    transform: translateY(-1px) !important;
}
#DemoModal .btn-submit:active,
#DemoModal button[type="submit"]:active {
    transform: translateY(0) !important;
}

/* ── VERIFIED TICK ── */
.request-template-modal .verified_tick {
    pointer-events: none;
    font-size: 15px;
    z-index: 20;
}

/* ── intl-tel-input z-index fix inside modal ── */
.request-template-modal .iti__country-list { z-index: 9999 !important; }
.request-template-modal .iti__flag-container { z-index: 10; }

/* ── Products loading / error text ── */
#products_loading,
#products_error {
    font-size: 13px;
    color: #666;
    padding: 4px 0;
    font-family: 'Montserrat', sans-serif;
}

/* =============================================================
   LATEST NEWS WIDGET — slide-in from right
   ============================================================= */
.latest-news-wrapper {
    position: fixed;
    right: -262px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1040;
    transition: right 0.32s ease;
    display: flex;
    align-items: center;
}
.latest-news-wrapper:hover { right: 0; }
.latest-news-container { display: flex; align-items: stretch; }

.latest-news-strip {
    background: linear-gradient(180deg, #1565C0, #1976D2);
    color: #fff;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    padding: 14px 9px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 0 0 8px 8px;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    flex-shrink: 0;
    font-family: 'Montserrat', sans-serif;
}
.latest-news-strip i { font-size: 13px; }

.latest-news-panel {
    background: #fff;
    width: 262px;
    padding: 14px;
    box-shadow: -3px 0 18px rgba(0,0,0,0.11);
    border-radius: 8px 0 0 8px;
    font-family: 'Montserrat', sans-serif;
}
.featured-label {
    font-size: 9px;
    font-weight: 700;
    color: #1976D2;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    text-transform: uppercase;
}
.news-title {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.5;
    margin-bottom: 7px;
    min-height: 3em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-date { font-size: 10px; color: #888; margin-bottom: 8px; }
.news-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #1565C0;
    text-decoration: none;
    transition: gap 0.18s;
}
.news-read-btn:hover { gap: 9px; color: #0d47a1; }
.news-dots { display: flex; gap: 5px; margin-top: 10px; }
.news-dots .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #dde3ec;
    cursor: pointer;
    transition: background 0.18s;
}
.news-dots .dot.active { background: #1976D2; }

/* =============================================================
   SITE FOOTER — matched exactly to Image 2
   ============================================================= */
.site-footer {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a2744 100%);
    color: #b0bec5;
    padding: 52px 0 0;
    font-family: 'Montserrat', sans-serif;
}

.site-footer .content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Logo ── */
.footer-logo-container {
    display: inline-block;
}
.footer-logo {
    max-width: 200px;
    /* Ensure logo renders on dark bg — use white version if available */
    filter: brightness(0) invert(1);
}

/* ── Headings ── */
.footer-heading {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    padding-bottom: 0;
    position: static;
    font-family: 'Montserrat', sans-serif;
    /* Remove the pseudo-element underline from old design */
}
.footer-heading::after {
    display: none !important;
}

/* ── Service list ── */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}
.footer-list li {
    margin-bottom: 9px;
}
.footer-list li a {
    color: #90a4ae;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.18s, padding-left 0.18s;
    display: inline-block;
}
.footer-list li a:hover {
    color: #fff;
    padding-left: 4px;
}

/* ── Social icons — filled circles as in Image 2 ── */
.social-icons-row {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}
.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.18s, transform 0.18s;
}
.social-icon:hover {
    background: #1976D2;
    color: #fff;
    transform: translateY(-2px);
}

/* ── Map ── */
.footer-map-container {
    width: 100%;
    height: 255px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
}

/* ── Contact section — Image 2 style ── */
.contact-detail {
    margin-bottom: 16px;
}
.contact-label {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-transform: none;
    letter-spacing: 0;
    display: block;
    margin-bottom: 4px;
}
.contact-text {
    font-size: 13px;
    color: #90a4ae;
    line-height: 1.7;
    margin: 0;
}
.contact-text a {
    color: #90a4ae;
    text-decoration: none;
    transition: color 0.18s;
}
.contact-text a:hover {
    color: #fff;
}

/* ── Bottom bar — flex layout matching Image 2 ── */
.footer-bottom-bar {
    border-top: 1px solid rgba(255,255,255,0.09);
    padding: 18px 0;
    margin-top: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #607d8b;
}
.footer_nav_flex {
    display: flex;
    align-items: center;
}
.footer_copyright {
    font-size: 13px;
    color: #90a4ae;
    white-space: nowrap;
}
.footer_copyright a {
    color: #2196F3;
    text-decoration: none;
}
.footer_copyright a:hover {
    color: #64b5f6;
}
.footer-bottom-bar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: center;
}
.footer-bottom-bar ul li {
    display: flex;
    align-items: center;
}
.footer-bottom-bar ul li + li::before {
    content: '|';
    color: rgba(255,255,255,0.2);
    margin: 0 8px;
    font-size: 11px;
}
.footer-bottom-bar ul li a {
    font-size: 12px;
    color: #90a4ae;
    text-decoration: none;
    transition: color 0.18s;
    white-space: nowrap;
}
.footer-bottom-bar ul li a:hover {
    color: #fff;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 991px) {
    .site-footer .col-lg-4 { margin-bottom: 28px; }
    .footer-map-container { height: 210px; }
}
@media (max-width: 767px) {
    .request-template-modal .modal-dialog { max-width: 98%; margin: 0.5rem auto; }
    .request-template-modal .modal-body { padding: 16px 14px 14px !important; }
    .request-template-modal .otp-box { width: 36px; height: 36px; font-size: 17px; }
    .request-template-modal .commodities-grid { grid-template-columns: 1fr 1fr; }
    .latest-news-wrapper { display: none; }
    .site-footer { padding: 38px 0 0; }
    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .footer-bottom-bar ul {
        justify-content: center;
    }
}
@media (max-width: 480px) {
    .request-template-modal .otp_box_cs_flex { gap: 5px; }
    .request-template-modal .otp-box { width: 32px; height: 32px; font-size: 15px; }
    .request-template-modal .verify { padding: 6px 9px; font-size: 11px; }
    .footer-bottom-bar ul li + li::before { margin: 0 5px; }
}