@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
}
.custom-form-modal-buttonlz {
    display: inline-block;
    padding: 12px 24px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 150px;
}

.custom-form-modal-buttonlz:hover {
    transform: translateY(-3px);
}
/* Modal Styles */
.custom-form-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(5px);
}

.custom-form-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.custom-form-modal {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    animation: modalFadeIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.custom-form-modal-overlay.active .custom-form-modal {
    transform: scale(1);
}

.custom-form-modal .close-modal {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #9ca3af;
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1000;
}

.custom-form-modal .close-modal:hover {
    color: #1f2937;
    background-color: #e5e7eb;
    transform: rotate(90deg);
}

.custom-form-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px 40px;
    -webkit-overflow-scrolling: touch;
}

.custom-form-modal-content::-webkit-scrollbar {
    width: 8px;
}

.custom-form-modal-content::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 4px;
}

/* Form Styles */
.custom-form-wrapper {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    box-shadow: .1px 6px 6px 9px rgba(0, 0, 0, 0.2);
    padding: 20px;
}

.elementor-widget-container {
    padding: 0;
}

.elementor-widget-heading {
    margin-bottom: 8px;
}

.elementor-heading-title {
    color: #111827;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.elementor-text-editor {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 16px;
}

.elementor-form-fields-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.elementor-field-group {
    margin: 0;
}

.elementor-field-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.elementor-field {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    background: #f9fafb;
}

.elementor-field:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    background: #fff;
}

textarea.elementor-field {
    min-height: 120px;
    resize: vertical;
}

.elementor-field-subgroup {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.elementor-field-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.elementor-field-option input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.elementor-field-option input[type="radio"]:checked {
    border-color: #4f46e5;
    background-color: #4f46e5;
}

.elementor-field-option input[type="radio"]:checked::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.elementor-field-option label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
}

.elementor-col-50 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.wp-block-button.e-form__buttons {
    margin-top: 20px;
}

.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #4f46e5;
    color: #fff;
    text-decoration: none;
    width: 100%;
}

.wp-block-button__link:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wp-block-button__link:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.justify-content-center {
    display: flex !important;
    justify-content: center !important;
}

.form-response {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.form-success {
    color: #059669;
    padding: 12px;
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
}

.form-error {
    color: #dc2626;
    padding: 12px;
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-form-modal {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    .elementor-col-50 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .custom-form-modal-content {
        padding: 20px;
    }

    .elementor-heading-title {
        font-size: 22px;
    }

    .elementor-text-editor {
        font-size: 15px;
    }
}