/* ============================================
   Hero Modules Section - 4 Key Features
   Live Offers, IRM Demo, NBFC Calculator, Logistics Calculator
   ============================================ */

/* Hero Modules Section */

.hero-modules-section {
    background: #F3F3F5;
    padding: 0;
    margin-top: -90px;
    padding-top: 90px;
    width: 100%;
}

.hero-modules-section .container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px 8px 32px;
}

/* Section Header */
.modules-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.modules-header .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #064E8D 0%, #00072B 100%);
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.modules-header h2 {
    font-size: 2.5rem;
    color: #064E8D;
    margin-bottom: 16px;
    font-weight: 700;
}

.modules-header p {
    font-size: 1.1rem;
    color: #545971;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas: "live-offer live-demo logistics nbfc";
    gap: 16px;
    width: 100%;
    align-items: start;
}

.live-offer-module {
    grid-area: live-offer;
}

.sellers-grade-module {
    grid-area: live-demo;
}

.nbfc-module {
    grid-area: nbfc;
}

.logistics-module {
    grid-area: logistics;
}

/* Module Card Base Styles */
.module-card {
    background: white;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 12px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 550px;
    min-height: 550px;
    max-height: 550px;
    overflow: hidden;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(6, 78, 141, 0.2);
    border: 2px solid #064E8D;
}

/* Uniform button size for all hero module buttons */
.module-card .btn-download-app,
.module-card .btn-get-quote,
.module-card .btn-calculate,
.module-card .btn-call,
.module-card .module-download-btn,
.live-offer-module .btn-download-app,
.live-offer-module .module-download-btn,
.sellers-grade-module .btn-get-quote,
.nbfc-module .btn-calculate,
.logistics-module .btn-calculate,
.logistics-module .btn-call {
    padding: 9px 12px !important;
    font-size: 0.8rem !important;
    min-height: 38px !important;
    height: 38px !important;
    gap: 5px !important;
    margin-top: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.module-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #F3F3F5;
}

.module-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #064EBD 0%, #00072B 100%);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.module-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #00072B;
    margin: 0;
    line-height: 1.2;
}

/* Live Offer Module */
.live-offer-module {
    background: white;
    color: #00072B;
    position: sticky;
    top: 16px;
    align-self: flex-start;
    padding: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 550px;
    min-height: 550px;
    max-height: 550px;
}

.live-rate-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid #F3F3F5;
}

.live-rate-heading .module-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #064EBD 0%, #00072B 100%);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.live-rate-heading h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #00072B;
    margin: 0;
    line-height: 1.2;
}

.live-offer-module .module-header {
    display: none;
}


.live-offer-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 10px;
    padding: 10px;
    background: white;
    scrollbar-width: thin;
    scrollbar-color: #B0B2BD transparent;
    scroll-behavior: smooth;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    will-change: scroll-position;
}

.live-offer-content::-webkit-scrollbar {
    width: 6px;
}

.live-offer-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.live-offer-content::-webkit-scrollbar-thumb {
    background: #B0B2BD;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.live-offer-content::-webkit-scrollbar-thumb:hover {
    background: #064E8D;
}

/* Remove double scrollbar - ensure only one scrollbar */
.live-offer-module {
    overflow: hidden !important;
}

.module-card.live-offer-module {
    overflow: hidden !important;
}

.live-offer-module .live-offer-content {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Ensure parent doesn't create scrollbar */
.module-card {
    overflow: visible;
}

.module-card.live-offer-module {
    overflow: hidden;
}

/* Live Offers Title */
.live-offers-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #00072B;
    margin-bottom: 20px;
    padding-bottom: 12px;
}

/* Offer Sections */
.offer-section {
    margin-bottom: 12px;
}

.offer-section-header {
    font-size: 0.8rem;
    font-weight: 700;
    color: #00072B;
    margin-bottom: 7px;
    padding-bottom: 4px;
    border-bottom: 1px solid #E0E0E0;
}

.offers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.offer-card {
    background: white;
    border-radius: 5px;
    padding: 6px;
    border: 1px solid #E0E0E0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 7px;
}

.offer-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #064E8D;
}

.offer-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    position: relative;
    gap: 8px;
}

