@import url('https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght@100..900&display=swap');
/* CF7 OTP Verification Styles */

/* Main container */
#cf7-otp-container {
    /* max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); */
    font-family: "Kumbh Sans", sans-serif;
}

/* Progress indicator */
.otp-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.otp-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    right: 20%;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 1;
}

.otp-progress .step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
    font-weight: bold;
    font-size: 16px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.otp-progress .step.active {
    background-color: #23B386;
    color: #fff;
    border-color: none;
    animation: pulse 2s infinite;
}

.otp-progress .step.completed {
    background-color: #23B386;
    color: #2A2A2A;
    border-color: #23B386;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Step containers */
.otp-step {
    max-width: 489px;
    width: 100%;
    background: #fff;
    margin: 0 auto;
    border: 1px solid #e0e0e0;
}

.otp-step-header {
    padding: 30px 50px;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.otp-step h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2A2A2A;
    margin-bottom: 15px;
}

.otp-step p {
    font-size: 15px;
    font-weight: 500;
    color: #2D2D2E;
    line-height: 28.8px;
    margin-bottom: 20px;
}

/* Input groups */
.input-group {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 20px;
    margin-bottom: 20px;
}

/* Text inputs */
#user-email-input,
#user-mobile-input,
#email-otp-input,
#mobile-otp-input,
.form-group input,
.form-group select,
.form-group input {
    font-size: 15px;
    font-family: "Kumbh Sans", sans-serif;
    font-weight: 400;
    border-radius: 6px;
    color: #2A2A2A;
    line-height: 40px;
    width: 100%;
    max-width: 355px;
    height: 60px;
    padding: 0 15px;
    border: 1px solid transparent;
    -webkit-transition: all 0.35s;
    transition: all 0.35s;
    background: #F4F3F8;
    border-radius: 6px;
}

#user-email-input:focus,
#user-mobile-input:focus {
    outline: none;
    border-color: #23B386;
}

#user-email-input::placeholder,
#user-mobile-input::placeholder,
#email-otp-input::placeholder,
#mobile-otp-input::placeholder,
.form-group input::placeholder,
.form-group select::placeholder {
    color: #2A2A2A !important;
    text-transform: capitalize;
}


#email-otp-input:focus,
#mobile-otp-input:focus,
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #23B386;
}

/* Buttons */
button {
    background: #23B386;
    color: #fff;
    font-family: "Kumbh Sans", sans-serif;
    font-weight: 700;
    padding: 18px 32px 18px 32px;
    line-height: 22px;
    font-size: 16px;
    position: relative;
    z-index: 9;
    display: inline-block;
    -webkit-transition: all 0.35s;
    transition: all 0.35s;
    -moz-transition: all 0.35s;
    -ms-transition: all 0.35s;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

#send-email-otp-btn,
#send-mobile-otp-btn,
#verify-email-otp-btn,
#verify-mobile-otp-btn,
#submit-insurance-form,
#resend-email-otp-btn {
    background: #23B386;
    color: #fff;
    font-family: "Kumbh Sans", sans-serif;
    font-weight: 700;
    padding: 18px 32px 18px 32px;
    line-height: 22px;
    font-size: 16px;
    position: relative;
    z-index: 9;
    display: inline-block;
    -webkit-transition: all 0.35s;
    transition: all 0.35s;
    -moz-transition: all 0.35s;
    -ms-transition: all 0.35s;
    border: none;
    border-radius: 8px;
}

#send-email-otp-btn:hover,
#send-mobile-otp-btn:hover,
#verify-email-otp-btn:hover,
#verify-mobile-otp-btn:hover,
#submit-insurance-form:hover,
#resend-email-otp-btn:hover {
    color: #fff;
    opacity: 0.9;
    -webkit-box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

button:disabled {
    background: #2A2A2A !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Messages */
#email-otp-message,
#mobile-otp-message,
#form-submission-message {
    margin-top: 20px;
    padding: 15px;
    font-size: 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    min-height: 20px;
    transition: all 0.3s ease;
}

.success {
    color: #23B386;
}

.error,
.form-group span {
    color: #ff3333;
}

/* Firebase reCAPTCHA */
#firebase-recaptcha {
    margin: 25px auto;
    display: flex;
    justify-content: center;
}

/* Insurance form styles */
.insurance-form {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-size: 16px;
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #2A2A2A !important;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #23B386;
}

.form-group select {
    cursor: pointer;
    max-width: 387px;
}

/* Submit button for insurance form */
.submit-btn {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    margin-top: 20px;
    background: linear-gradient(135deg, #23B386 0%, #2ece9b 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #2adfa5 0%, #2adfa5 100%);
}

/* Success container */
.success-container {
    text-align: center;
    padding: 50px 20px;
    color: #23B386;
}

.success-container h3 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #23B386;
}

.success-container p {
    font-size: 18px;
    color: #252625;
    line-height: 1.6;
}

/* Loading animation */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .otp-step p {
        line-height: 24px;
    }

    .otp-step {
        max-width: 450px;
        width: 100%;
    }

    #user-email-input,
    #user-mobile-input,
    #email-otp-input,
    #mobile-otp-input,
    .form-group input,
    .form-group select {
        max-width: 359px;
        font-size: 16px;
        width: 100%;
        height: 50px;
    }

    .otp-step-header {
        padding: 20px 30px;
    }

    .input-group {
        gap: 12px;
    }

    button {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 100px;
    }

    .otp-progress .step {
        width: 35px;
        height: 35px;
        margin: 0 15px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 15px;
        font-size: 16px;
    }

    #send-email-otp-btn,
    #send-mobile-otp-btn,
    #verify-email-otp-btn,
    #verify-mobile-otp-btn,
    #submit-insurance-form,
    #resend-email-otp-btn {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {

    .otp-progress .step {
        width: 30px;
        height: 30px;
        margin: 0 10px;
        font-size: 12px;
    }

    .otp-step {
        max-width: 100%;
    }

    #user-email-input,
    #user-mobile-input,
    #email-otp-input,
    #mobile-otp-input,
    .form-group input,
    .form-group select {
        max-width: 100%;
    }

    .otp-step-header {
        padding: 15px;
    }
}

.success-container {
    display: none;
}

.success-container.show {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}