/* Enquiry Form Styling mirroring LeadForm.jsx */
.raintech-enquiry-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 40px auto;
    max-width: 1200px;
}

.raintech-enquiry-wrapper .iti__flag-container {
    position: relative;
    display: block;
}

/* Badge Styling */
.raintech-enquiry-wrapper .r-badge-container {
    text-align: center;
    margin-bottom: 24px;
}

.raintech-enquiry-wrapper .r-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    background-color: #eff6ff;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #dbeafe;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.raintech-enquiry-wrapper .r-icon {
    font-size: 14px;
}

/* Form Container */
.raintech-enquiry-wrapper .raintech-form {
    position: relative;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.6);
    width: 100%;
}

/* Hide wpautop injected tags that break flexbox layout */
/* .raintech-form p, 
.raintech-form br {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
} */

.raintech-enquiry-wrapper .iti--separate-dial-code {
    display: flex;
}

@media (min-width: 1024px) {
    .raintech-enquiry-wrapper .raintech-form {
        flex-direction: row;
        border-radius: 9999px;
        align-items: center;
    }
}

.raintech-enquiry-wrapper .r-input {
    flex: 1;
    width: 100%;
    border: none !important;
    outline: none !important;
    padding: 12px 16px;
    background: transparent !important;
    color: #1e293b !important;
    font-family: inherit;
    font-size: 16px;
    min-width: 0;
    box-shadow: none !important;
}

.raintech-enquiry-wrapper .r-input::placeholder {
    color: #94a3b8;
}

.raintech-enquiry-wrapper .r-input:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.raintech-enquiry-wrapper .r-divider {
    height: 1px;
    background-color: rgba(226, 232, 240, 0.6);
    margin: 8px 16px;
}

@media (min-width: 1024px) {
    .raintech-enquiry-wrapper .r-divider {
        height: 24px;
        width: 1px;
        margin: 8px 0;
    }
}

.raintech-enquiry-wrapper .r-phone-wrapper {
    flex: 1;
    width: 100%;
    padding: 0 16px 0 0;
    display: flex;
    align-items: center;
    background: transparent;
}

.raintech-enquiry-wrapper .r-phone-wrapper .iti {
    width: 100%;
}

.raintech-enquiry-wrapper .r-phone-wrapper input {
    width: 100%;
    padding-left: 6px !important;
}

.iti__flag {
    background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/img/flags.png");
}

@media (min-resolution: 2x) {
    .iti__flag {
        background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/img/flags@2x.png");
    }
}

/* Submit Button */
.raintech-enquiry-wrapper .r-btn {
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-image: linear-gradient(to right, #667eea, #764ba2, #6b8dd6, #8e37d7);
    background-size: 300% 100%;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    color: #ffffff !important;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
    border: none !important;
    transition: all 0.4s ease-in-out;
    min-height: 48px;
    text-transform: none;
    font-size: 0.96rem;
    box-shadow: 0 4px 15px 0 rgba(116, 79, 168, 0.75);
}

@media screen and (max-width:676px) {
    .raintech-enquiry-wrapper .r-btn {
        width: 100%;
    }
}

@media (min-width: 1024px) {
    .raintech-enquiry-wrapper .r-btn {
        border-radius: 9999px;
    }
}

.raintech-enquiry-wrapper .r-btn:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(116, 79, 168, 0.85);
}

.raintech-enquiry-wrapper .r-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Toast Notification Styles */
#r_toast_container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.r-toast {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    font-size: 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #1e293b;
    min-width: 300px;
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.r-toast.success {
    border-left: 4px solid #10b981;
}

.r-toast.error {
    border-left: 4px solid #ef4444;
}

.r-toast.closing {
    animation: fadeOut 0.2s ease-in forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}