/* Base Container */
#rbmih-10345 {
    font-family: "Roboto", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    max-width: 500px;
    margin: 10px auto;
    padding: 30px;
    border: 1px solid #000000;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#rbmih-10345 h2,
#rbmih-10345 h3,
#rbmih-10345 legend,
#rbmih-10345 label,
#rbmih-10345 .rbmih-10345-input,
#rbmih-10345 .rbmih-10345-button,
#rbmih-10345 .rbmih-10345-results-title,
#rbmih-10345 .rbmih-10345-result-label,
#rbmih-10345 .rbmih-10345-result,
#rbmih-10345 .rbmih-10345-error-container,
#rbmih-10345 .rbmih-10345-watermark {
    font-family: "Roboto", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Typography */
#rbmih-10345 h2 {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
    font-weight: 700;
    font-size: 1.3em;
    padding-left: 25px;
    padding-right: 25px;
}

#rbmih-10345 h3 {
    text-align: center;
    font-size: 1.3em;
    color: #666;
    margin-top: 0;
    margin-bottom: 0px;
}

/* Layout Components */
#rbmih-10345 .rbmih-10345-flex {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

#rbmih-10345 .rbmih-10345-flex-item {
    flex: 1;
}

/* Form Structure */
#rbmih-10345 .rbmih-10345-input-group {
    margin-bottom: 20px;
}

#rbmih-10345 fieldset {
    border: none;
    padding: 0;
    margin: 0 0 25px 0;
}

/* Labels and Legends */
#rbmih-10345 .rbmih-10345-input-group label,
#rbmih-10345 legend {
    display: block;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.9em;
    font-weight: bold;
}

/* Input Fields */
#rbmih-10345 .rbmih-10345-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 1em;
    color: #333;
    line-height: 1.6;
    border: 1px solid #CCC;
    border-radius: 5px;
    box-sizing: border-box;
    text-align: center;
    height: auto;
}

#rbmih-10345 .rbmih-10345-input:focus {
    border: 1px solid #0056b3;
    outline: none;
    background-color: #f0f8ff;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2);
}

#rbmih-10345 .rbmih-10345-input:hover {
    background: #f0f8ff;
    transform: scale(1.03);
    border-color: #0056b3;
    color: #333;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Radio Button Groups */
#rbmih-10345 .rbmih-10345-radio-group {
    display: flex;
    gap: 10px;
    margin-bottom: 0px;
}

#rbmih-10345 .rbmih-10345-radio-item {
    flex: 1;
}

#rbmih-10345 .rbmih-10345-radio-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

#rbmih-10345 .rbmih-10345-radio-group input[type="radio"] + label {
    padding: 15px;
    background: #e0e0e0;
    border: 1px solid #b7b7b7;
    border-radius: 5px;
    color: #000000;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    flex: 1;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#rbmih-10345 .rbmih-10345-radio-group input[type="radio"] + label:hover {
    background: #f0f8ff;
    transform: scale(1.03);
    border-color: #0056b3;
    color: #333;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

#rbmih-10345 .rbmih-10345-radio-group input[type="radio"]:checked + label {
    background: #5FC9BE;
    color: #000000;
    border-color: #000000;
    box-shadow: 0 4px 2px rgba(0, 0, 0, 0.2);
}

#rbmih-10345 .rbmih-10345-radio-group input[type="radio"]:focus + label {
    outline: 1px solid #000000;
    background: #5FC9BE;
    transition: all 0.1s ease;
    transform: scale(1.02);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Calculate Button */
#rbmih-10345 .rbmih-10345-button {
    display: block;
    width: 100%;
    margin-top: 40px;
    padding: 15px;
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
    background: #5FC9BE;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    top: 0;
    letter-spacing: 0.5px;
}

#rbmih-10345 .rbmih-10345-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background: #6DD8CD;
    letter-spacing: 1px;
}

#rbmih-10345 .rbmih-10345-button:active,
#rbmih-10345 .rbmih-10345-button.pressed {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: #54B4AA;
    transition: all 0.05s ease-in;
}

#rbmih-10345 .rbmih-10345-button:focus {
    outline: 2px solid #000000;
    outline-offset: 1px;
}

/* Info Text */
#rbmih-10345 .rbmih-10345-info-text {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
    text-align: center;
}

/* Results Section */
#rbmih-10345 .rbmih-10345-results {
    text-align: center;
    margin-top: 50px;
}

#rbmih-10345 .rbmih-10345-result-group {
    margin-bottom: 30px;
}

#rbmih-10345 .rbmih-10345-result-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #666666;
    text-align: center;
    margin-bottom: 15px;
}

#rbmih-10345 .rbmih-10345-result {
    font-size: 1.2em;
    font-weight: bold;
    color: #000000;
    margin-bottom: 20px;
}

/* Explanation section */
#rbmih-10345 .rbmih-10345-explanation {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    font-size: 0.9em;
    color: #666;
}

/* States */
#rbmih-10345 .rbmih-10345-error {
    color: #dc2626;
    font-size: 1.1em;
    font-weight: normal;
}

/* Loading Animation */
.rbmih-10345-button.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    opacity: 0.8;
}

.rbmih-10345-button.loading::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    top: 50%;
    left: 50%;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-top: 3px solid #000000;
    border-radius: 50%;
    animation: button-loading-spinner 1s linear infinite;
}

@keyframes button-loading-spinner {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 600px) {
    #rbmih-10345 {
        max-width: 100%;
        padding: 20px;
    }
    
    #rbmih-10345 .rbmih-10345-flex {
        flex-direction: column;
    }
}