.order-form-inner{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 15px;
    margin-bottom: 15px;
}
.cstm_field label{
    color: #fff;
    margin-bottom: 8px;
    font-size: 14px;
}

.choicerow{
      display: grid;
    grid-template-columns: repeat(2, 1fr);
        grid-gap: 30px;
       

}
.choicerow label{
    display: flex;
    align-items: center;
    font-family: Inter;
    background-color: #fff;
    height: 55px;
    border-radius: 10PX;
    padding: 10px 20px;
    border: 1px solid #d9d6d6;
    cursor: pointer;
}
.choicerow input{   
    width: 20px !important;
    height: 20px !important;
    margin-bottom: 0 !important;
    margin-right: 10px!important;
    accent-color: #4E8D98;
    }
.choicerow label:has(input:checked) {     color: #fff;   background-color: #4e8d98;}
.choicerow label:hover {     color: #fff;   background-color: #4e8d98;}
   .error {
    border: 1px solid red;
}

#confirmModal {
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.5);
    z-index:1;
}

.modal-content {
    background:#fff;
    padding:20px;
    width:300px;
    margin:100px auto;
    text-align:center;
}
/* ===== Form Container ===== */
#mainOrderForm {
    max-width: 1024px;
    margin: 30px auto 100px;
    padding: 40px 40px 5px 40px;
    background: #ffffff;
    border-radius: 16px;
   
}

/* ===== Headings ===== */
#mainOrderForm h1,
#mainOrderForm h2,
#mainOrderForm h3 {
    margin-bottom: 15px;
}

/* ===== Inputs & Selects ===== */
#mainOrderForm input,
#mainOrderForm select {
     margin-bottom:0!important;
    height: 55px;
    border-radius: 10px;
    border: 1px solid #d0cdcd80;
    background-color: #f9f9f9;
    color: #6E6E6E;
    font-family: Inter;
    font-size: 16px !important;
    font-weight: 400;
    padding: 10px 20px !important;
    transition: 0.2s;
}

/* Focus state */
#mainOrderForm input:focus,
#mainOrderForm select:focus {
    border-color: #0073aa;
    outline: none;
}

/* ===== Buttons ===== */
#mainOrderForm button {    
    border: none;   
    border-radius: 6px;
    cursor: pointer;
  
        margin-top: 20px;
}

#mainOrderForm button:hover {
   
}

/* ===== Error Styling ===== */
.error {
    border: 1px solid red !important;
}

#errorMessage,
#formError {
    background: #ffe6e6;
    color: #c00;
    padding: 10px;
    border-radius: 6px;
    display: none;
    margin-bottom: 15px;
        font-family: Inter;
}

/* ===== Order Table ===== */
#orderTable {
    width: 990px;
    border-collapse: collapse;
    
}

#orderTable th {
    background: #4E8D98;
    color: #fff;
    padding: 10px 15px;
    text-align: left;
    border-right: 1px solid #ffffff73;
    font-family: "Inter", Sans-serif;
    font-weight: 500;
}

#orderTable td {
    padding: 10px 15px;
    text-align: left;
        font-family: "Inter", Sans-serif;
    font-weight: 500;
}

/* ===== Total ===== */
#grandTotal {
    font-weight: bold;
    font-size: 25px;
}

/* ===== Role Section ===== */
input[type="radio"] {
    width: auto;
    margin-right: 5px;
}

/* ===== Modal ===== */
#confirmModal {
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.5);
    display:none;
}

.modal-content {
    background:#fff;
    padding:20px;
    border-radius:10px;
    width:300px;
    margin:120px auto;
    text-align:center;
}
#teacherFields, #studentFields{  
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 15px;
     margin: 35px 0;
}

#teacherFields .cstm_field, #studentFields .cstm_field{grid-column: span 6;}
#teacherFields h4, #studentFields h4{    grid-column: span 12;
    margin-bottom: 0;}
#orderForm{margin:35px 0;}
#mainOrderForm hr{border: 1px solid #f4f4f4;}
#selectionTable{margin:35px 0}
#mainOrderForm h4{margin-top:0;font-size: 25px;    font-weight: 500;}
.remove{ 
    margin-top: 0!important;
    line-height: 1;
    cursor: pointer;
    color:red !important;
    }