.offer-product-name-header {
    font-size: 0.8rem;
    font-weight: 700;
    color: #00072B;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.offer-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Badges removed - no longer displaying BEST OFFER, BEST SELLER, etc. */
.offer-badge-new {
    display: none !important;
}

.offer-badge-new.hot-deal {
    display: none !important;
}

.offer-badge-new.best-offer {
    display: none !important;
}

.offer-dropdown {
    background: none;
    border: none;
    color: #545971;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 2px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.offer-dropdown:hover {
    color: #064E8D;
}

.offer-card-body {
    margin-bottom: 0;
}

.offer-product-name {
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0;
    color: #00072B;
    line-height: 1.3;
}

.offer-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    color: #545971;
    margin: 0;
    line-height: 1.2;
}

.offer-location i {
    font-size: 0.6rem;
    color: #545971;
    flex-shrink: 0;
}

.offer-location span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.offer-price-box {
    background: #FBC02D;
    color: #00072B;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-download-app {
    width: 100%;
    background: #FBC02D;
    color: #00072B;
    border: none;
    padding: 9px 12px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 38px;
    height: 38px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    margin-top: auto;
    cursor: pointer;
    line-height: 1;
    text-decoration: none;
    flex-shrink: 0;
    margin-left: 0;
    margin-right: 0;
}

.live-offer-module .btn-download-app,
.live-offer-module .module-download-btn {
    margin: 0 !important;
    margin-top: auto !important;
    width: 100% !important;
    padding: 9px 12px !important;
    font-size: 0.8rem !important;
    min-height: 38px !important;
    height: 38px !important;
    gap: 5px !important;
}

.btn-download-app i {
    font-size: 0.9rem;
    flex-shrink: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.live-offer-module .btn-download-app i,
.live-offer-module .module-download-btn i {
    font-size: 0.9rem !important;
}

.btn-download-app span {
    white-space: nowrap;
    line-height: 1;
    display: inline-block;
}

.btn-download-app:hover {
    background: #F57F17;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 192, 45, 0.3);
}

/* Specific styling for Download App button in Live Rates modules */
.module-card .module-download-btn,
.live-offer-module .module-download-btn {
    width: 100% !important;
    background: #FBC02D !important;
    color: #00072B !important;
    border: none !important;
    padding: 9px 12px !important;
    border-radius: 3px !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    height: 38px !important;
    box-sizing: border-box !important;
    margin-top: auto !important;
    cursor: pointer !important;
    line-height: 1 !important;
    text-align: center !important;
    gap: 5px !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
}

.module-card .module-download-btn i,
.live-offer-module .module-download-btn i {
    font-size: 0.75rem !important;
    flex-shrink: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.module-card .module-download-btn span {
    white-space: nowrap;
    line-height: 1;
    display: inline-block;
}

.module-card .module-download-btn:hover {
    background: #F57F17;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 192, 45, 0.3);
}

.offer-loading {
    text-align: center;
    padding: 40px 20px;
    color: #545971;
}

.offer-loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
    color: #064E8D;
    margin-bottom: 12px;
}

.offer-loading p {
    font-size: 0.9rem;
    color: #545971;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.grade-loading {
    text-align: center;
    padding: var(--spacing-lg);
    color: #B0B2BD;
}

.grade-loading i {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: #064E8D;
}

/* Seller's Grade Prices Module */
.sellers-grade-module {
    background: white;
}

.sellers-grade-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #B0B2BD transparent;
    scroll-behavior: smooth;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    will-change: scroll-position;
}

.sellers-grade-content::-webkit-scrollbar {
    width: 6px;
}

.sellers-grade-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.sellers-grade-content::-webkit-scrollbar-thumb {
    background: #B0B2BD;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.sellers-grade-content::-webkit-scrollbar-thumb:hover {
    background: #064E8D;
}

.grades-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.grade-card {
    background: white;
    border: 2px solid #F3F3F5;
    border-radius: 6px;
    padding: 12px;
    transition: all 0.3s ease;
}

.grade-card:hover {
    border-color: #064E8D;
    box-shadow: 0 2px 8px rgba(6, 78, 141, 0.1);
    transform: translateY(-2px);
}

.grade-header {
    margin-bottom: 10px;
}

.grade-title {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.grade-iv-badge {
    background: #064E8D;
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    white-space: nowrap;
}

.grade-title h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #00072B;
    margin: 0;
    line-height: 1.3;
}

.grade-details {
    margin: 10px 0;
}

.grade-detail-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.grade-detail {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    flex: 1;
    min-width: 70px;
}

.grade-detail i {
    color: #545971;
    font-size: 0.85rem;
    margin-top: 2px;
}

