/* Basic styling for the form */
/* Override styles for generate-contract page */
.contract-form-wrapper {
    display: block;
    flex-direction: initial; /* Reset flex-direction */
}
/* Center align the CTA title */
.cta-title {
    text-align: center;
    color: #000;

    font-family: Outfit;
    font-size: 30px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.cta-subtitle {
    text-align: center;
    color: #000;
    font-family: Outfit;
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.required {
    color: red;
}

p{
    text-align: center;
    font-family: Outfit;
    font-size: 18px;
    font-style: normal;
    line-height: normal;
    padding-top: 5px;
}

.basic-info p{
    text-align: left;
}

#contact-form {
    max-width: 600px;
    margin: 10px auto;
    padding: 20px;
    padding-top: 10px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Styling for form labels */
#contact-form label {
    color: #000;

    /* Header-Navbar */
    font-family: Outfit;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

/* Styling for the input and textarea fields */
#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="number"],
#contact-form input[type="float"],
#contact-form textarea {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 25px;
    background-color: #bcdafa;
    font-size: 16px;
    color: #333;
    box-sizing: border-box;
}

/* Responsive button styling */
#contact-form button[type="submit"] {
    width: 100%;
    padding: 12px 20px;
    font-family: Outfit;
    background-color: #5a7ecf;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Hover effect for the button */
#contact-form button[type="submit"]:hover {
    background-color: #2654c0;
}

/* Style for success message */
.contract-success {
    margin-top: 20px;
    padding: 15px;
    background-color: #d4edda; /* Light green */
    border: 1px solid #c3e6cb; /* Green border */
    border-radius: 5px;
    color: #155724; /* Dark green text */
    font-family: Outfit;
    text-align: center;
}
/* Style for the download link */
.contract-success a {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    background-color: #5a7ecf; /* Blue background */
    color: white; /* White text */
    text-decoration: none; /* Remove underline */
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s ease;
}
.contract-success a:hover {
    background-color: #2654c0; /* Blue background */
}

.contract-success h3 {
    margin: 0;
    font-size: 1.5em;
}

/* Style for error message */
.contract-error {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8d7da; /* Light red */
    border: 1px solid #f5c6cb; /* Red border */
    border-radius: 5px;
    color: #721c24; /* Dark red text */
    font-family: Outfit;
    text-align: center;
}

.contract-error h3 {
    margin: 0;
    font-size: 1.5em;
}

.basic-info {
    text-align: center;
    margin: 0 auto;
    width: 50%; /* Adjust as needed */
}

.basic-info h3{
    text-align: center;
    color: #000;

    font-family: Outfit;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.tooltip {
    display: inline-block;
    position: relative;
    cursor: pointer;
    font-size: 16px;
    color: white;
    background-color: black;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    border-radius: 50%;
    margin-left: 5px;
}
.tooltip .tooltip-text {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: left;
    padding: 10px;
    border-radius: 5px;
    position: absolute;
    z-index: 1;
    width: 300px;
    bottom: 125%; /* Position above the icon */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
/* Explicit styles for the bullet points */
.tooltip .tooltip-text ul {
    list-style-type: disc;
    margin: 10px 0;
    padding-left: 20px;
}

.tooltip .tooltip-text ul li {
    margin-bottom: 5px;
}

/* Style the checkbox container */
.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

/* Hide the default checkbox */
.per-watt-adder,
.flat-fee-adder {
    display: none;
}

/* Create a custom checkbox appearance */
.checkbox-container .custom-checkbox {
    min-width: 16px;
    height: 16px;
    border: 2px solid #5a7ecf;
    border-radius: 4px;
    background-color: #fff;
    margin-right: 15px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

/* Add a checkmark when checked */
.checkbox-container .custom-checkbox::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

/* Change appearance when checkbox is checked */
.per-watt-adder:checked + .custom-checkbox,
.flat-fee-adder:checked + .custom-checkbox {
    background-color: #5a7ecf;
    border-color: #2654c0;
}

.per-watt-adder:checked + .custom-checkbox::after,
.flat-fee-adder:checked + .custom-checkbox::after {
    opacity: 1;
}

/* Styling for the label text */
#contact-form .checkbox-label {
    font-family: Outfit;
    font-size: 18px;
    color: #333;
    cursor: pointer;
}

.custom-checkbox-field {
    text-align: left; /* Aligns the text to the left */
    margin-left: 0;   /* Optional: Removes any left margin */
    font-family: Outfit;
    font-size: 18px;
    font-style: normal;
    line-height: normal;
}

.radio-button{
    list-style-type: none;
    padding: 0;
    margin: 0;
    padding-bottom: 10px;
}

.total-per-watt {
    border: 2px solid black; /* Adjust thickness if needed */
    padding: 10px; /* Optional: Add some padding to prevent text from touching the border */
}

.collapsible-content {
    display: none; /* Hide by default */
    /* margin-left: 20px; */
}

.collapsible-toggle {
    cursor: pointer;
    font-weight: bold;
}
.collapsible-desc{
    font-weight: normal;
    color: #007BFF;
}

.collapsible-toggle::after {
    content: ' [+]';
    font-weight: normal;
    color: #007BFF;
}

.collapsible-toggle.active::after {
    content: ' [-]';
}

#expand-all-btn {
    padding: 6px 12px;
    font-size: 14px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-family: Outfit;
}

#expand-all-btn:hover {
    background-color: #0056b3;
}


/* Responsive design for smaller screens */
@media (max-width: 769px) {
    .basic-info {
        width: 80%; /* Adjust as needed */
        font-size: 15px;
    }

    .basic-info h3{
        font-size: 18px;
    }
    .cta-title{
        padding-top: 10px;
    }
    .cta-title{
        font-size: 20px;
    }
    .cta-subtitle {
        font-size: 8px;
    }
    p{
        text-align: center;
        font-family: Outfit;
        font-size: 12px;
        font-style: normal;
        line-height: normal;
    }
    #contact-form {
        padding: 15px;
    }

    #contact-form label {
        font-size: 14px;
    }

    #contact-form input[type="text"],
    #contact-form input[type="tel"],
    #contact-form input[type="email"],
    #contact-form textarea {
        font-size: 14px;
        padding: 8px 12px;
    }

    #contact-form button[type="submit"] {
        font-size: 16px;
    }
    .contract-success h3 {
        font-size: 1.2em;
    }
    /* Style for the download link */
    .contract-success a {
        display: inline-block;
        padding: 10px 20px;
        margin-top: 10px;
        border-radius: 4px;
        font-size: 0.9em;
    }
    .contract-error h3 {
        font-size: 1.2em;
    }

    #contact-form .checkbox-label {
        font-size: 14px;
    }

    .custom-checkbox-field {
        font-size: 14px;
    }
    #expand-all-btn {
        padding: 3px 6px;
        font-size: 10px;
        background-color: #007BFF;
        color: #fff;
        border: none;
        cursor: pointer;
        border-radius: 5px;
        font-family: Outfit;
    }

}
