/*---------------------------------------------------------------------------------

 Theme Name:   Cultidev
 Theme URI:    https://cultidev.co.za/
 Description:  Cultidev Divi Child Theme
 Author:       Cultidev (Pty) Ltd
 Author URI:   https://cultidev.co.za/
 Template:     Divi
 Version:      1.1.3
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

------------------------------ ADDITIONAL CSS HERE ------------------------------*/

.et-cart-info{
	display: none;
}
/* Step Form Styling*/
body .gform_wrapper .gform_body .gform_fields .gfield .name_first input, body .gform_wrapper .gform_body .gform_fields .gfield .name_last input, body .gform_wrapper .gform_body .gform_fields .gfield .ginput_container_email input, .ginput_container.ginput_container_phone input, .ginput_container.ginput_container_text input, .ginput_container.ginput_container_select select, .ginput_container.ginput_container_number input, body .gform_wrapper .gform_body .gform_fields .gfield .ginput_container_textarea textarea {
	border: 1px solid #c0c3c4 !important;
	border-radius: 5px;
}

body .gform_wrapper .gfield_label.gform-field-label.gfield_label_before_complex, body .gform_wrapper .gform_body .gform_fields .gfield label {
	color: black;
	font-family: Rubik;
}

body .gform_wrapper .gform_body .gform_page_footer .gform_next_button, body .gform_wrapper .gform_body .gform_page_footer .gform_previous_button, body .gform_wrapper .gform_body .gform_page_footer .gform_button {
	border: 1px solid white;
	background: linear-gradient(90deg,#d00000 20%,#ff1a1a 100%) !important;
	color: white !important;
	font-family: Rubik !important;
    width: 15% !important;
	border-radius: 5px;
}

@media screen and (max-width: 980px){
	body #gform_wrapper_2 .gform_body .gform_page_footer .gform_next_button, body #gform_wrapper_2 .gform_body .gform_page_footer .gform_previous_button, body #gform_wrapper_2 .gform_body .gform_page_footer .gform_button {
	border: 1px solid white;
	background: linear-gradient(90deg,#d00000 20%,#ff1a1a 100%) !important;
	color: white !important;
	font-family: Rubik !important;
    width: 35% !important;
	border-radius: 5px;
}
}
@media screen and (max-width: 980px){
.button.gform_button_select_files.gform-theme-button.gform-theme-button--control{
	border: 1px solid white;
	background: linear-gradient(90deg,#d00000 20%,#ff1a1a 100%) !important;
	color: white !important;
	font-family: Rubik !important;
    width: 45% !important;
	border-radius: 5px
}	
}
.button.gform_button_select_files.gform-theme-button.gform-theme-button--control{
	border: 1px solid white;
	background: linear-gradient(90deg,#d00000 20%,#ff1a1a 100%) !important;
	color: white !important;
	font-family: Rubik !important;
    width: 25% !important;
	border-radius: 5px
}
.gform-theme--framework .gfield:where(.gfield--type-fileupload,.gfield--input-type-fileupload) .gform_drop_area::before{
	color: #ff3e3f;
}
body #gform_wrapper_2 .gf_progressbar_wrapper .gf_progressbar .gf_progressbar_percentage, body #gform_wrapper_6 .gf_progressbar_wrapper .gf_progressbar .gf_progressbar_percentage {
	background: linear-gradient(90deg,#d00000 20%,#ff1a1a 100%) !important;
}

/* Form Styling */

.gform-theme--foundation .gform_fields{
	row-gap: 10px !important;
}
/* 1. INPUT BOX BORDERS: White border and rounded corners */
body #gform_wrapper_1 .ginput_container input, 
body #gform_wrapper_7 .ginput_container input, 
body #gform_wrapper_9 .ginput_container input, 
body #gform_wrapper_1 .ginput_container textarea, 
body #gform_wrapper_7 .ginput_container textarea,
body #gform_wrapper_9 .ginput_container textarea {
    border: 1px solid white !important;
    border-radius: 5px !important;
    background-color: white; 
    color: black;
    /* Reduced Padding and Margin */
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    margin-top: 0px !important;
    margin-bottom: 5px !important;
}

/* 2. LABELS: White text and Rubik font */
body #gform_wrapper_1 .gfield_label, 
body #gform_wrapper_7 .gfield_label,
body #gform_wrapper_9 .gfield_label,
body #gform_wrapper_1 .gform-field-label,
body #gform_wrapper_7 .gform-field-label,
body #gform_wrapper_9 .gform-field-label {
    color: white !important;
    font-family: 'Rubik', sans-serif !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important; /* Tightens space between label and input */
}

/* 3. SUBMIT BUTTON: White background, Black text, FULL WIDTH */
body #gform_wrapper_1 .gform_footer input[type=submit],
body #gform_wrapper_7 .gform_footer input[type=submit],
body #gform_wrapper_9 .gform_footer input[type=submit],
body #gform_wrapper_7 .gform_footer button[type=submit],
body #gform_wrapper_9 .gform_footer button[type=submit] {
    border: 1px solid white !important;
    background: white !important;
    color: black !important;
    font-family: 'Rubik', sans-serif !important;
    width: 100% !important; /* Changed from 35% to 100% */
    font-weight: 700 !important;
    cursor: pointer;
    padding: 12px 0 !important;
}
body .gform_wrapper .gform_footer input[type=submit] {
	border: 1px solid white;
	background: linear-gradient(90deg,#d00000 20%,#ff1a1a 100%);
	color: white !important;
	font-family: Rubik !important;
	width: 35% !important;
}

/* Finance Calculator Styling */
body {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    color: #333;
    margin: 0;
    padding: 0;
}

.paymentCalc {
    padding: 15px;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

#loanCalc {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}

.cd_form_sec {
    padding: 10px;
    margin-bottom: 10px;
}

.cd_form_sec label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 400;
}

.cd_form_sec:has(#intRate) {
    margin-bottom: 5px;
}

.cd_field, .cd_field_term, .cd_range {
    border: 1px solid #bbb;
    border-radius: 5px;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    font-size: 16px;
}

.cd_field_term {
    height: 40px;
}

.cd_range {
    padding: 0;
    cursor: pointer;
    height: 10px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
}

.cd_range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #000;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    margin-top: -4px;
}

