/* Custom styled checkboxes for add-ons */
.marlog-addon-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}
.styled-checkbox {
    display: none;
}
.styled-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.08em;
    margin-bottom: 0;
}
.styled-checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #FFD046;
    border-radius: 6px;
    background: #fff;
    margin-right: 12px;
    position: relative;
    transition: border-color 0.2s;
}
.styled-checkbox:checked + .styled-checkbox-label .styled-checkbox-custom {
    border-color: #0e4194;
    background: #FFD046;
}
.styled-checkbox-custom:after {
    content: '';
    display: block;
    position: absolute;
    left: 5px;
    top: 2px;
    width: 7px;
    height: 13px;
    border: solid #0e4194;
    border-width: 0 3px 3px 0;
    opacity: 0;
    transform: rotate(45deg);
    transition: opacity 0.2s;
}
.styled-checkbox:checked + .styled-checkbox-label .styled-checkbox-custom:after {
    opacity: 1;
}
.marlog-calculator-page {
    display: none; /* hide by default, JS will show one page */
    margin-bottom: 20px;
}

.marlog-calculator-navigation #wizard-prev:not(:disabled) {
    background-color: rgb(206, 206, 206);
    color: black;
}

.marlog-calculator-navigation #wizard-prev:not(:disabled):hover,
.marlog-calculator-navigation #wizard-prev:not(:disabled):focus {
    background-color: rgb(61, 61, 61);
    color: rgb(255, 255, 255);
}

.marlog-calculator-navigation #wizard-next:hover,
.marlog-calculator-navigation #wizard-next:focus {
    background-color: #0e4194;
    color: white;
}

.marlog-calculator-navigation #wizard-next {
    background-color: #FECA00;
    color: black;
}

.marlog-calculator-navigation #wizard-next:hover,
.marlog-calculator-navigation #wizard-next:focus {
    background-color: #0e4194;
    color: white;
}

.marlog-calculator-field {
    margin-bottom: 15px;
}


.marlog-calculator-field input:not([type="checkbox"]):focus,
.marlog-calculator-field select:focus {
    border-color: #222222;
}

.marlog-calculator-field input:not([type="checkbox"]):disabled,
.marlog-calculator-field select:disabled {
    background-color: rgb(238, 238, 238);
}


.marlog-calculator-field label {
    font-weight: bold;
    margin-bottom: 5px;
}

.marlog-calculator-field input:not([type="checkbox"]),
.marlog-calculator-field select {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    color: #222222;
}

.marlog-calculator-results .marlog-calculator-field input {
    background-color: #f8f8f8;
}

.marlog-calculator-results .marlog-calculator-field input.manual-editable {
    background-color: #ffffff;
}

.marlog-calculator-pages select option {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.marlog-calculator-progress-text {
    color: #767676;
    font-size: 13px;
    font-weight: 400;
    margin: 0 0 5px 0;
}

.marlog-calculator-progress-bar {
    height: 20px;
    width: 100%;
    background: #e8e8e8;
    border-radius: 10.5px;
    margin-bottom: 16px;
    position: relative;
}

.marlog-calculator-progress-bar-percentage {
    height: 20px;
    width: 20%;
    color: #6D5203;
    background-color: #FFD046;
    border-top-left-radius: 10.5px;
    border-bottom-left-radius: 10.5px;
    transition: width 0.3s ease;
}

.marlog-calculator-progress-bar-percentage-100 {
    border-top-right-radius: 10.5px;
    border-bottom-right-radius: 10.5px;
}

.marlog-calculator-progress-bar-percentage span {
    display: block;
    float: right;
    font-size: 13px;
    line-height: 21px;
    margin-left: 8px;
    margin-right: 8px;
    min-width: 2em;
    width: auto;
}

.has-error input, .has-error select { 
    border-color: #e81a1a !important; 
}

gmp-place-autocomplete {
    background-color: white;
    color-scheme: light;
    border: 1px solid rgb(209, 213, 219);
    border-radius: 9px;
    height: 50px;
}

/* Results Table Styling for page5-result.php */
.marlog-calculator-results-table-wrapper {
    max-width: 500px;
    margin: 0 auto 24px auto;
}
.marlog-calculator-results-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
}
.marlog-calculator-results-table td {
    padding: 10px 0 10px 16px;
    color: #222;
}
.marlog-calculator-results-table td:last-child {
    padding: 10px 16px 10px 0;
    text-align: right;
}
.marlog-calculator-results-table .results-total-row td {
    border-top: 2px solid #FFD046;
    padding: 18px 16px 0 16px;
}
.marlog-calculator-results-table .results-total-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.marlog-calculator-results-table .results-total-label {
    font-weight: bold;
    font-size: 1.3em;
}

.marlog-calculator-results-table .results-total-value {
    font-weight: bold;
    font-size: 1.3em;
    text-align: right;
}

.marlog-calculator-results-note {
    max-width: 600px;
    margin: 0 auto 24px auto;
    text-align: center;
    color: #767676;
    font-size: 1em;
}

.marlog-subinfo {
    font-size: 0.85em;
    color: #666;
    margin-top: -4px;
    margin-bottom: 2px;
    line-height: 22px;
}