/* =============================================
   Fliply Landing Page - Responsive
   ============================================= */

@media screen and (min-width: 1200px) and (max-width:1599px)
{
    .feaso-body, .totals-row.is-profit span, .form-control-sm, .input-group-text{ font-size: 14px; }
    .totals-row.is-profit .totals-val{ font-size: 18px; }
    .prop-label { width: 170px; min-width: 170px;}
}

@media screen and (max-width: 1299px)
{
    .search-inputtext{ position: absolute; left: 24px; bottom: 0; margin: 0 0 -44px 0; width: 50%; z-index: 1; }
    .search-inputtext .searchinpu{ background: #fff; }
    .pipeline-board{ padding-top: 52px; }
    .topbar-stats{ padding-left: 0; border-left: 0; }
}

@media (max-width: 1199px) {

    .stepsrightcontent .card .card-body { max-height: 76vh;}
.maincontainer.minleftsidebar{ max-width: 100%; }

    .app-topbar-title p{ font-size: 13px; line-height: 1; }
    h1,
    .h1 {
        font-size: 38px;
    }

    h2,
    .h2 {
        font-size: 28px;
    }


    .pricing-card-pro {
        transform: none;
    }
    .hero-section p{ font-size: 18px;}
    .secondary-nav-list li{ font-size: 12px; white-space: nowrap;}
    .faq-section{ padding:30px;}
    .site-footer p br{ display: none;}
    .costs-tabs{ width: 100%;        background: transparent;
        padding-bottom: 0;
        min-height: 40px; align-items: start;
        border-right: 0;
        flex-direction: row !important;
        flex-wrap: nowrap; overflow-x: auto; }
    .withsubsidebar{ flex-wrap: wrap; flex: 0; }
    .costs-tab{ width: auto; white-space: nowrap; border:solid 1px var(--cardborder); background-color: #fff; }

    .feaso-topbar-left .btn.btn-secondary{ font-size: 0; min-width: 38px; padding: 0; gap:0; }
    .feaso-topbar-left .btn.btn-secondary i{ font-size: 15px; }
    .feaso-topbar-title{padding-left: 0; border: 0;}
    .feaso-topbar{ padding-left: 16px; padding-right: 16px; }
    .feaso-body{ padding: 16px; }
    .kpicard{     position: initial;
    background: transparent;
    padding: 0;
    margin: 0;
    border: 0; }

}

@media (max-width: 991px) {
    .deal-step-mini{ height: 0; margin-top: -16px; }
    .dealprocessbuttons{ padding-bottom: 0; }

    .stepsrightcontent .card{ border: 0; padding: 0; box-shadow: none; border-radius: 0; }
    .stepsrightcontent .card .card-body{ padding: 0; max-height: calc(100vh - 200px); padding-top: 10px; border-top: solid 1px #eee;}
    .kpicard{ gap:5px }
    .topbar-stat{ padding: 10px; }
    .topbar-stat span{ font-size: 10px; }
    /* Reno planner stacks; sidebar toggles via the mobile Filter button */
    .reno-planner { flex-direction: column; }

    .reno-mobilebar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 16px;
        border-bottom: solid 1px var(--cardborder);
    }
    .reno-mobilebar-title {
        font-size: 16px;
        font-weight: 700;
        color: var(--navyblue);
    }
    .reno-sidebar {
        width: 100%;
        min-width: 0;
        border-right: 0;
        border-bottom: solid 1px var(--cardborder);
    }

    .reno-tablewrap .table-responsive{ max-height: 66vh; }
    .reno-tablewrap .table-responsive table thead{ position: sticky; top: 0; z-index: 2; }

    .renotable-outer{ max-width: 100%; }
    .prop-label { width: 190px; min-width: 190px;}
    .help-section-head{ padding-left: 16px; }
    .sidebar-collapse-btn{ display: none }
    .app-topbar{ position: initial; }
    .section-padding {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    h1,
    .h1 {
        font-size: 34px;
    }

    h2,
    .h2 {
        font-size: 26px;
    }

    .header {
       height: 60px;
       z-index: 1046;
    }
    section[id], div[id] {
        scroll-margin-top: 60px;
      }

    .header .logo img {
        height: 40px;
    }

    .header .container {
        position: relative;
    }

    /* Mobile offcanvas menu panel — centered */
    #mainNavbar.offcanvas {
        width: calc(100% - 48px);
        max-width: 420px;
        height: auto !important;
        max-height: calc(100vh - 80px);
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        border: 0;
        border-radius: 16px;
        box-shadow: 0 20px 40px rgba(2, 40, 85, 0.25);
        overflow-y: auto;
    }

    #mainNavbar .offcanvas-body {
        padding: 28px 24px;
        text-align: center;
    }

    #mainNavbar .navbar-nav {
        align-items: center;
        width: 100%;
    }

    /* Smooth fade open — centered, no jerk */
    #mainNavbar.offcanvas.offcanvas-end {
        transform: translate(-50%, -50%) !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    }

    #mainNavbar.offcanvas.offcanvas-end.showing,
    #mainNavbar.offcanvas.offcanvas-end.show {
        transform: translate(-50%, -50%) !important;
        opacity: 1;
        visibility: visible;
    }

    .header .navbar-nav .nav-link {
        padding: 15px 20px; font-weight: 500; display: block;
    }
