.elementor-5936 .elementor-element.elementor-element-6d5e3e7a:not(.elementor-motion-effects-element-type-background), .elementor-5936 .elementor-element.elementor-element-6d5e3e7a > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-image:url("https://www.titanmetalfinishing.com/wp-content/uploads/2024/05/Titan-v2_01-scaled.jpg");background-position:center center;background-repeat:no-repeat;background-size:cover;}.elementor-5936 .elementor-element.elementor-element-6d5e3e7a > .elementor-container{min-height:42vh;}.elementor-5936 .elementor-element.elementor-element-6d5e3e7a{transition:background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;}.elementor-5936 .elementor-element.elementor-element-6d5e3e7a > .elementor-background-overlay{transition:background 0.3s, border-radius 0.3s, opacity 0.3s;}.elementor-widget-heading .elementor-heading-title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );color:var( --e-global-color-primary );}.elementor-5936 .elementor-element.elementor-element-5819c9a1 > .elementor-widget-container{margin:4% 0% 0% 0%;}.elementor-5936 .elementor-element.elementor-element-5819c9a1{text-align:center;}.elementor-5936 .elementor-element.elementor-element-5819c9a1 .elementor-heading-title{font-family:"Montserrat", Sans-serif;font-size:4.3vw;font-weight:700;text-transform:uppercase;line-height:1em;color:#FFFFFF;}.elementor-5936 .elementor-element.elementor-element-faead3d{--display:flex;}.elementor-5936 .elementor-element.elementor-element-faead3d:not(.elementor-motion-effects-element-type-background), .elementor-5936 .elementor-element.elementor-element-faead3d > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#FFFFFF;}.elementor-5936 .elementor-element.elementor-element-ac1f7c0{--spacer-size:50px;}.elementor-5936 .elementor-element.elementor-element-dfef9d9{text-align:center;}.elementor-5936 .elementor-element.elementor-element-dfef9d9 .elementor-heading-title{font-family:"Montserrat", Sans-serif;font-size:20px;font-weight:700;line-height:1.3em;color:var( --e-global-color-fab3f11 );}body.elementor-page-5936{margin:0px 0px 0px 0px;}@media(min-width:768px){.elementor-5936 .elementor-element.elementor-element-faead3d{--width:50%;}}@media(max-width:1024px){.elementor-5936 .elementor-element.elementor-element-6d5e3e7a > .elementor-container{min-height:75vh;}}@media(max-width:767px){.elementor-5936 .elementor-element.elementor-element-5819c9a1 .elementor-heading-title{font-size:6.2vw;}.elementor-5936 .elementor-element.elementor-element-dfef9d9 .elementor-heading-title{font-size:36px;}}/* Start custom CSS for html, class: .elementor-element-e1ddc5b *//* Elementor-specific overrides */
.elementor-widget-container .calculator {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto;
    padding: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.elementor-widget-container .calculator form {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 20px;
}

/* Calculator base */
.calculator {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}


/* Form container */
.calculator form {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Input groups */
.calculator .input-group {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 1px;
    position: relative;
}

.calculator .input-group label {
    display: block;
    color: #2d3748;
    font-size: 17px;
    margin-bottom: 8px;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.2s ease;
}

/* Input fields */
.calculator input[type="number"] {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 12px 16px !important;
    height: 40px !important;
    min-height: 40px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 17px !important;
    color: #2d3748 !important;
    background: #fff !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    line-height: normal !important;
    transition: all 0.2s ease !important;
}

.calculator input[type="number"]:focus {
    border-color: #a4224e !important;
    box-shadow: 0 0 0 3px rgba(164, 34, 78, 0.1) !important;
    outline: none !important;
}

/* Results */
.calculator .result {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 12px 16px !important;
    height: 50px !important;
    min-height: 50px !important;
    border: 1px solid #cbd5e0 !important;
    border-radius: 8px !important;
    background: #f7fafc !important;
    font-size: 20px !important;
    color: #1a202c !important;
    font-weight: 600 !important;
    line-height: 26px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.04) !important;
    margin: 0 !important;
    position: relative !important;
    padding-left: 24px !important;
}

.calculator .result::before {
    content: '';
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 6px !important;
    background: #a4224e !important;
    border-radius: 8px 0 0 8px !important;
}

.calculator .input-group:has(.result) label {
    color: #2d3748 !important;
    font-weight: 700 !important;
    font-size: 17px !important;
    margin-bottom: 8px !important;
    position: relative !important;
    padding-left: 24px !important;
}

.calculator .input-group:has(.result) label::before {
    content: '↳';
    position: absolute !important;
    left: 0 !important;
    color: #a4224e !important;
    font-weight: bold !important;
    font-size: 20px !important;
}

/* Result group specific */
.calculator .input-group:has(.result) {
    grid-column: span 2;
    margin-top: 20px;
}

/* Error messages */
.calculator .error-message {
    grid-column: span 2;
    background: #fff5f5;
    border: 2px solid #fc8181;
    color: #c53030;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.calculator .input-error {
    color: #c53030;
    font-size: 14px;
    margin-top: 6px;
    display: none;
    padding-left: 4px;
}

/* Button container */
.calculator .button-container {
    grid-column: span 2;
    width: 100%;
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Buttons */
.calculator .calculate-btn,
.calculator .reset-btn {
    width: 100% !important;
    padding: 16px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.2s ease !important;
}

.calculator .calculate-btn {
    background-color: #a4224e !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(164, 34, 78, 0.2) !important;
}

.calculator .calculate-btn:hover {
    background-color: #8e1d44 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px rgba(164, 34, 78, 0.3) !important;
}

.calculator .reset-btn {
    background-color: #f7fafc !important;
    color: #4a5568 !important;
    border: 2px solid #e2e8f0 !important;
}

.calculator .reset-btn:hover {
    background-color: #edf2f7 !important;
    border-color: #cbd5e0 !important;
}

/* Loading spinner */
.calculator .loading-spinner {
    display: none;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #a4224e;
    border-radius: 50%;
    margin: 24px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive styles */
@media (max-width: 1024px) {
    .elementor-widget-container .calculator,
    .calculator {
        padding: 30px;
    }
    
    .elementor-widget-container .calculator form,
    .calculator form {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .calculator form {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .calculator h1 {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .calculator .button-container {
        grid-template-columns: 1fr;
    }

    .calculator .input-group:has(.result) {
        grid-column: span 1;
    }

    .calculator .error-message {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .calculator {
        padding: 20px 16px;
    }

    .calculator h1 {
        font-size: 24px;
    }

    .calculator form {
        padding: 0 10px;
    }

    .calculator .input-group label {
        font-size: 16px;
    }

    .calculator input[type="number"],
    .calculator .result {
        height: 46px !important;
        min-height: 46px !important;
        font-size: 16px !important;
    }
}/* End custom CSS */