/* Lead Form Styles */
.lead-form-container { 
    background: #fff; 
    width: 37.0625rem;
    max-width: 37.0625rem;
    flex-shrink: 0;
    position: relative;
    border-radius: 1.25rem;
    font-family: "Fedra Sans Alt Pro", sans-serif;
    font-weight: 300;
}

.lead-form-container .lead-form-content {
    background: #EFEFEF;
    border-radius: 1.25rem;
}

.lead-form-container .lead-form-content input[type="text"],
.lead-form-container .lead-form-content input[type="email"],
.lead-form-container .lead-form-content input[type="tel"],
.lead-form-container .lead-form-content select {
    width: 100%;
    padding: 0.5rem 1.5rem;
    border: none;
    background: #DCDCDC;
    color: #000;
    font-family: "Fedra Sans Alt Pro", sans-serif;
    font-size: 1rem;
    font-weight: 300;
    border-radius: 0.5rem;
    box-sizing: border-box;
    height: 3rem;
}

.lead-form-container .lead-form-content select {
     appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23333" d="M1.41 0.29L6 4.88l4.59-4.59L12 1.71 6 7.71 0 1.71z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 12px !important;
}

.lead-form-container .lead-form-content input.full-width {
    width: 100%;
    margin-bottom: 0.5rem;
}

.lead-form-container .lead-form-content input::placeholder,
.lead-form-container .lead-form-content select::placeholder {
    color: #000;
    opacity: 1;
}

.lead-form-container .lead-form-content .input-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.lead-form-container .lead-form-content .input-row input,
.lead-form-container .lead-form-content .input-row select {
    flex: 1;
}

.lead-form-container .lead-form-content .phone-group {
    display: flex;
    border-radius: 0.5rem;
    overflow: hidden;
    height: 3rem;
    gap: 0.5rem;
    flex: 1.185;
}

.lead-form-container .lead-form-content .phone-group select.phone-prefix-select {
    flex: 0 0 6.5rem;
    max-width: 6.5rem;
    padding: 0.5rem 1.5rem;
    background: #DCDCDC;
    color: #000;
    font-family: "Fedra Sans Alt Pro", sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.25rem;
    height: 3rem;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M70 95L30 55h80z' fill='%23000'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem 1.25rem;
}

.lead-form-container .lead-form-content .phone-group input.phone-number-input {
    flex: 1;
    border: none !important;
    background: #DCDCDC !important;
    padding: 0.5rem 1.5rem !important;
    margin: 0 !important;
    height: 3rem;
    width: 13rem;
    font-size: 1rem;
    font-family: "Fedra Sans Alt Pro", sans-serif;
    font-weight: 300;
    line-height: 1.25rem;
}

.lead-form-container .lead-form-content input[type="checkbox"] {
    width: 1rem !important;
    height: 1rem !important;
    padding: 0 !important;
    margin-right: 0.625rem !important;
}

.lead-form-container select.lead-country-select:hover,
.lead-form-container .phone-group select.phone-prefix-select:hover,
.lead-form-container .lead-form-content input[type="checkbox"]:hover {
    cursor: pointer !important;
}

.lead-form-container .lead-form-content label {
    display: flex;
    margin-bottom: 1rem;
    font-family: "Fedra Sans Alt Pro", sans-serif;
    font-size: 1rem;
    color: #000;
    font-weight: 300;
    gap: 0;
}

.lead-form-container .lead-form-content label:first-of-type {
    margin-top: 0.9rem;
}

.lead-form-container .lead-form-content label:last-of-type {
    margin-bottom: 1.5rem;
}

.lead-form-container .lead-form-content .privacy {
    color: #000 !important;
    text-decoration: underline !important;
    font-family: "Fedra Sans Alt Pro", sans-serif;
    font-weight: 300;
}

.lead-form-container .lead-form-content .privacy:hover {
    color: #888 !important;
    transition: color 0.3s ease;
    font-family: "Fedra Sans Alt Pro", sans-serif;
    font-weight: 300;
}

.lead-form-container .lead-form-content .button-message-container {
    display: flex;
    align-items: center;
    justify-content: left;
    position: relative;
    width: 26rem;
    height: 3rem;
    margin-top: 1rem;
	margin-bottom: 0.5rem;
}

.lead-form-container .lead-form-content button {
    width: 12rem;
    height: 3.25rem;
    padding: 0.88rem 3rem;
    font-family: "Fedra Sans Alt Pro", sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.25rem;
    border: 0.125rem solid #000;
    background: #fff;
    color: #000;
    border-radius: 2rem;
    cursor: pointer;
    text-align: center;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease, visibility 0.3s ease, opacity 0.3s ease;
}

.lead-form-container .lead-form-content button:hover {
    background: #000;
    color: #fff;
}

.lead-form-container .lead-form-content button:disabled {
    background: #cccccc !important;
    color: #666666 !important;
    border-color: #cccccc !important;
    cursor: not-allowed !important;
}

.lead-form-container .lead-form-content button.hidden {
    visibility: hidden;
    opacity: 0;
}

