.taxcalculator {
    max-width: 850px;
    margin: 65px auto 0 auto;
    border-radius: 10px;
    overflow: hidden;
    background: #f9f9f9;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

/* Title header */
.taxcalculator .title, .taxtable .title {
    background: #e6f1fc;
    color: #003366;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin: 0;
    padding: 22px;
}

/* Subheading */
.taxcalculator h4.label {
    text-align: center;
    font-size: 18px;
    color: #003366;
    font-weight: 600;
    padding: 20px 0;
    background: #FFFFFF;
}

/* Form container */
.taxcalculator .form {
    padding: 20px;
}

/* Hide the default label for input */
.taxcalculator .field .label {
    display: none;
}

/* Input style */
.taxcalculator input.input-text {
    width: 100%;
    max-width: 400px;
    padding: 12px 15px;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    font-size: 14px;
    margin: 0 auto;
    display: block;
    color: #333;
    background: #fff;
}

/* Align input + button */
.taxcalculator .actions-toolbar {
    text-align: center;
    margin-top: 0px;
}

.taxcalculator .action.submit.primary {
    background: #003366;
    color: #fff;
    border: none;
    padding: 15px 25px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-left: 10px;
}

.taxcalculator .action.submit.primary:hover {
    background: #00509e;
}

.year-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.year-item:hover, 
.year-item.selected{
    background-color: #f0f7ff;
}

.year-item.selected{
    background-color: #e6f0ff;
}
.page-layout-1column .columns .column.main .taxcalculator .form{justify-content: center;padding: 50px 0px;gap: 35px 0px;}
.taxcalculator .form .field{width: 70%;}
.taxcalculator .form .field input{margin: 0;width: 100%;max-width: 100%;}


 .taxtable {
    max-width: 850px;
    margin: 0px auto 30px auto;
    font-family: Arial, sans-serif;
    color: #003366;
}
.taxtable .title{margin-top: 20px;border-radius: 8px 8px 0px 0;}

/* Top tax amount line */
.taxcalculator .content-heading{text-align: center;display: inline-flex;justify-content: center;align-items: center;gap: 20px 0px;flex-wrap: wrap;}
.taxcalculator .content-heading h3.content {
    font-size: 16px;
    font-weight: 600;
    color: #003366;
    margin: 0;
    display: inline-block;
}

.taxdetails p, .taxtable p{padding: 20px;}

.taxcalculator .content-heading h3.content::before {
    content: "Tax Amount : [ ";
    font-weight: normal;
    color: #003366;
}

.taxcalculator .content-heading h3.content::after {
    content: " ]";
    font-weight: normal;
    color: #003366;
}

/* Subline */
.taxcalculator .content-heading h4.content {
    font-size: 13px;
    font-weight: 400;
    color: #333;
    display: inline-block;
    margin-left: 8px;
    margin-right: 8px;
}

/* Button */
.taxtable button,
.taxtable .details-btn {
    display: inline-block;
    margin-left: 15px;
    padding: 8px 18px;
    border: 1px solid #003366;
    border-radius: 6px;
    background: #fff;
    color: #003366;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.taxtable button:hover,
.taxtable .details-btn:hover {
    background: #003366;
    color: #fff;
}

/* Table container */
.taxtable table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0px;
    /*border-radius: 8px;*/
    overflow: hidden;
    background: #fff;
}

/* Table header */
/*.taxtable thead tr {
    background: #e6f1fc;
}
*/
.taxtable th {
    text-align: left;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    text-align: center;
    border: 1px solid #ddd;
}

/* Table rows */
.taxtable td {
    padding: 12px;
    font-size: 14px;
    color: #333;
    border: 1px solid #ddd;
}

/* Center alignment for numbers */
.taxtable td {
    text-align: center;
}

.taxdetails {
    /*max-width: 1000px;*/
    /*margin: 30px auto;*/
    font-family: Arial, sans-serif;
    border-radius: 10px;
    overflow: hidden;
    /*background: #fff;*/
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.taxdetails.modal-popup._inner-scroll .modal-inner-wrap{max-width: 850px;}
    
.closedetail{
    position: absolute;
    right: 20px;
    color: #818181 !important;
    font-size: 25px;
    cursor: pointer;
    top: 12px;
}


/* Blue top bar */
.taxdetails .table-header {
    background: #e6f1fc;
    text-align: center;
    padding: 20px;
    font-size: 20px;
    font-weight: 600;
    color: #003366;
    border-bottom: 1px solid #ddd;
}

/* Table reset */
.taxdetails table {
    width: 100%;
    border-collapse: collapse;
}

.taxdetails th, 
.taxdetails td {
    padding: 12px;
    font-size: 14px;
    border: none;
    border: 1px solid #f0f0f0;
    color: #333;
}

/* First row bold (Type + Description) */
/*.taxdetails tbody td:nth-child(2),
.taxdetails tbody td:nth-child(3) {
    font-weight: 600;
    color: #003366;
}*/



/* Last row (total) */
.taxdetails tbody tr:last-child td {
    border-top: 2px solid #eee;
    text-align: right;
    font-weight: 700;
    font-size: 16px;
    color: #000;
    background: #f9f9f9;
}

.taxcalculator .details-btn {
    display: inline-block;
    margin-left: 15px;
    padding: 12px 18px;
    border: 1px solid #003366;
    border-radius: 6px;
    background: #fff;
    color: #003366;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}


.taxcalculator .details-btn:hover {
    background: #003366;
    color: #fff;
}



@media only screen and (min-width: 320px) and (max-width: 767px) {
    .taxtable{width: 100%;overflow-x: auto;-webkit-overflow-scrolling: touch;}
    .page-layout-1column .columns .column.main .taxcalculator .form{padding: 30px 0px;gap: 20px 0px;}   
    .taxcalculator .form .field{width:90%;}
    .taxcalculator .action.submit.primary{padding: 12px 25px;border-radius: 6px;font-size: 16px;font-weight: 500;cursor: pointer;transition: background 0.3s ease;margin-left: 0px;}
    .taxcalculator .content-heading h3.content{line-height: 20px;}
    #car-tax-calculator-form #car-selector-modal .arrow{display: none;}
    .modal-popup.modal-slide .modal-inner-wrap[class]{background-color: #ffffff;}


}

@media only screen and (min-width: 320px) and (max-width: 550px) {
.modal-tab {padding: 5px;font-size: 11px;}
.modal-car-selector .make-item, .modal-car-selector .model-item, .modal-car-selector .version-item{font-size: 11px;line-height: 16px;}


}