/* Base mobile form styling - Yellow Green Theme */
.mobile_form {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #fefce8 100%);
    width: 100%;
    z-index: 99999;
    box-shadow: rgba(250, 204, 21, 0.25) 0px -3px 17px 0px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    transform: translateY(100%);
    opacity: 0;
    padding: 0;
    border-radius: 20px 20px 0 0;
    backdrop-filter: blur(0px);
}

/* Active state when form is visible */
.mobile_form.active {
    transform: translateY(0);
    opacity: 1;
}

/* Heading styling with yellow-green gradient */
.mobile_form h2 {
    font-size: 24px;
    font-weight: 700;
    padding-bottom: 8px !important;
    margin: 0;
    background: linear-gradient(135deg, #85C226, #F7C600, #F9A602);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

/* Remove pseudo-element */
.lef-right.mobile_form:after {
    display: none;
}

/* Disease lead form specific - Yellow Green theme */
.disease-lead-form.mobile_form {
    padding: 30px 0;
    z-index: 999;
    background: linear-gradient(135deg, #fefce8 0%, #f0f9e8 100%);
}

/* Submit button styling - Yellow Green gradient */
.mobile_form .appointment-btnss {
    height: 50px;
    line-height: normal;
    background: linear-gradient(to right, #85C226, #F7C600, #F9A602);
    border: none;
    color: #1a3c00;
    font-weight: 700;
    font-size: 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(133, 194, 38, 0.3);
    letter-spacing: 0.5px;
}

.mobile_form .appointment-btnss:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 198, 0, 0.4);
    background: linear-gradient(to right, #7ab822, #e8b800, #ec9a02);
}

.mobile_form .appointment-btnss:active {
    transform: translateY(0);
}

/* Form layout improvements */
.main_form_column {
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 0 24px;
}

.inner_form_column {
    display: flex;
    gap: 20px;
    width: 70%;
}

.inner_form_column .form-group {
    width: 100%;
    margin-bottom: 0;
}

.row.mobile-frm-btn.enquire-field {
    width: 30%;
}

/* Input field styling - Yellow Green theme */
.mobile_form .input-field {
    padding: 0 16px;
    height: 50px;
    border: 2px solid #e6f0d8;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
    outline: none;
}

.mobile_form .input-field:focus {
    border-color: #F7C600;
    box-shadow: 0 0 0 3px rgba(247, 198, 0, 0.15);
}

.mobile_form .input-field:hover {
    border-color: #85C226;
}

/* Disease lead form background - Yellow Green */
.disease-lead-form {
    background: linear-gradient(135deg, #fefce8 0%, #f1f7ea 100%);
}

.disease-lead-form h2 {
    color: #2d4a0e;
    padding-bottom: 15px;
    background: linear-gradient(135deg, #1be31b, #38582e, #262a24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.disease-lead-form {
    padding: 30px 0;
}

/* Enquire form */
.mobile_form .enquire-form {
    padding: 5px 0;
}

/* Close button styling - Yellow Green */
.mobile_form .close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    width: 30px;
    height: 30px;
    background: rgba(133, 194, 38, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #85C226;
}

.mobile_form .close-btn:hover {
    background: rgba(247, 198, 0, 0.25);
    transform: rotate(90deg);
}

/* Animation keyframes */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .main_form_column {
        gap: 20px;
    }
    
    .inner_form_column {
        gap: 15px;
    }
    
    .mobile_form h2 {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .main_form_column {
        display: block;
        padding: 0 16px;
    }
    
    .inner_form_column {
        gap: 12px;
        width: 100%;
        margin-bottom: 12px;
        flex-direction: column;
    }
    
    .row.mobile-frm-btn.enquire-field {
        width: 100%;
    }
    
    .mobile_form {
        padding: 0 !important;
        border-radius: 16px 16px 0 0;
    }
    
    .mobile_form.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .mobile_form .appointment-btnss {
        height: 44px;
        border-radius: 10px;
        font-size: 15px;
    }
    
    #desktopIcon {
        width: 115px;
    }
    
    .custom-drop-icon {
        background-position-y: 8px;
    }
    
    .disease-lead-form.mobile_form {
        padding: 0 0 !important;
    }
    
    .mobile_form h2 {
        font-size: 18px;
        padding-bottom: 6px;
        padding-top: 8px;
    }
    
    .mobile_form .input-field {
        height: 44px;
        padding: 0 14px;
        line-height: normal;
        border-radius: 10px;
        font-size: 14px;
    }
    
    .mobile_form .enquire-form {
        padding-top: 0;
    }
    
    .book-camp-sec .row {
        padding: 15px !important;
    }
    
    /* Add subtle bottom shadow on mobile - Yellow Green */
    .mobile_form {
        box-shadow: rgba(133, 194, 38, 0.2) 0px -5px 20px 0px;
    }
}

/* Small phone optimization */
@media (max-width: 380px) {
    .mobile_form h2 {
        font-size: 16px;
    }
    
    .mobile_form .input-field,
    .mobile_form .appointment-btnss {
        height: 40px;
        font-size: 13px;
    }
    
    .main_form_column {
        padding: 0 12px;
    }
}

/* Loading state for submit button */
.mobile_form .appointment-btnss.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.mobile_form .appointment-btnss.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success message styling - Green theme */
.mobile_form .form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
}

/* Error message styling - Yellow/Orange theme */
.mobile_form .form-message.error {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
}

/* Drag indicator at the top - Yellow Green gradient */
.mobile_form::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: linear-gradient(to right, #85C226, #F7C600, #F9A602);
    border-radius: 2px;
    opacity: 0.5;
}

/* Remove before pseudo-element on disease lead form if needed */
.disease-lead-form.mobile_form::before {
    opacity: 0.3;
}

/* Additional Yellow Green theme enhancements */
.mobile_form label {
    color: #4b5563;
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

.mobile_form select.input-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23F7C600' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 20px;
}

/* Checkbox and radio styling */
.mobile_form input[type="checkbox"],
.mobile_form input[type="radio"] {
    accent-color: #85C226;
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

/* Button group styling */
.mobile_form .button-group {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.mobile_form .button-group .appointment-btnss {
    flex: 1;
}

/* Optional: Add a subtle pulse animation to the submit button */
@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(133, 194, 38, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(247, 198, 0, 0.5);
    }
}

.mobile_form .appointment-btnss:focus {
    animation: subtlePulse 1s ease-in-out;
}