/* Form fixes for Zoho CRM form */

/* Override Zoho default styles to match website design */
#crmWebToEntityForm {
    background-color: transparent !important;
    color: inherit !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#crmWebToEntityForm * {
    box-sizing: border-box !important;
}

/* Success message styling - hidden by default */
.wf_customMessageBox {
    font-family: inherit !important;
    color: #132C14 !important;
    background: #F5FAF5 !important;
    box-shadow: 0 2px 6px 0 rgba(0,0,0,0.25) !important;
    max-width: 90% !important;
    width: max-content !important;
    word-break: break-word !important;
    z-index: 11000 !important;
    border-radius: 6px !important;
    border: 1px solid #A9D3AB !important;
    min-width: 100px !important;
    padding: 10px 15px !important;
    display: none !important; /* Hidden by default */
    align-items: center !important;
    position: fixed !important;
    top: 80px !important;
    left: 50% !important;
    transform: translate(-50%, 0) !important;
}

/* Show message when display is set to block */
.wf_customMessageBox[style*="display: block"] {
    display: flex !important;
}

.wf_customCircle {
    position: relative !important;
    background-color: #12AA67 !important;
    border-radius: 100% !important;
    width: 20px !important;
    height: 20px !important;
    flex: none !important;
    margin-right: 7px !important;
}

.wf_customCheckMark {
    box-sizing: unset !important;
    position: absolute !important;
    transform: rotate(45deg) translate(-50%, -50%) !important;
    left: 6px !important;
    top: 9px !important;
    height: 8px !important;
    width: 3px !important;
    border-bottom: 2px solid #fff !important;
    border-right: 2px solid #fff !important;
}

/* Fix submit button height and prevent color change */
#formsubmit {
    height: auto !important;
    min-height: 48px !important;
    max-height: 60px !important;
    padding: 12px 24px !important;
    line-height: 1.5 !important;
    background-color: #C6E76C !important;
    color: #222 !important;
    border: none !important;
}

#formsubmit:hover {
    background-color: #b8d964 !important;
    color: #222 !important;
}

#formsubmit:focus,
#formsubmit:active {
    background-color: #C6E76C !important;
    color: #222 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Success message styling */
.form-success-message {
    text-align: center !important;
    padding: 60px 20px !important;
    animation: fadeIn 0.5s ease-in !important;
}

.form-success-message .success-icon {
    font-size: 80px !important;
    color: #4d6c77 !important;
    margin-bottom: 20px !important;
}

.form-success-message h3 {
    color: #4d6c77 !important;
    font-size: 28px !important;
    margin-bottom: 15px !important;
    font-weight: 600 !important;
}

.form-success-message p {
    color: #666 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin-bottom: 25px !important;
}

.submit-another-link {
    display: inline-block !important;
    color: #4d6c77 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border-bottom: 2px solid transparent !important;
    transition: border-color 0.3s ease !important;
}

.submit-another-link:hover {
    color: #3a535c !important;
    border-bottom-color: #3a535c !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure form doesn't overflow on mobile */
@media (max-width: 767px) {
    #formsubmit {
        padding: 10px 20px !important;
        font-size: 16px !important;
    }

    .wf_customMessageBox {
        top: 60px !important;
    }
}