.grade-detail div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label {
    font-size: 0.65rem;
    color: #B0B2BD;
    text-transform: none; /* Changed from uppercase to none for proper capitalization */
    letter-spacing: 0.3px;
    line-height: 1.1;
    font-size: rem;
}

.detail-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: #00072B;
    line-height: 1.2;
}

.grade-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #F3F3F5;
}

.grade-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #064E8D;
    line-height: 1.2;
}

.grade-badges {
    display: flex;
    gap: 6px;
}

.grade-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.grade-badge-p {
    background: #4ade80;
}

.grade-badge-cb {
    background: #064E8D;
}

.btn-get-quote {
    width: 100%;
    background: #F57F17;
    color: white;
    border: none;
    padding: 9px 12px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
    margin-top: auto;
    cursor: pointer;
    min-height: 38px;
    height: 38px;
    box-sizing: border-box;
    line-height: 1;
    flex-shrink: 0;
}

.btn-get-quote:hover {
    background: linear-gradient(135deg, #00072B 0%, #064E8D 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 78, 141, 0.3);
}

/* Calculator Modules (NBFC & Logistics) */
.nbfc-module, .logistics-module {
    background: white;
}

.calculator-mini-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    height: 100%;
}

.form-field-mini {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-field-mini label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #545971;
    text-transform: none;
    letter-spacing: 0.3px;
}

.form-field-mini input {
    padding: 8px 10px;
    border: 2px solid #B0B2BD;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: var(--font-ui);
    transition: border-color 0.3s ease;
}

.form-field-mini input:focus {
    outline: none;
    border-color: #064E8D;
}

.calculator-mini-result {
    background: #F3F3F5;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    border: 2px solid #B0B2BD;
    margin-top: 6px;
    min-height: 55px;
    max-height: 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

/* Hide result boxes when not in active step */
.credit-step:not(.active) .calculator-mini-result {
    display: none !important;
}

.result-label {
    display: block;
    font-size: 0.65rem;
    color: #545971;
    margin-bottom: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.result-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.1;
}

/* All Credit Result Boxes - Uniform Styling */
#mini-nbfc-amount-result,
#mini-nbfc-interest-result,
#mini-nbfc-total-result {
    background: #F3F3F5;
    border: 2px solid #B0B2BD;
    padding: 10px;
    min-height: 55px;
    max-height: 55px;
    margin-top: 6px;
}

/* Total Payable Amount - Slightly Highlighted */
#mini-nbfc-total-result {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border-color: #27ae60;
    border-width: 2px;
}

#credit-total-result {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #27ae60 !important;
}

#credit-amount-result {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #00072B !important;
}

#credit-interest-result {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #064E8D !important;
}

.btn-calculate {
    background: #064E8D;
    color: white;
    border: none;
    padding: 9px 12px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    width: 100%;
    min-height: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-sizing: border-box;
    line-height: 1;
    flex-shrink: 0;
}

/* Uniform button size for all calculator buttons */
.freight-step .btn-calculate,
.credit-step .btn-calculate,
.freight-step .btn-call {
    padding: 9px 12px !important;
    font-size: 0.8rem !important;
    min-height: 38px !important;
    height: 38px !important;
    gap: 5px !important;
}

/* Freight Calculator and Credit Calculator button color */
.logistics-module .btn-calculate,
.nbfc-module .btn-calculate,
.freight-step .btn-calculate,
.credit-step .btn-calculate {
    background: #064E8D !important;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 78, 141, 0.3);
}

/* Demo Booking Modal with Calendly */
.demo-modal .modal-content {
    max-width: 900px;
    width: 95%;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.demo-modal-content.calendly-modal {
    background: white;
    padding: 0;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.demo-modal-top-bar {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 15px;
}

.close-modal-top {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #545971;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.close-modal-top:hover {
    background: #f44336;
    border-color: #f44336;
    color: white;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.close-modal-top i {
    font-size: 1.1rem;
}

.demo-modal-header {
    padding: 24px 30px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    position: relative;
}

.demo-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    background: #064E8D;
}

.demo-type-badge i {
    font-size: 0.75rem;
}

.demo-modal-header h2 {
    margin: 0 0 8px 0;
    color: #064E8D;
    font-size: 1.5rem;
}

.demo-subtitle {
    color: #545971;
    margin: 0;
    font-size: 0.95rem;
}

/* Calendly Container */
#calendly-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 600px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    position: relative;
    background: #fff;
}

.calendly-inline-widget {
    width: 100% !important;
    height: 100% !important;
    min-height: 600px !important;
    position: relative;
}

/* Ensure Calendly iframe fills container */
#calendly-container iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 600px !important;
    border: none !important;
}

