/* ADICIS™ Lab — Panel: modal */
#adicisModalOverlay {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 10020;
            background: rgba(0, 0, 0, 0.88);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            opacity: 0;
            transition: opacity 0.35s ease;
            align-items: center;
            justify-content: center;
        }
        #adicisModalOverlay.adicis-modal-open {
            display: flex;
            opacity: 1;
        }
        #adicisModalBox {
            position: relative;
            width: 100%;
            max-width: 620px;
            max-height: 92vh;
            overflow-y: auto;
            margin: 20px;
            background: linear-gradient(160deg, #020d22 0%, #071a2e 60%, #041811 100%);
            border: 1px solid rgba(38, 198, 218, 0.35);
            border-radius: 24px;
            padding: 50px 48px 44px;
            box-shadow: 0 30px 90px rgba(0,0,0,0.7), 0 0 0 1px rgba(38,198,218,0.1);
            animation: modalSlideIn 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        @keyframes modalSlideIn {
            from { transform: translateY(40px) scale(0.96); opacity: 0; }
            to   { transform: translateY(0)   scale(1);    opacity: 1; }
        }
        #adicisModalBox::-webkit-scrollbar { width: 6px; }
        #adicisModalBox::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); border-radius: 6px; }
        #adicisModalBox::-webkit-scrollbar-thumb { background: rgba(38,198,218,0.4); border-radius: 6px; }

        /* Close button */
        #adicisModalCloseBtn {
            position: absolute;
            top: 18px; right: 18px;
            width: 40px; height: 40px;
            border: 1.5px solid rgba(38,198,218,0.5);
            border-radius: 50%;
            background: rgba(2,11,31,0.7);
            color: #26C6DA;
            font-size: 1.5em;
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: all 0.25s ease;
            line-height: 1; padding: 0;
            font-family: inherit;
        }
        #adicisModalCloseBtn:hover {
            transform: rotate(90deg) scale(1.1);
            background: #26C6DA;
            color: #020B1F;
            box-shadow: 0 4px 16px rgba(38,198,218,0.4);
        }

        /* Modal header */
        .modal-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 7px 18px;
            background: rgba(38,198,218,0.1);
            border: 1px solid rgba(38,198,218,0.4);
            border-radius: 20px;
            color: #26C6DA;
            font-size: 0.78em;
            font-weight: 700;
            letter-spacing: 1.8px;
            text-transform: uppercase;
            margin-bottom: 20px;
        }
        .modal-title {
            font-size: 1.85em;
            font-weight: 900;
            margin-bottom: 10px;
            background: linear-gradient(135deg, #fff 0%, #26C6DA 55%, #4CAF50 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1.25;
        }
        .modal-subtitle {
            font-size: 0.97em;
            opacity: 0.72;
            margin-bottom: 32px;
            line-height: 1.65;
        }
        .modal-corp-notice {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 14px 18px;
            background: rgba(255, 193, 7, 0.08);
            border: 1px solid rgba(255,193,7,0.3);
            border-radius: 12px;
            margin-bottom: 28px;
            font-size: 0.88em;
            line-height: 1.6;
            color: rgba(255,255,255,0.85);
        }
        .modal-corp-notice .notice-icon { font-size: 1.4em; flex-shrink: 0; margin-top: 1px; }
        .modal-corp-notice strong { color: #FFC107; }

        /* Form fields */
        .modal-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin-bottom: 16px;
        }
        .modal-field {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .modal-field.full { grid-column: 1 / -1; }
        .modal-field label {
            font-size: 0.82em;
            font-weight: 600;
            color: #26C6DA;
            letter-spacing: 0.8px;
            text-transform: uppercase;
        }
        .modal-field label span.req { color: #FF6B6B; margin-left: 3px; }
        .modal-field input,
        .modal-field select,
        .modal-field textarea {
            background: rgba(255,255,255,0.05);
            border: 1.5px solid rgba(38,198,218,0.25);
            border-radius: 10px;
            color: #ffffff;
            font-family: 'Inter', system-ui, sans-serif;
            font-size: 0.97em;
            padding: 12px 16px;
            outline: none;
            transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
            width: 100%;
            box-sizing: border-box;
        }
        .modal-field select {
            appearance: none;
            -webkit-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2326C6DA' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 14px center;
            padding-right: 38px;
            cursor: pointer;
        }
        .modal-field select option { background: #071a2e; color: #fff; }
        .modal-field input::placeholder,
        .modal-field textarea::placeholder { color: rgba(255,255,255,0.28); }
        .modal-field input:focus,
        .modal-field select:focus,
        .modal-field textarea:focus {
            border-color: #26C6DA;
            background: rgba(38,198,218,0.08);
            box-shadow: 0 0 0 3px rgba(38,198,218,0.12);
        }
        .modal-field input.field-error,
        .modal-field select.field-error,
        .modal-field textarea.field-error {
            border-color: #FF6B6B;
            box-shadow: 0 0 0 3px rgba(255,107,107,0.12);
        }
        .modal-field input.field-ok,
        .modal-field select.field-ok,
        .modal-field textarea.field-ok {
            border-color: #4CAF50;
        }
        .field-msg {
            font-size: 0.78em;
            min-height: 16px;
            padding-left: 2px;
        }
        .field-msg.error { color: #FF8A80; }
        .field-msg.ok    { color: #69F0AE; }

        /* Textarea */
        .modal-field textarea {
            resize: vertical;
            min-height: 100px;
            max-height: 180px;
            line-height: 1.6;
        }
        .char-counter {
            text-align: right;
            font-size: 0.78em;
            color: rgba(255,255,255,0.4);
            margin-top: 4px;
            transition: color 0.2s;
        }
        .char-counter.warn { color: #FFB74D; }
        .char-counter.over  { color: #FF6B6B; }

        /* Submit button */
        .modal-submit-btn {
            width: 100%;
            padding: 16px;
            margin-top: 28px;
            background: linear-gradient(135deg, #26C6DA, #4FC3F7);
            color: #020B1F;
            border: none;
            border-radius: 12px;
            font-family: 'Inter', system-ui, sans-serif;
            font-size: 1.05em;
            font-weight: 800;
            cursor: pointer;
            letter-spacing: 0.5px;
            box-shadow: 0 8px 28px rgba(38,198,218,0.3);
            transition: all 0.28s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        .modal-submit-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 14px 36px rgba(38,198,218,0.45);
        }
        .modal-submit-btn:active:not(:disabled) { transform: translateY(0); }
        .modal-submit-btn:disabled {
            opacity: 0.55;
            cursor: not-allowed;
            transform: none;
        }

        /* Success state */
        .modal-success {
            display: none;
            text-align: center;
            padding: 20px 0 10px;
            animation: modalSlideIn 0.4s ease;
        }
        .modal-success .success-icon {
            font-size: 4em;
            margin-bottom: 20px;
            display: block;
        }
        .modal-success h3 {
            font-size: 1.6em;
            font-weight: 800;
            color: #4CAF50;
            margin-bottom: 14px;
        }
        .modal-success p {
            font-size: 1em;
            line-height: 1.75;
            opacity: 0.85;
        }
        .modal-success .success-note {
            margin-top: 24px;
            padding: 16px 20px;
            background: rgba(76,175,80,0.1);
            border: 1px solid rgba(76,175,80,0.3);
            border-radius: 12px;
            font-size: 0.9em;
            opacity: 0.8;
        }

        /* Privacy note */
        .modal-privacy {
            margin-top: 16px;
            text-align: center;
            font-size: 0.78em;
            opacity: 0.45;
            line-height: 1.55;
        }

        /* ── LGPD Consent Checkbox ─────────────────────────── */
        .modal-lgpd-field { margin-top: 8px; }

        .lgpd-label {
            display: flex;
            align-items: flex-start;
            gap: 14px;
            cursor: pointer;
            padding: 14px 16px;
            background: rgba(38,198,218,0.04);
            border: 1.5px solid rgba(38,198,218,0.22);
            border-radius: 12px;
            transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
            user-select: none;
        }
        .lgpd-label:hover {
            border-color: rgba(38,198,218,0.5);
            background: rgba(38,198,218,0.08);
        }

        /* Esconde o input nativo mas mantém acessibilidade */
        .lgpd-checkbox {
            position: absolute;
            opacity: 0;
            width: 1px;
            height: 1px;
            pointer-events: none;
        }

        /* Caixa visual customizada */
        .lgpd-custom-check {
            flex-shrink: 0;
            width: 22px;
            height: 22px;
            border: 2px solid rgba(38,198,218,0.5);
            border-radius: 6px;
            background: rgba(255,255,255,0.04);
            transition: all 0.22s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: 1px;
            font-size: 14px;
            color: transparent;
            font-weight: 900;
        }
        .lgpd-checkbox:checked ~ .lgpd-custom-check,
        .lgpd-label:has(.lgpd-checkbox:checked) .lgpd-custom-check {
            background: #26C6DA;
            border-color: #26C6DA;
            color: #020B1F;
            box-shadow: 0 0 0 3px rgba(38,198,218,0.2);
        }
        .lgpd-checkbox:checked ~ .lgpd-custom-check::after,
        .lgpd-label:has(.lgpd-checkbox:checked) .lgpd-custom-check::after {
            content: '✓';
        }

        /* Estados de erro / sucesso no wrapper */
        #mc-lgpd-wrapper.lgpd-error .lgpd-label {
            border-color: rgba(255,107,107,0.6);
            background: rgba(255,107,107,0.05);
            box-shadow: 0 0 0 3px rgba(255,107,107,0.1);
        }
        #mc-lgpd-wrapper.lgpd-error .lgpd-custom-check {
            border-color: #FF6B6B;
        }
        #mc-lgpd-wrapper.lgpd-ok .lgpd-label {
            border-color: rgba(76,175,80,0.5);
            background: rgba(76,175,80,0.05);
        }
        #mc-lgpd-wrapper.lgpd-ok .lgpd-custom-check {
            border-color: #4CAF50;
        }

        /* Texto do consentimento */
        .lgpd-text {
            font-size: 0.84em;
            color: rgba(255,255,255,0.72);
            line-height: 1.65;
        }
        .lgpd-text strong { color: #26C6DA; font-weight: 700; }

        @media (max-width: 600px) {
            #adicisModalBox { padding: 40px 24px 36px; }
            .modal-row { grid-template-columns: 1fr; }
            .modal-title { font-size: 1.5em; }
        }
