/* Base Container Styles */
#cc-20134-1 {
    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);
}

/* Typography */
#cc-20134-1 h2,
#cc-20134-1 h3,
#cc-20134-1 legend,
#cc-20134-1 label,
#cc-20134-1 .cc-20134-1-input,
#cc-20134-1 .cc-20134-1-button,
#cc-20134-1 .cc-20134-1-results-title,
#cc-20134-1 .cc-20134-1-result-label,
#cc-20134-1 .cc-20134-1-result,
#cc-20134-1 .cc-20134-1-error-container,
#cc-20134-1 .cc-20134-1-watermark {
    font-family: "Roboto", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Headers */
#cc-20134-1 h2 {
    text-align: center;
    font-size: 1.8em;
    margin-top: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 0px;
}

#cc-20134-1 h3 {
    text-align: center;
    font-size: 1.3em;
    color: #666;
    margin-top: 0px;
    margin-bottom: 40px;
}

/* Fieldset and Legend */
#cc-20134-1 fieldset {
    border: none;
    padding: 5px 0;
    margin: 0;
    margin-bottom: 25px;
}

#cc-20134-1 legend {
    padding: 0;
    margin: 0;
    font-weight: bold;
    color: #333;
    font-size: 0.9em;
}

/* Flex Containers */
#cc-20134-1 .cc-20134-1-flex {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

#cc-20134-1 .cc-20134-1-flex fieldset {
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing */
}

/* Make inputs same width in their containers */
#cc-20134-1 .cc-20134-1-flex .cc-20134-1-input {
    width: 100%;
    min-width: 0;
}

#cc-20134-1 .cc-20134-1-flex-item {
    flex: 1;
}

/* Form Inputs */
#cc-20134-1 .cc-20134-1-input {
    width: 100%;
    padding: 13px 15px;
    font-size: 1em;
    color: #333;
    border: 1px solid #CCC;
    border-radius: 5px;
    box-sizing: border-box;
    text-align: center;
    height: auto;
}

#cc-20134-1 .cc-20134-1-input:focus {
    border: 1px solid #0056b3;
    outline: none;
    background-color: #f0f8ff;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2);
}

#cc-20134-1 .cc-20134-1-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 Styling */
#cc-20134-1 .cc-20134-1-radio-group {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

#cc-20134-1 .cc-20134-1-radio-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

#cc-20134-1 .cc-20134-1-radio-group input[type="radio"] + label {
    padding: 15px;
    background: #e0e0e0;
    border: 1px solid #b7b7b7;
    border-radius: 5px;
    color: #000000;
    font-weight: bold;
    font-size: 0.9em;
    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);
}

#cc-20134-1 .cc-20134-1-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);
}

#cc-20134-1 .cc-20134-1-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);
}

#cc-20134-1 .cc-20134-1-radio-group input[type="radio"]:focus + label,
#cc-20134-1 .cc-20134-1-radio-group input[type="radio"]:focus-visible + 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 */
#cc-20134-1 .cc-20134-1-button {
    display: block;
    width: 100%;
    margin-top: 40px;
    padding: 15px;
    font-size: 1.2em;
    font-weight: bold;
    background: #5FC9BE;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.1s ease-out;
    position: relative;
    top: 0;
}

#cc-20134-1 .cc-20134-1-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background: #6DD8CD;
}

#cc-20134-1 .cc-20134-1-button:active,
#cc-20134-1 .cc-20134-1-button.pressed {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: #54B4AA;
    transition: all 0.05s ease-in;
}

#cc-20134-1 .cc-20134-1-button:focus {
    outline: 2px solid #000000;
    outline-offset: 1px;
}

/* Results Section */
#cc-20134-1 .cc-20134-1-results {
    text-align: center;
    margin-top: 40px;
}

#cc-20134-1 .cc-20134-1-results-title {
    font-size: 1.2em;
    font-weight: 500;
    color: #333;
    text-align: center;
    margin-bottom: 40px !important;
}

#cc-20134-1 .cc-20134-1-result-label {
    font-size: 1.1em;
    font-weight: bold;
    color: #848884;
    margin-bottom: 10px;
}

#cc-20134-1 .cc-20134-1-result {
    font-size: 1.3em;
    font-weight: bold;
    color: #000000;
    padding-top: 4px;
    padding-bottom: 40px;
}

/* Goal Explanation Section */
#cc-20134-1 .cc-20134-1-goal-explanation {
    margin-top: 0px;
    padding: 0px;
    border-radius: 0px;
}

#cc-20134-1 .cc-20134-1-goal-explanation p {
    margin-left: 60px;
    margin-right: 60px;
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

/* Error Container */
#cc-20134-1 .cc-20134-1-error-container {
    color: red;
    font-size: 0.9em;
    margin-top: 0px;
    text-align: center;
}

/* Watermark */
#cc-20134-1 .cc-20134-1-watermark {
    text-align: right;
    margin-top: 20px;
    font-size: 0.8em;
    color: #555;
}

#cc-20134-1 .cc-20134-1-watermark a {
    color: #0078d4;
    text-decoration: none;
    font-weight: bold;
}

#cc-20134-1 .cc-20134-1-watermark a:hover {
    text-decoration: underline;
}

/* Loading State */
.cc-20134-1-button.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    opacity: 0.8;
}

.cc-20134-1-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;
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 100;
    padding: 10px 15px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 1.5em;
    border-radius: 5px;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.3s, transform 0.3s ease-in-out;
}

.skip-link:focus {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframes */
@keyframes button-loading-spinner {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Height Imperial Fields */
#cc-20134-1 #height-imperial .cc-20134-1-flex {
    gap: 10px;
}

#cc-20134-1 #height-imperial .cc-20134-1-flex-item {
    flex: 1;
}

/* Responsive Styles */
@media (max-width: 600px) {
    #cc-20134-1 {
        max-width: 100%;
        padding: 20px;
    }
    
    #cc-20134-1 .cc-20134-1-input {
        padding: 12px 8px;
        font-size: 0.9em;
    }
    
    #cc-20134-1 .cc-20134-1-radio-group input[type="radio"] + label {
        padding: 12px 8px;
        font-size: 0.75em;
    }
}