/**
 * MRMC Quote Calculators - Shared Styles
 * Used by Cinebot Nano Arm and Motion Control Accessories calculators
 */

/* Form container */
.footer__form {
    margin-bottom: 50px;
}

.gform_required_legend {
    color: #fff;
}

/* Robot dropdown styling */
.gform_wrapper.gravity-theme .gfield.robot-dropdown {
    padding-left: 0;
    margin-bottom: 30px;
}

.gform_wrapper.gravity-theme .gfield.robot-dropdown label {
    font-family: "URW DIN Cond", sans-serif;
    text-transform: uppercase;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 3px;
}

/* Category field labels */
.gform_wrapper.gravity-theme .gfield:not(.gfield--input-type-radio) legend {
    font-family: "URW DIN Cond", sans-serif;
    text-transform: uppercase;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 3px;
}

/* Checkbox labels */
.gform_wrapper.gravity-theme .gfield:not(.gfield--type-text):not(.gfield--type-select):not(.gfield--input-type-email) label {
    color: #fff;
    background: none!important;
    -webkit-text-fill-color: initial!important;
}

/* Checkbox field spacing */
.gform_wrapper.gravity-theme .gfield--type-checkbox {
    margin-bottom: 30px;
}

.gform_wrapper.gravity-theme .gfield_checkbox .gchoice {
    float: none;
}

/* Disabled checkbox styling */
.gform_wrapper.gravity-theme .gfield_checkbox .gchoice.disabled .checkbox {
    border: 1px solid #969696;
}

.gform_wrapper.gravity-theme .gfield_checkbox .gchoice.disabled .gform-field-label {
    color: #969696 !important;
}

/* Hidden product styling (incompatible with selected robot) */
.gform_wrapper.gravity-theme .gfield_checkbox .gchoice.hidden-product {
    display: none !important;
}

/* Privacy text */
.gform_wrapper.gravity-theme .form__copy.tc {
    border-top: 1px solid;
    padding-top: 30px;
}

/* Info icon for product details */
.gform_wrapper.gravity-theme .gfield-choice-info {
    display: inline-block;
    margin-left: 8px;
    cursor: pointer;
    color: #FF6335;
    font-size: 14px;
}

.gform_wrapper.gravity-theme .gfield-choice-info:hover {
    color: #FF2171;
}

/* Form footer */
.gform_wrapper.gravity-theme .gform_page_footer.top_label {
    margin-top: 40px;
    margin-bottom: 30px;
}

/* Submit button */
.gform_wrapper.gravity-theme .gform_button[type="submit"] {
    margin-left: 20px;
    margin-top: 0;
    margin-bottom: 0;
}

/* HTML fields */
.gform_wrapper.gravity-theme .gfield--type-html {
    padding-left: 0;
    padding-right: 0;
}

/* Confirmation message */
.gform_confirmation_message {
    color: #fff;
}

.gfield_description {
    color: #f6f5fc;
    margin-top: 10px;
    font-style: italic;
}

/* ============================================
   Product Info Popup Modal
   ============================================ */
.nano-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
}

.nano-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000000;
}

.nano-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.nano-popup-close:hover {
    color: #000;
}

.nano-popup h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.nano-popup img {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

/* ============================================
   Accessories Calculator - Category Sections
   ============================================ */

/* Empty category message */
.accessories-calculator .category-empty-message {
    color: #969696;
    font-style: italic;
    padding: 10px 0;
}

/* ============================================
   Totals Display
   ============================================ */
.calculator-totals {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.calculator-totals .total-line {
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 18px;
    color: #000;
}

.calculator-totals .total-line:last-child {
    margin-bottom: 0;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .nano-popup {
        width: 90%;
        padding: 20px;
    }

    .gform_wrapper.gravity-theme .gfield:not(.gfield--input-type-radio) legend {
        font-size: 22px;
    }
}