.remove:hover{color:#fff;}
.page-id-2375 .site-header .header-inner{justify-content: center;margin-top: 32px;}
.page-id-2375 {background-image: url(/wp-content/uploads/2025/11/landing-bg.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: auto;}
#confirmModal button{ 
    line-height: 1;
    border: 0;
    width: 40%;
    padding: 15px 20px 15px 20px;
}

#orderTable ~ h4{  
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: #f9f9f9;
    align-items: center;
    border: 1px solid #d0cdcd80;
}
#orderTable{margin-bottom: 0;}
.order-form{    position: relative;}
.choicesec{
background-color: #f9f9f9;
    padding: 20px 20px;
    border-radius: 10px;
    border: 1px solid #d0cdcd80;}
#price_display{  
   position: absolute;
    right: 0px;
    bottom: 0px;
    background-color: #4E8D98;
    height: 58px;
    color:#fff;
    display: inline-block;
    padding: 20px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    line-height: 1;}
#price_display:empty{display:none}
/* Container Styles */
.order-container {
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: scroll;
}
#orderTable div
{
    padding-left:5px;
}

/* Desktop Grid Layout */
.order-header, .order-row {
    display: grid;
    /* Adjust fractions (fr) to give the 'Module' column more space */
    grid-template-columns: 2fr 1fr 1fr 1fr 0.8fr 1fr 0.6fr 1fr 1fr;
    align-items: center;
    width: 990px;
}

.order-header {
    background-color: #5a94a2; /* Teal color from your image */
    color: white;
    font-weight: bold;
    padding: 12px;
}

.order-row {
    border-bottom: 1px solid #eee;
    padding: 10px 12px;
    background: #fff;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
}

.col {
    padding: 5px;
}

.remove-btn {
    color: #d9534f;
    text-decoration: none;
    font-weight: bold;
}
#mainOrderForm h4.total-parent
{
    margin-top:15px;
    float: right;
}
#mainOrderForm .elementor-button{background-image: linear-gradient(#a8b05f 0px, #a8b05f 0.2em);}

/* --- MOBILE RESPONSIVE STYLES --- */



    .order-header {
        display: none; /* Hide traditional headers */
    }

    .order-container {
        border: none; /* Let cards breathe */
            overflow-x: hidden;
    }

    .order-row {
        display: block; /* Stack everything vertically */
        margin-bottom: 10px;
        border: 1px solid #eee;
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        padding: 15px;
        width: 100%;
    }
#orderTable{width: 100%;}
    /* Styling the Module as a Header */
    .module-title {
        font-size: 1.2rem;
        font-weight: bold;
        color: #333;
        border-bottom: 2px solid #f4f4f4;
        margin-bottom: 0px;
        padding-bottom: 20px;
    }

    /* Generating the "Hidden Titles" using CSS pseudo-elements */
    .col:not(.module-title):not(.action-cell) {
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px dotted #ccc;
        line-height: 1;
    }

    .col:not(.module-title):not(.action-cell)::before {
        content: attr(data-label); /* Pulls text from HTML data-label */
        font-weight: bold;
        color: #8a7a50; /* Gold/Brown color from your mobile mockup */
        text-transform: uppercase;
        font-size: 0.85rem;
    }

    .total-value {
        color: #2c3e50;
        font-weight: bold;
    }

    .action-cell {
        text-align: center;
        margin-top: 10px;
        padding-top: 10px;
    }
@media only screen and (min-width:1024px){
.order-row{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 0 15px;
}
.module-title{grid-column: span 2;}
.action-cell{grid-column: span 2;}
}
@media (max-width: 767px){

#teacherFields .cstm_field, #studentFields .cstm_field{grid-column: span 6;}
.order-form-inner{    grid-template-columns: repeat(2, 1fr);}
}
@media (max-width: 550px){
.choicerow{
    grid-template-columns: repeat(1, 1fr) !important;
    grid-gap: 15px;
}
#mainOrderForm button.elementor-button{min-width: 180px;}
#teacherFields .cstm_field, #studentFields .cstm_field{grid-column: span 12;}
.order-form-inner{    grid-template-columns: repeat(1, 1fr);}
#mainOrderForm{padding: 40px 20px 1px 20px;}
}

.order-container::-webkit-scrollbar {
  height: 5px;
}

.order-container::-webkit-scrollbar-track {
  background: #eee;
  border-radius: 10px;
}

.order-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.order-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}