/* General Styling for Input Containers */
.ginput_container_height,
.ginput_container_weight {
    margin-bottom: 0;
}

/* Unit Toggle Buttons */
.ginput_container_height .unit-toggle,
.ginput_container_weight .unit-toggle {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ginput_container_height .unit-button,
.ginput_container_weight .unit-button {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.ginput_container_height .unit-button.active,
.ginput_container_weight .unit-button.active {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Ensure proper visibility for inputs */
.ginput_container_height .inputs-wrapper,
.ginput_container_weight .inputs-wrapper {
    display: none; /* Hidden by default */
}

/* Active input wrapper */
.ginput_container_height .inputs-wrapper.active,
.ginput_container_weight .inputs-wrapper.active {
    display: block; /* Display active input group */
}

.inputs-wrapper {
    display: flex;
    gap: 10px;
}

/* Specific styles for metric and imperial inputs */
.ginput_container_height .height-metric,
.ginput_container_weight .weight-metric,
.ginput_container_weight .weight-imperial-st-lbs,
.ginput_container_weight .weight-imperial-lbs {
    width: 100%;
}

/* Input field styling */
.height-field-group input,
.weight-field-group input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Field Labels */
.height-label,
.weight-label {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #666;
    pointer-events: none;
}

/* Adjust Gap for Imperial Units */
.ginput_container_height .height-imperial,
.ginput_container_weight .weight-imperial {
    gap: 12px !important;
}

/* Active button styling */
.ginput_container_weight .weight-unit-toggle .weight-unit-button.active,
.ginput_container_height .height-unit-toggle .height-unit-button.active {
    background-color: #005177;
    color: #fff;
    border-color: #005177;
}
