/* Calculator Form */
#cost-calculator-form {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #012d60;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#cost-calculator-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #fff;
}

#cost-calculator-form select,
#cost-calculator-form input[type="button"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#cost-calculator-form input[type="checkbox"] {
    margin-right: 10px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

#cost-calculator-form .checkbox-container label {
    display: inline-block;
    font-weight: normal;
    margin-bottom: 0;
    vertical-align: middle;
}

#calculate {
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-sizing: border-box;
}

#calculate:hover {
    background-color: #0056b3;
}


/* Output Section */
#output {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#output .row {
    margin-bottom: 10px;
}

#output .col-md-6 {
    font-size: 16px;
}

/* Overlay and Popup Form */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 999;
}

.overlay.active {
    display: block;
}

.popup-form {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    z-index: 1000;
    width: 400px;
}

.popup-form.active {
    display: block;
}

.popup-form h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.popup-form .form-group {
    margin-bottom: 20px;
}

.popup-form label {
    display: block;
    margin-bottom: 5px;
}

.popup-form input[type="text"],
.popup-form input[type="email"],
.popup-form input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.popup-form button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.popup-form button:hover {
    background-color: #0056b3;
}

/* Additional Styles */

/* Button Styles */
.btn {
    display: inline-block;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s;
}

.btn-primary {
    color: #fff;
    background-color: #012D60;
    border-color: #007bff;
}

.btn-sub {
    color: #fff;
    background-color: #012D60 !important;
    border-color: #007bff;
}

.btn-primary:hover {
    color: #fff;
    background-color: #012D60;
    border-color: #0056b3;
}

.btn-success {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    color: #fff;
    background-color: #218838;
    border-color: #1e7e34;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #cost-calculator-form .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .popup-form {
        width: 300px;
        padding: 20px;
    }
}




/* Style the entire table */
table {
  border-collapse: collapse; /* Make borders collapse for cleaner look */
  width: 100%; /* Set table width to 100% */
}

/* Style table headers */
.table-header th {
  font-weight: bold; /* Make header text bold */
  background-color: #d9edf7; /* Set header background color */
  padding: 5px; /* Add padding to headers */
  text-align: left; /* Align header text to left */
}

/* Style table cells */
.table-cell td {
  border: 1px solid #cccccc; /* Set cell borders */
  padding: 5px; /* Add padding to cells */
}

/* Style specific rows (optional) */
.row-highlight tr:nth-child(even) {
  background-color: #f2f2f2; /* Add a light background color to even rows for zebra striping */
}

/*Close Button to close the Form*/
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #000 !important;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/*.success-message {*/
/*    color: green !important;*/
/*    margin-top: 10px !important;*/
/*}*/

/*.error-message {*/
/*    color: red !important;*/
/*    margin-top: 10px !important;*/
/*}*/




/* Styles for overlay */
.overlay {
    position: fixed; /* Position it fixed to the viewport */
    top: 0;
    left: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 1000; /* Ensure it's above other content */
    display: none; /* Hidden by default */
}

/* Styles for popup */
.popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1001; /* Ensure it's above the overlay */
}

