/* modal.css */
        * {
            box-sizing: border-box;
        }

        :root {
            --primary-blue: rgb(90,96,140);
            --primary-blue-light: rgb(66, 77, 163);
            --secondary-blue: #dbeafe;
            --text-dark: #1e293b;
            --text-gray: #64748b;
            --success-green: #10b981;
            --danger-red: #ef4444;
            --border-color: #e2e8f0;
            --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
            --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
            --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
            --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
        }

        /* Animações */
        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

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

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

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

        @keyframes pulse {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.05);
            }
        }

        @keyframes spin {
            from {
                transform: rotate(0deg);
            }

            to {
                transform: rotate(360deg);
            }
        }

        /* Modal Principal */
        .modal {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 9999;
            animation: slideInFromRight 0.5s ease-out;
        }

        .modal-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(4px);
            opacity: 0;
            pointer-events: none;
        }

        .modal-container {
            position: relative;
            width: 320px;
            background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            box-shadow: var(--shadow-xl);
            overflow: hidden;
            transform: translateY(0);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .modal-container:hover {
            transform: translateY(-2px);
            box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
        }

        .modal-header {
            display: flex;
            justify-content: flex-end;
            padding: 12px 16px 0;
        }

        .close {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            cursor: pointer;
            font-weight: 500;
            color: var(--text-gray);
            border-radius: 8px;
            transition: all 0.2s ease;
            background: transparent;
        }

        .close:hover {
            background: #f1f5f9;
            color: var(--text-dark);
            transform: scale(1.1);
        }

        .modal-content {
            padding: 0 24px 24px;
            text-align: center;
        }

        .modal-icon {
            width: 64px;
            height: 64px;
            margin: 0 auto 16px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            animation: pulse 2s infinite;
        }

        .modal-content h3 {
            margin: 0 0 8px;
            font-size: 20px;
            font-weight: 700;
            color: var(--text-dark);
            line-height: 1.3;
        }

        .modal-content p {
            margin: 0 0 20px;
            font-size: 14px;
            color: var(--text-gray);
            line-height: 1.5;
        }

        .primary-btn {
            background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 12px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: var(--shadow-sm);
        }

        .primary-btn:hover {
            background: var(--primary-blue-light);
            transform: translateY(-1px);
            box-shadow: var(--shadow-md);
        }

        .primary-btn:active {
            transform: translateY(0);
        }

        /* Modal Formulário */
        .modal-form {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            animation: fadeIn 0.3s ease-out;
            overflow-y: auto;
        }

        .modal-form .modal-backdrop {
            opacity: 1;
            pointer-events: all;
        }

        .form-container {
            position: relative;
            width: 100%;
            max-width: 450px;
            background: white;
            border-radius: 20px;
            box-shadow: var(--shadow-xl);
            overflow: hidden;
            animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            max-height: 90vh;
            overflow-y: auto;
        }

        .modal-content-form {
            padding: 24px;
        }

        .form-header {
            text-align: center;
            margin-bottom: 24px;
        }

        .form-header h3 {
            margin: 0 0 8px;
            font-size: 24px;
            font-weight: 700;
            color: var(--text-dark);
        }

        .form-header p {
            margin: 0;
            font-size: 14px;
            color: var(--text-gray);
        }

        .input-group {
            width: 100%;
            margin-bottom: 20px;
        }

        .input-group label {
            display: block;
            margin-bottom: 6px;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-dark);
        }

        .option-default {
            color: var(--text-gray) !important;
        }

        .input-group input,
        .input-group select {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid var(--border-color);
            border-radius: 12px;
            font-size: 16px;
            transition: all 0.2s ease;
            background: #f0f0f0;
        }


        .input-group input:focus,
        .input-group select:focus {
            outline: none;
            border-color: var(--primary-blue);
            background: white;
            box-shadow: 0 0 0 3px rgba(90, 96, 140, 0.1);
        }

        .input-group input::placeholder {
            color: #9ca3af;
        }

        .input-group select {
            cursor: pointer;
        }

        .input-group select option {
            padding: 8px;
        }

        /* Campos dinâmicos de contato */
        .contact-field {
            display: none;
        }

        .contact-field.show {
            display: block;
            animation: slideUp 0.3s ease-out;
        }

        /* Divisor visual */
        .form-divider {
            border-bottom: 1px solid var(--border-color);
            margin: 24px 0;
            opacity: 0.5;
        }

        .submit-btn {
            background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
            color: white;
            border: none;
            padding: 14px 24px;
            border-radius: 12px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            width: 100%;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: var(--shadow-sm);
            position: relative;
            overflow: hidden;
        }

        .submit-btn:hover:not(:disabled) {
            background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .submit-btn:disabled {
            cursor: not-allowed;
            opacity: 0.8;
        }

        .btn-loading {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .spinner {
            animation: spin 1s linear infinite;
        }

        .success-message {
            display: none;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 16px;
            padding: 12px;
            background: rgba(16, 185, 129, 0.1);
            border: 1px solid rgba(16, 185, 129, 0.2);
            border-radius: 8px;
            color: var(--success-green);
            font-size: 14px;
            font-weight: 600;
            animation: slideUp 0.3s ease-out;
        }

        /* Responsividade */
        @media (max-width: 640px) {
            .modal-container {
                width: calc(100vw - 40px);
                max-width: 300px;
                height: 300px;
                position: fixed;
                top: -50%;
                transform: translateY(50%);
                left: 0;
                right: 0;
                bottom: 0;
                margin: auto;
            }

            .modal-container:hover {
                transform: translateY(49%);
            }

            .form-container {
                margin: 0 10px;
                max-height: 85vh;
            }

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

            .modal-form {
                align-items: flex-start;
                padding-top: 5vh;
            }
        }

        @media (min-width: 768px) {
            .modal {
                display: none;
            }
        }

        /* Estados de hover para mobile */
        @media (hover: hover) {
            .input-group input:hover,
            .input-group select:hover {
                border-color: var(--primary-blue-light);
            }
        }