/* Demo Modal Footer with Cancel Button */
.demo-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-cancel-demo {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.btn-cancel-demo:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-cancel-demo:active {
    transform: translateY(0);
}

.btn-cancel-demo i {
    font-size: 0.9rem;
}

/* Responsive Calendly Modal */
@media (max-width: 768px) {
    .demo-modal .modal-content {
        max-width: 95%;
        width: 95%;
        max-height: 95vh;
    }
    
    .demo-modal-header {
        padding: 20px 20px 16px;
    }
    
    .demo-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .demo-subtitle {
        font-size: 0.9rem;
    }
    
    #calendly-container {
        min-height: 500px;
    }
    
    .calendly-inline-widget {
        min-height: 500px;
    }
    
    .demo-modal-footer {
        padding: 16px 20px;
    }
    
    .btn-cancel-demo {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .demo-modal .modal-content {
        max-width: 100%;
        width: 100%;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .demo-modal-header {
        padding: 16px 16px 12px;
    }
    
    .demo-modal-header h2 {
        font-size: 1.2rem;
    }
    
    #calendly-container {
        min-height: 450px;
    }
    
    .calendly-inline-widget {
        min-height: 450px;
    }
    
    .demo-modal-footer {
        padding: 14px 16px;
    }
    
    .btn-cancel-demo {
        padding: 10px 18px;
        font-size: 0.85rem;
        min-width: 90px;
        width: 100%;
    }
}

/* Old demo step styles (kept for backward compatibility) */
.demo-step {
    display: none;
}

.demo-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.demo-subtitle strong {
    color: #064E8D;
}

.form-hint {
    font-size: 0.85rem;
    color: #B0B2BD;
    margin-top: 4px;
}

.demo-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: space-between;
}

