    /* Modal Styles - Fully Responsive */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    backdrop-filter: blur(5px);
    padding: 1rem;
    box-sizing: border-box;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    text-align: center;
    position: relative;
}

.modal-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.modal-header p {
    opacity: 0.9;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.modal-body {
    padding: 2rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.callback-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    animation: pulse 2s infinite;
    white-space: nowrap;
}

.callback-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
}

.callback-btn::before {
    content: "📞";
    font-size: 1.2rem;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.form-group-modal {
    margin-bottom: 1.5rem;
}

.form-group-modal label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group-modal input,
.form-group-modal select,
.form-group-modal textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group-modal input:focus,
.form-group-modal select:focus,
.form-group-modal textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Tablet Responsiveness */
@media (max-width: 1024px) {
    .modal-overlay {
        padding: 0.5rem;
    }

    .modal-content {
        max-width: 480px;
    }
}

/* Mobile Large (768px and below) */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 0.5rem;
        align-items: flex-start;
        padding-top: 2rem;
    }

    .modal-content {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: none;
        max-height: calc(100vh - 2rem);
        margin: 0;
        border-radius: 15px;
    }

    .modal-header {
        padding: 1.5rem;
        border-radius: 15px 15px 0 0;
    }

    .modal-header h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .modal-header p {
        font-size: 0.85rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }

    .callback-btn {
        bottom: 20px;
        right: 20px;
        padding: 0.8rem 1.2rem;
        font-size: 0.8rem;
        gap: 0.4rem;
    }

    .callback-btn::before {
        font-size: 1rem;
    }

    .form-group-modal {
        margin-bottom: 1.25rem;
    }

    .form-group-modal input,
    .form-group-modal select,
    .form-group-modal textarea {
        padding: 0.875rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .submit-btn {
        padding: 0.875rem;
        font-size: 1rem;
    }
}

/* Mobile Medium (480px and below) */
@media (max-width: 480px) {
    .modal-overlay {
        padding: 0.25rem;
        padding-top: 1rem;
    }

    .modal-content {
        border-radius: 12px;
        max-height: calc(100vh - 1rem);
    }

    .modal-header {
        padding: 1.25rem;
        border-radius: 12px 12px 0 0;
    }

    .modal-header h3 {
        font-size: 1.2rem;
        line-height: 1.2;
    }

    .modal-header p {
        font-size: 0.8rem;
    }

    .modal-body {
        padding: 1.25rem;
    }

    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    .callback-btn {
        bottom: 15px;
        right: 15px;
        padding: 0.7rem 1rem;
        font-size: 0.75rem;
        border-radius: 40px;
    }

    .callback-btn span {
        display: none; /* Hide text on very small screens */
    }

    .form-group-modal {
        margin-bottom: 1rem;
    }

    .form-group-modal label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .form-group-modal input,
    .form-group-modal select,
    .form-group-modal textarea {
        padding: 0.75rem;
        border-radius: 8px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .submit-btn {
        padding: 0.75rem;
        font-size: 0.95rem;
        border-radius: 8px;
    }
}

/* Mobile Small (360px and below) */
@media (max-width: 360px) {
    .modal-header {
        padding: 1rem;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .callback-btn {
        bottom: 10px;
        right: 10px;
        padding: 0.6rem 0.8rem;
        font-size: 0.7rem;
    }

    .callback-btn::before {
        font-size: 0.9rem;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .modal-overlay {
        padding-top: 0.5rem;
        align-items: flex-start;
    }

    .modal-content {
        max-height: calc(100vh - 1rem);
        position: relative;
        top: 0;
        transform: translateX(-50%);
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-header h3 {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }

    .modal-header p {
        font-size: 0.8rem;
    }

    .modal-body {
        padding: 1rem 1.5rem;
    }

    .form-group-modal {
        margin-bottom: 1rem;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .modal-content {
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    }

    .callback-btn {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    }
}
