/* ====================================================================
 * CSS customizado da Córtex (extraído do HTML para organização do código)
 * Inclui: modal de agendamento/formulário, integração Calendly,
 * ocultação de seções descontinuadas, e demais estilos específicos
 * do site da Córtex (não fazem parte do tema original Herrington).
 * ==================================================================== */

/* Oculta seções de testemunhos em inglês do tema original */
.elementor-element-9f2fe7b,.elementor-element-814e634{display:none !important;}

/* Modal "Agende uma reunião" (formulário + Calendly) */
.cxm-overlay{position:fixed;inset:0;background:rgba(10,17,25,.55);backdrop-filter:blur(2px);opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s;z-index:99998;}
.cxm-overlay.open{opacity:1;visibility:visible;}
.cxm-drawer{position:fixed;top:0;right:0;height:100%;width:460px;max-width:100vw;background:#fff;box-shadow:-10px 0 40px rgba(0,0,0,.25);transform:translateX(100%);transition:transform .35s cubic-bezier(.4,0,.2,1);z-index:99999;display:flex;flex-direction:column;font-family:'Public Sans',-apple-system,sans-serif;}
.cxm-drawer.open{transform:translateX(0);}
.cxm-head{background:#121C27;color:#fff;padding:26px 28px;position:relative;flex-shrink:0;}
.cxm-head h3{font-size:20px;font-weight:800;margin:0 0 6px;color:#fff;line-height:1.2;}
.cxm-head p{font-size:13px;color:#93a1b3;margin:0;line-height:1.4;}
.cxm-close{position:absolute;top:22px;right:22px;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.1);border:none;color:#fff;font-size:20px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s;}
.cxm-close:hover{background:rgba(255,255,255,.2);}
.cxm-body{padding:24px 28px 32px;overflow-y:auto;flex:1;}
.cxm-field{margin-bottom:16px;}
.cxm-field label.cxm-lbl{display:block;font-size:12px;font-weight:600;color:#334155;margin-bottom:6px;}
.cxm-field label.cxm-lbl .req{color:#ef4444;}
.cxm-field input,.cxm-field textarea{display:block;width:100%;box-sizing:border-box;height:auto;padding:13px 14px;border:1px solid #dfe3e8;border-radius:9px;font-size:14px;line-height:1.3;color:#0f172a;font-family:inherit;transition:border-color .2s,box-shadow .2s;background:#fff;}
.cxm-field input:focus,.cxm-field textarea:focus{outline:none;border-color:#121C27;box-shadow:0 0 0 3px rgba(18,28,39,.08);}
.cxm-field textarea{resize:vertical;min-height:88px;}
.cxm-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.cxm-chips{display:flex;flex-wrap:wrap;gap:8px;}
.cxm-chip{position:relative;cursor:pointer;}
.cxm-chip input{position:absolute;opacity:0;pointer-events:none;}
.cxm-chip span{display:inline-block;padding:7px 14px;border:1px solid #dfe3e8;border-radius:999px;font-size:13px;color:#475569;font-weight:500;transition:all .2s;background:#fff;}
.cxm-chip input:checked+span{background:#121C27;border-color:#121C27;color:#fff;}
.cxm-chip:hover span{border-color:#121C27;}
.cxm-field select{display:block;width:100%;box-sizing:border-box;height:auto;padding:13px 14px;border:1px solid #dfe3e8;border-radius:9px;font-size:14px;line-height:1.3;color:#0f172a;font-family:inherit;background:#fff;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2364748b'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;transition:border-color .2s,box-shadow .2s;}
.cxm-field select:focus{outline:none;border-color:#121C27;box-shadow:0 0 0 3px rgba(18,28,39,.08);}
.cxm-hint{font-size:11px;color:#94a3b8;margin:-10px 0 16px;}
.cxm-submit{width:100%;padding:14px;background:#121C27;color:#fff;border:none;border-radius:10px;font-size:15px;font-weight:700;cursor:pointer;transition:background .2s;margin-top:8px;font-family:inherit;}
.cxm-submit:hover{background:#0a1119;}
.cxm-success{padding:0;display:none;}
.cxm-success.show{display:block;}
.cxm-drawer.cxm-wide{width:640px;}
.cxm-calendly-step{display:none;padding:28px 28px 8px;}
.cxm-calendly-step.show{display:block;}
.cxm-calendly-head{display:flex;align-items:flex-start;gap:14px;margin-bottom:18px;text-align:left;}
.cxm-calendly-head .ico-sm{width:38px;height:38px;flex-shrink:0;margin:0;}
.cxm-calendly-head h4{font-size:17px;font-weight:800;color:#0f172a;margin:0 0 4px;}
.cxm-calendly-head p{font-size:13.5px;color:#64748b;margin:0;}
.cxm-calendly-inline{min-width:280px;height:650px;}
.cxm-scheduled-step{display:none;text-align:center;padding:60px 24px;}
.cxm-scheduled-step.show{display:block;}
.cxm-success .ico{width:64px;height:64px;border-radius:50%;background:#f0fdf4;color:#16a34a;display:flex;align-items:center;justify-content:center;margin:0 auto 20px;}
.cxm-success h4{font-size:20px;font-weight:800;color:#0f172a;margin:0 0 8px;}
.cxm-success p{font-size:14px;color:#64748b;margin:0;}
.cxm-steps{display:flex;align-items:center;gap:8px;margin-top:16px;}
.cxm-step-dot{flex:1;height:4px;border-radius:2px;background:rgba(255,255,255,.18);transition:background .25s;}
.cxm-step-dot.on{background:#fff;}
.cxm-stepnum{font-size:11px;color:#93a1b3;font-weight:600;margin:2px 0 16px;text-transform:uppercase;letter-spacing:.3px;}
.cxm-panel{display:none;}
.cxm-panel.active{display:block;}
.cxm-actions{display:flex;gap:10px;margin-top:6px;}
.cxm-actions .cxm-submit{margin-top:0;}
.cxm-btn-back{flex:0 0 auto;padding:14px 18px;background:#fff;color:#121C27;border:1px solid #dfe3e8;border-radius:10px;font-size:15px;font-weight:700;cursor:pointer;font-family:inherit;transition:border-color .2s,background .2s;}
.cxm-btn-back:hover{background:#f8fafc;border-color:#cbd5e1;}
@media(max-width:520px){.cxm-drawer{width:100vw;}.cxm-row{grid-template-columns:1fr;}}