.btn-demo-submit {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.demo-success {
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.demo-success i {
    font-size: 4rem;
    color: #4ade80;
    margin-bottom: var(--spacing-md);
}

.demo-confirmation {
    background: #F3F3F5;
    padding: var(--spacing-lg);
    border-radius: 6px;
    margin: var(--spacing-lg) 0;
}

.demo-email-confirm, .demo-mobile-confirm {
    font-weight: 600;
    color: #064E8D;
    margin: var(--spacing-xs) 0;
}

/* Book Demo Button in Navbar */
.book-demo-menu .btn-book-demo {
    background: linear-gradient(135deg, #F57F17 0%, #e65100 100%);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.book-demo-menu .btn-book-demo:hover {
    background: linear-gradient(135deg, #e65100 0%, #bf360c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 127, 23, 0.4);
}

.demo-dropdown-simple {
    min-width: 250px;
}

.demo-booking-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    transition: all 0.3s ease;
}

.demo-booking-link i:first-child {
    font-size: 1.25rem;
    color: #064E8D;
}

.demo-booking-link span {
    flex: 1;
    font-weight: 500;
}

.demo-booking-link i:last-child {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.demo-booking-link:hover i:last-child {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */

/* Large Desktop: 4 columns in one line */
@media (min-width: 1280px) {
    .modules-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 24px;
    }
    
    .hero-modules-section .container {
        max-width: 1800px;
        padding: 0 40px;
    }
}

/* Medium Desktop: 4 columns in one line */
@media (min-width: 1024px) and (max-width: 1279px) {
    .modules-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-areas: "live-offer live-demo nbfc logistics";
        gap: 16px;
    }
    
    .hero-modules-section .container {
        max-width: 1400px;
        padding: 0 32px;
    }
    
    .module-card {
        padding: 12px;
        height: 550px;
        min-height: 550px;
        max-height: 550px;
    }
    
    .live-offer-module {
        height: 550px;
        min-height: 550px;
        max-height: 550px;
    }
    
    .module-header h3 {
        font-size: 1rem;
    }
}

/* Tablet: 2 columns stacked pairs */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-modules-section .container {
        padding: 0 24px;
    }
    
    .modules-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "live-offer live-demo"
            "nbfc logistics";
        gap: 18px;
    }

    .live-offer-module {
        position: relative;
        top: 0;
    }
    
    .module-card {
        height: 500px;
        min-height: 500px;
        max-height: 500px;
    }
    
    .live-offer-module {
        height: 500px;
        min-height: 500px;
        max-height: 500px;
        padding: 12px;
    }
    
    .live-offer-content,
    .sellers-grade-content {
        flex: 1;
        min-height: 0;
        padding: 10px;
    }
    
    .live-offer-module .btn-download-app,
    .live-offer-module .module-download-btn {
        margin: 0 !important;
        margin-top: 6px !important;
        width: 100% !important;
        padding: 6px 8px !important;
        font-size: 0.7rem !important;
        min-height: 32px !important;
        height: 32px !important;
        min-height: 44px;
        height: 44px;
    }
}

/* Mobile: 1 column */
@media (max-width: 767px) {
    .hero-modules-section .container {
        padding: 0 16px;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "live-offer"
            "live-demo"
            "nbfc"
            "logistics";
        gap: 16px;
    }
    
    .module-card {
        padding: 16px;
        height: auto;
        min-height: 400px;
        max-height: none;
    }

    .live-offer-module {
        position: relative;
        top: 0;
        height: auto;
        min-height: 400px;
        max-height: 520px; /* Constrain height on mobile so inner list can scroll */
        padding: 12px;
    }
    
    .live-offer-content,
    .sellers-grade-content {
        flex: 1;
        min-height: 0;
        padding: 10px;
    }

    /* Mobile: make Live Offers list scrollable inside fixed-height card */
    .live-offer-module .live-offer-content {
        max-height: 60vh;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    
    .live-rate-heading {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    
    .live-rate-heading .module-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .live-rate-heading h3 {
        font-size: 0.95rem;
    }
    
    .offer-card {
        padding: 8px;
        margin-bottom: 8px;
    }
    
    .offer-product-name {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }
    
    .offer-location {
        font-size: 0.75rem;
    }
    
    .offer-price-box {
        padding: 5px 10px;
        font-size: 0.85rem;
        min-width: 65px;
    }
    
    .btn-chat, .btn-call-offer {
        padding: 5px 8px;
        font-size: 0.75rem;
    }
    
    .offer-actions {
        gap: 5px;
    }
    
    .live-offer-module .btn-download-app,
    .live-offer-module .module-download-btn {
        margin: 0 !important;
        margin-top: 6px !important;
        width: 100% !important;
        padding: 6px 8px !important;
        font-size: 0.7rem !important;
        min-height: 32px !important;
        height: 32px !important;
        min-height: 40px;
        height: 40px;
    }
    
    .form-field-mini label {
        font-size: 0.7rem;
    }
    
    .form-field-mini input {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .calculator-mini-result {
        min-height: 60px;
        padding: 12px;
    }
    
    .result-value {
        font-size: 1.25rem;
    }
    
    .demo-modal .modal-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .demo-actions {
        flex-direction: column;
    }
    
    .btn-demo-submit {
        width: 100%;
    }
}

/* Animation for form inputs */
.form-field-mini input:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    animation: inputFocus 0.3s ease;
}

@keyframes inputFocus {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Calculator Form Styles */
.calculator-mini-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.form-field-mini {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-field-mini label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #545971;
}

.form-field-mini input,
.form-field-mini select {
    padding: 8px 12px;
    border: 1px solid #B0B2BD;
    border-radius: 3px;
    font-size: 0.9rem;
    background: #F3F3F5;
    transition: all 0.3s ease;
}

.form-field-mini input:focus,
.form-field-mini select:focus {
    outline: none;
    border-color: #064E8D;
    background: #FFFFFF;
    box-shadow: 0 0 0 2px rgba(6, 78, 141, 0.1);
}

.calculator-mini-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #F3F3F5;
    border-radius: 3px;
    margin: 8px 0;
}

.result-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #545971;
}

.result-value {
    font-size: 1rem;
    font-weight: 700;
    color: #064E8D;
}

.btn-calculate {
    width: 100% !important;
    background: #064E8D !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 3px !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    padding: 9px 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-top: auto;
    min-height: 38px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

.btn-calculate:hover {
    background: #F57F17 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(6, 78, 141, 0.3) !important;
}

/* Book Demo Button (IRM Module) */
.btn-get-quote {
    width: 100% !important;
    background: #F57F17 !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 3px !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    padding: 9px 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-top: auto;
    min-height: 38px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

.btn-get-quote:hover {
    background: #FBC02D !important;
}

/* Freight Calculator Layout */
.calculator-mini-form.freight-flow {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 8px;
    min-height: 0;
}

.freight-step {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 0;
}

.freight-step.active {
    display: flex;
}

.freight-step .form-field-mini {
    flex-shrink: 0;
}

.freight-step .calculator-mini-result {
    flex-shrink: 0;
}

.freight-step .btn-calculate,
.freight-step .btn-call {
    margin-top: auto;
    flex-shrink: 0;
}

/* Readonly input styles */
.form-field-mini input[readonly] {
    background-color: #f5f5f5;
    color: #545971;
    cursor: not-allowed;
    opacity: 0.8;
}

.form-field-mini input[readonly]:focus {
    outline: none;
    border-color: #e2e8f0;
}

/* Interest Rate Field - Smaller Size */
#mini-nbfc-interest-rate,
#credit-interest-rate-display,
#credit-interest-rate-display-2 {
    max-width: 120px !important;
    text-align: center !important;
    font-size: 0.95rem !important;
    padding: 8px 10px !important;
    background-color: #f5f5f5 !important;
    color: #064E8D !important;
    font-weight: 600 !important;
    cursor: default !important;
}

.freight-step,
.credit-step {
    display: none;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    animation: fadeIn 0.3s ease;
    min-height: 0;
    align-items: stretch;
}

.freight-step.active,
.credit-step.active {
    display: flex;
}

/* Ensure credit step 3 results are aligned */
#credit-step-3 {
    flex-direction: column;
    gap: 8px;
}

#credit-step-3.active {
    display: flex;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    max-height: 100%;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Prevent card stretching when calculator shows results */
.nbfc-module,
.logistics-module {
    height: 550px;
    min-height: 550px;
    max-height: 550px;
    overflow: hidden;
}

.nbfc-module .calculator-mini-form,
.logistics-module .calculator-mini-form {
    height: 100%;
    overflow: hidden;
}

#credit-step-3.active .form-field-mini {
    flex-shrink: 0;
    display: flex !important;
    visibility: visible !important;
}

#credit-step-3.active .calculator-mini-result {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    flex-shrink: 0;
    display: flex !important;
    visibility: visible !important;
}