.navbar-nav li{ width: 100%;}
    .header-actions {
        flex-direction: column;
        width: 100%;
        margin-top: 16px;
    }

    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .faq-section{ padding: 20px;}

 
    .secondary-nav-list {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }
    .process-step{ height: auto;}

    .pricing-card {
        margin-bottom: 20px;
    }

    .footer-bottom .row {
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
        margin-top: 10px;
    }
    .hero-image-wrap img{ object-position: -300px top;}
    .text-18 {
        font-size: 16px !important;
      }
      .login-card{ margin-top: 30px; margin-right: auto;}
       .pipelinetopbar{ position: relative; }
       .maincontainer.pipeline-board{ padding-top: 52px; }
       .search-inputtext{ left: 16px; }
}

@media (max-width: 767px) {
    .account-wrap{ max-width: 100%; }

    .faq-section{ padding: 0; background-color: transparent; padding-top: 30px;}
    .app-promo-section p br{ display: none;}
    .hero-image-wrap{ display: none;}
    
    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    h1,
    .h1 {
        font-size: 28px;
        letter-spacing: -0.5px;
    }

    h2,
    .h2 {
        font-size: 24px;
    }

    h3,
    .h3 {
        font-size: 20px;
    }

    .section-padding {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    .hero-content{ text-align: center;}

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .hero-section p {
        font-size: 15px;
      }
      .hero-stats{ padding: 0; border: 0;}
      .hero-stat-item strong{ font-size: 20px;}

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stat-item {
        text-align: center;
        flex: 1 1 40%;
    }

    .feature-icon{ width: 40px; height: 40px;position: absolute; left: 20px; position: absolute; left: 20px; top: 20px;}
    .feature-icon img{ width: 26px; height: 26px;}
    .feature-card h6{ margin:0;}



    .app-store-badges img {
        height: 42px;
    }

    .pricing-price {
        font-size: 34px;
    }

    .site-footer {
        padding-top: 50px;
    }

    .footer-bottom .col-md-6 {
        margin-bottom: 10px;
    }
    .feature-card{ padding: 20px; min-height: 80px; border-radius: 18px; height: auto; margin-bottom: 0; position: relative; padding-left: 80px; }
    .faq-card{ border-radius: 18px;}
    .search-inputtext{ right: 16px; width: auto; }
}

@media (max-width: 575px) {
    .feaso-topbar{ flex-wrap: wrap; flex-direction: column; justify-content: stretch; align-items: stretch; }
    .form-switch-container{ font-size: 15px; }
    .feedback-face{ width: 48px;  height: 48px; }
    h1,
    .h1 {
        font-size: 26px;
    }

    .secondary-nav-list a {
        font-size: 13px;
        padding: 4px 10px;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stat-item strong {
        font-size: 18px;
    }

    .pricing-card {
        padding: 28px 20px;
    }
    .site-footer h4{ font-size:12px; }
    .footer-links a{ font-size:14px; }
    .footer-bottom p, .footer-legal{ font-size: 10px;}
    .login-card{ padding: 25px;}
    .login-tabs .nav-link{ font-size: 16px;}
    .login-tabs{ margin-top: 0; }
}

@media (max-width: 991px) {
    .login-content h1 {
        font-size: 34px;
    }

   
}


/* =============================================
   App Dashboard - Responsive
   ============================================= */
@media (max-width: 991px) {
.deal-process-steps .step-label{ font-size: 0; }
.deal-process-steps .step-indicator-item{ padding: 0 5px; }
.deal-process-steps{margin-left: auto; margin-right: auto; }
.deal-process-steps .step-indicator-progress{ width: 0; left:16px; right: 16px; }
.deal-process-steps .step-indicator-line{ left: 16px; right: 16px; }
    .dealstepsform{ flex-direction: column; }
    .app-layout {
        display: block; min-height: 70vh;
    }
    .renod strong{ font-size: 16px; }
    .dealprocessbuttons .btn{ flex-grow: 1; }

.app-topbar-right .topbar-stat:last-child{ border-right: 0; }
    /* Slide-in sidebar */
    .app-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 256px;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
      
    }

    .app-sidebar.open {
        transform: translateX(0);
    }
    .app-topbar{ flex-wrap: wrap; }

    .sidebar-backdrop.show {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1044;
    }

    /* Mobile top bar with hamburger */
    .app-mobile-bar {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 5px 16px;
        background: var(--navyblue);
        position: sticky;
        top: 0;
        z-index: 1040; height: 60px;
    }

    .app-mobile-bar img {
        height: 30px;
    }

    .app-sidebar-toggle {
        background: transparent;
        border: 0;
        color: #fff;
        font-size: 20px;
        line-height: 1;
        padding: 4px 6px; order: 2; margin-left: auto;
    }

    .app-topbar {
        padding: 16px; height: auto;
    }

    .app-topbar-right {
       flex-grow: 1;
        justify-content: space-between;
        gap: 14px;
    }
    .maincontainer{  padding: 16px; }

    .pipeline-board {
       
        gap: 14px; height: calc(100vh - 134px);
    }
}

@media screen and (min-width: 992px) and (max-width: 1199px)
{
    .costs-tabs{ padding-right: 24px; padding-left: 24px; }
}


@media (max-width: 767px) {
    .app-topbar-title p{ font-size: 14px; }
    .login-content {
        text-align: center;
    }

    .login-intro {
        margin-left: auto;
        margin-right: auto;
    }

    .login-feature-item {
        text-align: left;
    }

    .login-card {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
    .pipeline-board {
         height: calc(100vh - 194px);
    }
    .contact-modal.createnewdealmodal .modal-content{ padding:18px }
}

@media (max-width: 575px) {
    .app-topbar-right .topbar-stats{ display: flex; justify-content: center; }
    .topbar-stat + .topbar-stat::before{ left: -8px; }
    .pipeline-board {
     position: fixed;
    bottom: 0;
    height: auto;
    top: 235px;
    }
    .app-topbar-title p{ font-size: 13px; line-height: normal; }
    .app-topbar-title h1 {
        font-size: 20px;
    }

    .topbar-stats {
        gap: 16px; border-right: 0; padding-right: 0; width: 100%; justify-content: center;
    }
    .upcoming-row{ flex-direction: column; gap:5px }

    .app-topbar-right {
        flex-wrap: wrap;
    }

    .app-topbar-right .btn {
        width: 100%;
        justify-content: center;
    }
.upcoming-row .deal-tag{ align-self: start; }
    /*.pipeline-column {
        width: 260px;
        min-width: 260px;
    }*/
    .accordion-header .btn-sm{        font-size: 0;
        min-width: 30px;
        height: 30px;
        padding: 0 !important;
        justify-content: center;
        border-radius: 60px;
        text-align: center;
        gap: 0; }
    .accordion-header .btn-sm i{ font-size: 12px; }
    .partner-accordion .accordion-button::after{ right: 10px; }
    .partner-add-btn{ right: 40px; }
    .partner-accordion .accordion-button{ padding-right: 74px; padding-left: 10px; font-size: 15px; }
    .partner-info-top h6{ font-size: 14px; }
    .partner-accordion .accordion-body{ padding-right: 10px; padding-left: 10px; padding-bottom: 10px; }

}


/* Pre-loaded Costs - Responsive */
@media (max-width: 767px) {
    .card-header{ flex-wrap: wrap; }
    .notify-item{ padding:14px }
    .notify-text{ font-size: 14px; }
    .costs-page {
        padding: 16px;
    }
    .costs-layout {
        flex-direction: column;
        gap: 18px;
    }
    .costs-tabs {
        width: 100%;
        min-width: 0;
        min-height: 0;
        flex-direction: row !important;
      
        border-right: 0;
     
    }
    .costs-tab {
        
    }
    .costs-card {
        padding: 18px;
    }
    .costs-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    .costs-input {
        width: 120px;
        min-width: 120px;
    }
    .feaso-topbar-title small{ padding-top: 2px; }
}

@media (max-width: 575px) {
    .doc-item-actions .btn-sm{ font-size: 12px; }
    .costwithsome{ width: 100%; }
    .add-cost-row{ width: 100%; }
    .add-cost-row .btn{ width: 100%; }
    .costsrightpanels .form-control-sm{ flex-grow: 1; }
    .costs-label {
        font-size: 14px;
        flex: 1 1 100%;
    }
    .costsrightpanels{ flex-grow: 1; }
    .costs-input {
        width: 100%;       
    }
    .costs-row{ border: 0; padding: 8px 0; }
    .costs-actions .btn{ width: 100%; }
    .mobilefullw{ flex-grow: 1; }
    .mobilefullw .input-group{ width: 100%; }
    .totals-row{ flex-wrap: wrap; }
    .totals-val{ width: 100%; }
    .totals-val .totals-edit-group{ width: 100%; }
    .cost-row-actions a{ width: 22px; height: 22px; }
    .totals-row .totals-val .totals-edit-group .form-control-sm{ text-align: left; }
    .reno-budget-bar .reno-budget-pill{ width: 100%; }
    .reno-budget-label{ flex-grow: 1; }
    .reno-budget-bar .reno-budget-pill .reno-budget-val{ order: 2; }
    .reno-budget-label.text-16{ font-size: 14px !important; }
    .reno-budget-val.text-18{ font-size: 14px !important; }
    .reno-table-head{ flex-direction: column; align-items: start; }
    .feaso-topbar{ align-items: stretch !important; }
    .task-item{ flex-direction: column; }
    .task-item-actions{ width: 100%; align-items: stretch; }
    .task-item-actions .deal-tag{ align-self: start; }

    .notify-footer{ justify-content: center; }

    


}


/* Basic Feasibility - Responsive */
@media (max-width: 767px) {
    .feaso-topbar { padding: 12px 16px; gap: 12px; align-items: start; }
    .feaso-topbar-left { gap: 12px; }
    .feaso-topbar-title h1 { font-size: 18px; }
    .feaso-body { padding: 16px; }
    /*.prop-row { flex-direction: column; gap: 2px; }*/
   /* .prop-label { width: 100%; }*/
    .feaso-tabs { flex-wrap: nowrap; overflow-x: auto; }

    .feaso-body, .totals-row.is-profit span, .form-control-sm, .input-group-text{ font-size: 14px; }
    .totals-row.is-profit .totals-val{ font-size: 18px; }
    .prop-row{ gap:0 }
    .prop-label { width: 170px; min-width: 170px;}

    .doc-item { flex-direction: column; align-items: stretch; }
    .doc-item-actions { flex-wrap: wrap; }
    .doc-item-actions .btn { flex: 1; }
    .feaso-topbar-title{ flex-wrap: wrap; row-gap: 5px; }
    .feaso-topbar-left{ align-items: start; }
    .feaso-topbar .btn-sm{ white-space: nowrap; }
    .deal-progress-ring{ width: 26px; height: 26px; min-width: 26px; }

    /* Blog: keep card images a consistent, shorter height on mobile */
    .blog-card-img { height: 190px; }
    .blogauthordetail{ font-size: 12px !important; }

}


@media screen and (max-width: 480px)
{
    
        .contingencyblock{ flex-wrap: wrap; width: 100%; }
        .contingencyblock label{ width: 100%; }
        .contingencyblock input.form-control{ flex-grow: 1; }
        .doc-item-meta{ font-size: 12px; }

        .renod span{ font-size: 9px; }
        .renod strong{ font-size: 12px; font-weight: 600; }
        .renodates{ gap:6px }
        .renotoi{ font-size: 12px; }
        .strategycheck .strategyoption label{ font-size: 12px; }
        .strategycheck{ gap:5px }
        .partner-meta span i.fa-envelope{ top: 1px; }

}
@media screen and (max-width: 399px)
{
    .plan-card > .d-flex{ flex-wrap: wrap;
        flex-direction: column;
        gap: 10px;
        align-items: start !important; }

}

@media (max-width: 767px) {
    /* Breadcrumb: keep on a single line, ellipsis the article name */
    .blog-breadcrumb { flex-wrap: nowrap; overflow: hidden; }
    .blog-breadcrumb .breadcrumb-item { white-space: nowrap; }
    .blog-breadcrumb .breadcrumb-item.active {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media screen and (max-width: 350px)
{
    .deal-progress-text span{ font-size: 10px; }
    .doc-item-meta{ font-size: 11px; }
}


@media (max-width: 991px) {
    /* hide the full circle stepper, show the compact "Step X / 6" counter */
    .deal-process-steps .step-indicator-item,
    .deal-process-steps .step-indicator-line,
    .deal-process-steps .step-indicator-progress{ display: none !important; }
    .deal-process-steps{ display: block; width: 100%; }
    
}

@media screen and (min-width: 992px)
{
    .deal-process-steps{ flex-direction: column; }
    .deal-process-steps .step-indicator-item{ margin-bottom: 14px; padding-left: 0; padding-right: 0; }
    .deal-process-steps .step-indicator-item{ flex-direction: row; display: flex; width: 100%; justify-content: start; align-items: center; gap: 10px; }
    /* last step has no margin so the line/progress stop at its circle (no extra line below) */
    .deal-process-steps .step-indicator-item:last-child{ margin-bottom: 0; }
    .deal-process-steps .step-indicator-item .step-label{ flex-grow: 1; text-align: left; font-weight: 500; }
    .deal-process-steps .step-indicator-item.completed .step-label{ font-weight: 600; color: var(--navyblue);}
    .deal-process-steps .step-indicator-item.completed .step-label:after{ content: "Complete"; display: block; clear: both; width: 100%; color: var(--green); font-size: 8px; padding-top: 3px; }
    .dealprocessbuttons{ justify-content: end; }


    /* vertical connecting line + progress running through the circle centres (circle = 32px, centre at 16px) */
    .deal-process-steps .step-indicator-line{ top: 16px; bottom: 16px; left: 16px; right: auto; width: 1px; height: auto; transform: none; }
    /* progress spans the exact line region and fills to --step-progress via a gradient (no overshoot) */
    .deal-process-steps .step-indicator-progress{ top: 16px; bottom: 16px; left: 16px; right: auto; width: 1px !important; height: auto; transform: none; background: linear-gradient(to bottom, var(--pink) var(--step-progress, 0%), transparent var(--step-progress, 0%)) !important; }
    .setminh{ min-height: 105px; }

}