.lead-form-container .lead-form-content .form-message {
    display: none;
    width: 12rem;
    max-width: 12rem;
    height: 3rem;
    padding: 0.88rem 2rem;
    font-family: "Fedra Sans Alt Pro", sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.25rem;
    text-align: center;
    border-radius: 2rem;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    border: 0.125rem solid #000;
    background: #fff;
    color: #000;
}

.lead-form-container .lead-form-content .form-message.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lead-form-container .lead-form-content .form-message.success {
    border: 0.125rem solid #205B2D;
    background: #E6F0E8;
    width: 23rem;
    max-width: 23rem;
}

.lead-form-container .lead-form-content .form-message.success .message-content {
    color: #205B2D;
    line-height: 1.25rem;
}

.lead-form-container .lead-form-content .form-message.error {
    display: flex;
    border: 0.125rem solid #99182C;
    background: #F8E6E9;
    width: 23rem;
    max-width: 23rem;
}

.lead-form-container .lead-form-content .form-message.error .message-content {
    color: #99182C;
    line-height: 1.25rem;
}

.lead-form-container .lead-form-content .input-row .country-group {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

@media (max-width: 921px) {
    .lead-form-container {
        width: 100%;
        margin: 0;
        border-radius: 0.625rem;
    }
	
	.lead-form-container .lead-form-content input[type="checkbox"] {
		width: 1rem !important;
		height: 1rem !important;
		padding: 0 !important;
		margin-right: 0.625rem !important;
		margin-top:0.15rem;
	}

    .lead-form-container .lead-form-content {
        border-radius: 0.625rem;
    }

    .lead-form-container .lead-form-content .input-row {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .lead-form-container .lead-form-content .input-row .country-group {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .lead-form-container .lead-form-content .input-row .country-group .lead-country-select {
        max-width: 9rem;
        align-items: center;
        line-height: 1rem;
        padding-right: 2.5rem;
    }

    .lead-form-container .lead-form-content input[type="text"],
    .lead-form-container .lead-form-content input[type="email"],
    .lead-form-container .lead-form-content input[type="tel"],
    .lead-form-container .lead-form-content select {
        width: 100%;
        padding: 0.88rem 1.5rem;
        font-size: 1rem;
        height: 3rem;
    }

    .lead-form-container .lead-form-content input.full-width {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .lead-form-container .lead-form-content .phone-group {
        flex-direction: row;
        align-items: stretch;
        height: 3rem;
    }

    .lead-form-container .lead-form-content .phone-group select.phone-prefix-select {
        flex: 0 0 6.5rem;
        max-width: 6.5rem;
        padding: 0.88rem 1.5rem;
		margin:0!important;
        padding-right: 2rem;
        background-position: right 1rem center;
        background-size: 1rem 1rem;
        height: 3rem !important;
    }

    .lead-form-container .lead-form-content .phone-group input.phone-number-input {
        flex: 1;
        padding: 1.009rem 1.5rem !important;
        height: 3rem !important;
        font-size: 1rem !important;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .lead-form-container .lead-form-content label {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .lead-form-container .lead-form-content label:first-of-type {
        margin-top: 0;
    }

    .lead-form-container .lead-form-content label:last-of-type {
        margin-bottom: 1.5rem;
		width: 16rem;
    }

    .lead-form-container .lead-form-content .button-message-container {
        width: 100%;
        max-width: 12rem;
        height: 3rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 1rem auto;
        position: relative;
    }

    .lead-form-container .lead-form-content button {
        width: 100%;
        max-width: 12rem;
        height: 3.25rem;
        padding: 0.88rem 3rem;
        border-radius: 2rem;
        background: #000;
        color: #fff;
        border: 2px solid #000;
        margin: 1rem auto;
    }

    .lead-form-container .lead-form-content button:hover {
        background: #fff;
        color: #000;
    }

    .lead-form-container .lead-form-content .form-message {
        width: 100%;
        max-width: 12rem;
        height: 3rem;
        padding: 0.88rem 1.5rem;
        font-family: "Fedra Sans Alt Pro", sans-serif;
        font-size: 1rem;
        font-weight: 300;
        line-height: 1.25rem;
        text-align: center;
        border-radius: 2rem;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        display: none;
        transition: opacity 0.3s ease;
        border: 0.125rem solid #000;
        background: #fff;
        color: #000;
    }

    .lead-form-container .lead-form-content .form-message.active {
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 1;
    }

    .lead-form-container .lead-form-content .form-message.success {
        border: 0.125rem solid #205B2D;
        background: #E6F0E8;
        width: 20rem;
        max-width: 20rem;
        left: -33.5%;
    }

    .lead-form-container .lead-form-content .form-message.success .message-content {
        color: #205B2D;
        line-height: 1.25rem;
    }

    .lead-form-container .lead-form-content .form-message.error {
        display: flex;
        border: 0.125rem solid #99182C;
        background: #F8E6E9;
        width: 20rem;
        max-width: 20rem;
        left: -33.5%;
    }

    .lead-form-container .lead-form-content .form-message.error .message-content {
        color: #99182C;
        line-height: 1.25rem;
    }
}

/* Ensure no interference with custom-contact-form tabs */
.custom-contact-form-container .tabs {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.custom-contact-form-container .tabs a {
    color: #000 !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: inline-block !important;
}