/* Hide result boxes when Step 3 is not active */
#credit-step-3:not(.active) .calculator-mini-result {
    display: none !important;
}

#credit-step-3:not(.active) .form-field-mini {
    display: none !important;
}

.freight-step .btn-calculate,
.credit-step .btn-calculate {
    margin-top: auto;
    flex-shrink: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.freight-call-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    margin-top: 6px;
}

.call-message {
    display: none;
}

.btn-call {
    background: #064E8D !important;
    color: white !important;
    border: none !important;
    padding: 9px 12px !important;
    border-radius: 3px !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    min-height: 38px !important;
    height: 38px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    margin-top: auto !important;
    flex-shrink: 0 !important;
}

.btn-call:hover {
    background: linear-gradient(135deg, #00072B 0%, #064E8D 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(6, 78, 141, 0.3) !important;
}

.btn-call i {
    font-size: 1.1rem;
}

/* NBFC Info Section */
.nbfc-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
    padding: 12px;
    background: #F3F3F5;
    border-radius: 3px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #545971;
}

.info-item i {
    color: #064E8D;
    font-size: 0.9rem;
    width: 16px;
}

/* Calculator Modal Styles */
.calculator-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.calculator-modal {
    background: #FFFFFF;
    border-radius: 3px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Calendly Notification Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.calculator-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 2px solid #F3F3F5;
    background: #064E8D;
    color: #FFFFFF;
}

.calculator-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #FFFFFF;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.calculator-modal-body {
    padding: 24px;
}

.calculator-modal-body p {
    margin-bottom: 20px;
    color: #545971;
    font-size: 1rem;
}

.form-field {
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #545971;
    font-size: 0.9rem;
}

.form-field input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #B0B2BD;
    border-radius: 3px;
    font-size: 1rem;
    background: #F3F3F5;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-field input:focus {
    outline: none;
    border-color: #064E8D;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(6, 78, 141, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-cancel {
    flex: 1;
    padding: 12px 20px;
    background: #B0B2BD;
    color: #FFFFFF;
    border: none;
    border-radius: 3px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #545971;
    transform: translateY(-1px);
}

.btn-submit {
    flex: 2;
    padding: 12px 20px;
    background: #064E8D;
    color: #FFFFFF;
    border: none;
    border-radius: 3px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #F57F17;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 78, 141, 0.3);
}