.cd_range::-webkit-slider-thumb:hover {
    background: #333;
    transform: scale(1.1);
}

.cd_range::-webkit-slider-runnable-track {
    height: 10px;
    background: #ddd;
    border-radius: 5px;
}

.cd_range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #000;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cd_range::-moz-range-thumb:hover {
    background: #333;
    transform: scale(1.1);
}

.cd_range::-moz-range-track {
    height: 10px;
    background: #ddd;
    border-radius: 5px;
}

#intRateValue {
    display: block;
    text-align: center;
    margin-top: 2px;
    font-size: 14px;
    color: #333;
}

.calcBtn {
    display: block;
    color: #fff;
    text-align: center;
    padding: 12px 20px;
    margin: 20px auto 0;
    width: 100%;
    max-width: 200px;
    background: #000;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.calcBtn:hover {
    background: #333;
}

#errorMessages {
    color: #d00000;
    text-align: center;
    margin-top: 10px;
    min-height: 24px;
    font-size: 14px;
}

#paymentResults {
    display: none;
    background: linear-gradient(90deg, #d00000 20%, #ff1a1a 100%);
    padding: 30px 20px;
    border: 1px solid #e31837;
    border-radius: 5px;
    margin: 35px auto; /* Center the 80% width */
    width: 80%; /* Set to 80% width */
    box-sizing: border-box;
    text-align: center;
}

#paymentResults h1, #paymentResults h3 {
    color: #fff;
    margin: 0;
}

#paymentResults h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

#paymentResults h3 {
    font-size: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .paymentCalc, #paymentResults {
        padding: 15px;
        width: 100%; /* Full-width on mobile for both */
    }

    #paymentResults {
        padding: 20px;
    }
}
/* form styling END*/