/* Custom Lead Capture Form Container */
#kl__form-container {
    padding: 30px !important;
    line-height: 1.5;
    text-align: left;
    width: 100%;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Custom Form Styles */
.kl-custom-form {
    transition: opacity 0.3s ease;
}

.kl-form-group {
    margin-bottom: 25px;
    position: relative;
}

.kl-form-group-btn {
    margin-top: 15px;
    margin-bottom: 5px;
}

/* Premium Inputs and Select Fields */
.kl-input-field {
    width: 100%;
    height: 50px;
    padding: 10px 15px !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #333333 !important;
    background-color: #f9f9f9 !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 6px !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.kl-input-field:focus {
    background-color: #ffffff !important;
    border-color: #292929 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02) !important;
}

/* Style select dropdown arrow */
.kl-select-field {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23292929' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 12px;
    cursor: pointer;
    padding-right: 40px !important;
}

/* Premium Submit Button */
button.kl-form__submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    background-color: #292929 !important;
    border: 2px solid #292929 !important;
    border-radius: 6px !important;
    padding: 14px 45px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: 0 4px 12px rgba(41, 41, 41, 0.15) !important;
    width: 100%;
    max-width: 250px;
    height: 50px;
}

button.kl-form__submit-button:hover:not(:disabled) {
    background-color: #000000 !important;
    border-color: #000000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;
}

button.kl-form__submit-button:active:not(:disabled) {
    transform: translateY(0) !important;
}

button.kl-form__submit-button:disabled {
    background-color: #cccccc !important;
    border-color: #cccccc !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    opacity: 0.7;
}

.btn-spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Error Message */
.kl-error-message {
    background-color: #fdf2f2;
    border-left: 4px solid #f05252;
    color: #c81e1e;
    padding: 12px 15px;
    border-radius: 4px;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: shake 0.4s ease-in-out;
}

/* Success Message Overlay */
.kl-success-message {
    padding: 20px 0;
    text-align: center;
}

.success-content {
    animation: fadeInUp 0.6s ease-in-out;
}

.success-content h4 {
    color: #292929;
    font-size: 26px;
    font-weight: 600;
    margin: 20px 0 10px 0;
}

.success-content p {
    color: #666666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.kl-reset-button {
    background-color: transparent;
    color: #292929;
    border: 1px dashed #292929;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kl-reset-button:hover {
    background-color: #292929;
    color: #ffffff;
    border-style: solid;
}

/* Premium CSS Checkmark Animation */
.success-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.success-checkmark {
    width: 80px;
    height: 80px;
}

.success-checkmark .check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid #4CAF50;
}

.success-checkmark .check-icon::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 120px;
    background: #ffffff;
    top: -16px;
    left: 48px;
    transform: rotate(-45deg);
    transform-origin: left top;
    border-radius: 0 120px 120px 0;
}

.success-checkmark .check-icon::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 120px;
    background: #ffffff;
    top: -26px;
    left: -24px;
    transform: rotate(45deg);
    transform-origin: left top;
    border-radius: 120px 0 0 120px;
}

.success-checkmark .check-icon .icon-line {
    height: 5px;
    background-color: #4CAF50;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.success-checkmark .check-icon .icon-line.line-tip {
    top: 46px;
    left: 19px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.success-checkmark .check-icon .icon-line.line-long {
    top: 38px;
    right: 14px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

.success-checkmark .check-icon .icon-circle {
    top: -4px;
    left: -4px;
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(76, 175, 80, 0.2);
    box-sizing: content-box;
    z-index: 2;
}

.success-checkmark .check-icon .icon-fix {
    top: 8px;
    left: 26px;
    width: 5px;
    height: 60px;
    position: absolute;
    z-index: 1;
    transform: rotate(-45deg);
}

/* Animations */
@keyframes icon-line-tip {
    0% {
        width: 0;
        left: 1px;
        top: 19px;
    }

    54% {
        width: 0;
        left: 1px;
        top: 19px;
    }

    70% {
        width: 50px;
        left: -8px;
        top: 37px;
    }

    84% {
        width: 17px;
        left: 21px;
        top: 48px;
    }

    100% {
        width: 25px;
        left: 19px;
        top: 46px;
    }
}

@keyframes icon-line-long {
    0% {
        width: 0;
        right: 46px;
        top: 54px;
    }

    65% {
        width: 0;
        right: 46px;
        top: 54px;
    }

    84% {
        width: 55px;
        right: 0px;
        top: 35px;
    }

    100% {
        width: 47px;
        right: 14px;
        top: 38px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* Responsive Overrides */
@media (max-width: 767px) {
    #kl__form-container {
        padding: 20px !important;
        box-shadow: none;
        border: 1px solid #eeeeee;
    }

    .kl-form-group {
        margin-bottom: 18px;
    }

    button.kl-form__submit-button {
        max-width: 100%;
    }
}

select.form-control:not([size]):not([multiple]) {
    height: calc(3.25rem + 2px);
}
