/* Base styling for the switch container */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 48px;
    text-align: center;
}

/* Hide the checkbox */
.unit-toggle-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Style for the toggle switch (label) */
.toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    transition: .4s;
    border-radius: 6px;
    margin-bottom: 0;
    border: 2px solid #ccc;
}

/* Circle inside the switch */
.toggle-label:before {
    position: absolute;
    content: "";
    height: 38px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20%;
}

/* Move the circle to the right on check */
.unit-toggle-checkbox:checked + .toggle-label:before {
    transform: translateX(92px); /* Adjusted for smaller toggle width */
}

/* Change switch background color when it is checked */
.unit-toggle-checkbox:checked + .toggle-label {
    background-color: #333;
    color: white;
}

.toggle-text {
    display: inline-block;
    margin-top: 0.6em;
}

.mulchCalculator { 
    width: 100%;
    max-width: 461px;
}

#mulch-calculator-form {
    background-color: #eaeaea;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 1.5em 2em;
    margin: auto;
}

#mulch-calculator-form h2 {
    text-align: left;
    font-size: 1.0em; 
    font-weight: bold; 
    text-transform: capitalize;
    padding: 0 0 0.0em 0.8em;
	margin-bottom: 0;
}

#mulch-calculator-form p {
    padding: 0 0 1em 1.3em;
	margin-bottom: 0;
}

#mulch-calculator-form input[type="tel"] {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #cccccc;
    border-radius: 4px;
}

#mulch-calculator-form button {
    background-color: #EC7362;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-weight: bold;
    font-size: 1.5em;
	margin-top: 0.5em;
	font-style: none;
}

#mulch-calculator-form button:hover {
    background-color: #EC7362;
}

.results-container {
    display: none; /* Ensure it's hidden initially */
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: stretch;
    gap: 10px;
    background-color: #444;
    border-radius: 8px;
    padding: 20px;
    max-width: 461px;

    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}



.result-item {
    flex: 1;
    min-width: 100px;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-top: 5px solid #EC7362;
    font-weight: bold;
    text-align: center;
}

.result-value {
    color: #EC7362;
    display: block;
    font-size: 1.0em;
}

.input-group {
    display: flex;
    align-items: center;
    margin: 0px 0;
}

.dimension-label, .unit {
    margin: 0 5px;
}

#mulch-calculator-form input {
    max-width: 90px;
    font-size: 0.8em;
}

.input-group span {
    padding-top: 0.55em;
    font-size: 0.9em;
}

.input-group span.dimension-label {
    min-width: 45px;
}

.mobilePushDown img  {
    border-radius: 6px;
}

@media (max-width: 768px) {
    .toggle-switch { width: 95px; }
    .toggle-text { font-size: 0.8em; margin-top: 0.9em; }
    .unit-toggle-checkbox:checked + .toggle-label:before { transform: translateX(68px); }
    .input-group { justify-content: center; }
    .result-item { font-size: 0.9em; text-align: center; margin-bottom: 0 !important; min-width: 50px !important; }
    .result-value { font-size: 1.0em; }
	.results-container { padding: 10px !important; }
    #mulch-calculator-form { padding: 1em; }
    #mulch-calculator-form input { max-width: 180px; font-size: 0.7em; }
    #mulch-calculator-form h2, #mulch-calculator-form p { padding: 0; font-size: 0.9em; }
    .mobilePushDown { display: none; }
    .TopPortion { padding: 0 1em; }
}
