/* ==========================================================
   TMCI Bench Configurator — Horizontal / Brochure Layout
   (Flexbox columns — categories are pre-bucketed server-side
   in PHP, so this never needs to measure or guess heights,
   and can never overflow the viewport width like CSS
   multi-column could.)
   ========================================================== */

.tmci-container{
    max-width:1800px;
    width:95%;
    margin:30px auto;
    font-family:inherit;
    box-sizing:border-box;
}

.tmci-container *{
    box-sizing:border-box;
}

.tmci-container h2{
    text-align:center;
    font-size:38px;
    font-weight:700;
    color:#1b2a4e;
    margin-bottom:10px;
}

.tmci-intro{
    text-align:center;
    max-width:800px;
    margin:0 auto 40px;
    color:#666;
    line-height:1.7;
}

/* ==========================================================
   Column flow — plain flexbox, always fits the container
   ========================================================== */

.tmci-flow{
    display:flex;
    align-items:flex-start;
    gap:28px;
    width:100%;
}

.tmci-column{
    display:flex;
    flex-direction:column;
    flex:1 1 0;
    min-width:0;        /* critical: lets flex items shrink instead of overflowing */
}

/* Tablet: wrap into a 2x2 layout instead of 4-across */
@media (max-width:1400px){
    .tmci-flow{
        flex-wrap:wrap;
    }
    .tmci-column{
        flex:1 1 calc(50% - 14px);
    }
}

/* Small tablet / large phone: stack columns full width, in order */
@media (max-width:992px){
    .tmci-flow{
        flex-direction:column;
    }
    .tmci-column{
        flex:1 1 auto;
        width:100%;
    }
}

/* ==========================================================
   Section Card
   ========================================================== */

.tmci-section{
    background:#fff;
    border-radius:10px;
    padding:0 0 18px;
    margin-bottom:24px;
    border:1px solid #e9edf3;
    box-shadow:0 6px 18px rgba(0,0,0,.05);
    overflow:hidden;
}

.tmci-section h3{
    margin:0 0 16px;
    font-size:16px;
    letter-spacing:.3px;
    color:#fff;
    background:#1b2a4e;
    padding:12px 16px;
}

.tmci-section.tmci-highlight-blue{
    background:#eaf3fd;
    border-color:#cfe3f7;
}
.tmci-section.tmci-highlight-blue h3{
    background:#0b63ce;
}
.tmci-section.tmci-highlight-grey{
    background:#eef0f3;
    border-color:#dde1e7;
}
.tmci-section.tmci-highlight-grey h3{
    background:#3a4658;
}

/* ==========================================================
   Sub-groups within a section
   ========================================================== */

.tmci-sub-section{
    margin:0 16px 18px;
}

.tmci-subheading{
    display:inline-block;
    color:#1b2a4e;
    font-size:13px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.3px;
    margin:0 0 8px;
    padding-bottom:3px;
    border-bottom:2px solid #0b63ce;
    background:none;
}

/* ==========================================================
   Checkbox list
   ========================================================== */

.tmci-grid{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.tmci-checkbox{
    display:flex;
    align-items:flex-start;
    gap:8px;
    padding:1px 0;
}

.tmci-checkbox input{
    appearance:none;
    -webkit-appearance:none;
    width:14px;
    height:14px;
    margin-top:2px;
    border:1.5px solid #6b7686;
    border-radius:2px;
    flex-shrink:0;
    cursor:pointer;
    position:relative;
}

.tmci-checkbox input:checked{
    background:#0b63ce;
    border-color:#0b63ce;
}

.tmci-checkbox input:checked::after{
    content:"";
    position:absolute;
    left:3px;
    top:0px;
    width:4px;
    height:8px;
    border:solid #fff;
    border-width:0 2px 2px 0;
    transform:rotate(45deg);
}

.tmci-checkbox span{
    font-size:13px;
    line-height:1.4;
    color:#333;
    font-weight:400;
}

/* ==========================================================
   Customer Information (rendered as the last card in the
   last column, directly by the PHP loop)
   ========================================================== */

.tmci-customer-section{
    border:1px solid #0b63ce;
    padding-top:4px;
}

.tmci-customer-section h3{
    margin-bottom:20px;
}

.tmci-form-grid{
    display:flex;
    flex-direction:column;
    gap:16px;
    margin-bottom:18px;
    padding:0 18px;
}

.tmci-form-grid input,
.tmci-customer-section textarea{
    width:100%;
    padding:12px 14px;
    border:1px solid #d8dde6;
    border-radius:8px;
    font-size:14px;
    transition:.3s;
}

.tmci-form-grid input:focus,
.tmci-customer-section textarea:focus{
    border-color:#0b63ce;
    box-shadow:0 0 0 3px rgba(11,99,206,.12);
    outline:none;
}

.tmci-customer-section textarea{
    min-height:130px;
    resize:vertical;
    margin:0 18px 4px;
    width:calc(100% - 36px);
}

/* ==========================================================
   Buttons — sit inside the Customer Information card
   ========================================================== */

.tmci-buttons{
    display:flex;
    flex-direction:column;
    gap:14px;
    padding:0 18px 4px;
}

.tmci-hidden{
    display:none !important;
}

.tmci-whatsapp-note{
    margin:0;
    font-size:13px;
    color:#1b2a4e;
    font-weight:600;
    text-align:center;
}

.tmci-submit,
.tmci-whatsapp{
    border:none;
    border-radius:8px;
    padding:14px 20px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
    width:100%;
}

.tmci-submit{
    background:#0b63ce;
    color:#fff;
}

.tmci-submit:hover{
    background:#084fa4;
    transform:translateY(-2px);
}

.tmci-whatsapp{
    background:#25D366;
    color:#fff;
}

.tmci-whatsapp:hover{
    background:#1fb458;
    transform:translateY(-2px);
}

/* ==========================================================
   Mobile
   ========================================================== */

@media(max-width:768px){
    .tmci-container h2{
        font-size:28px;
    }
    .tmci-form-grid{
        padding:0 12px;
    }
    .tmci-customer-section textarea{
        margin:0 12px 4px;
        width:calc(100% - 24px);
    }
    .tmci-buttons{
        padding:0 12px 4px;
    }
    .tmci-section h3{
        font-size:15px;
    }
}