/* Contact Form 7 versions of the site forms (wp-content/plugins/easywebnet-core/includes/forms-cf7.php).
   .ewn-fb-quote: three-step quote form before the footer. .ewn-fb-contact: contact page. .ewn-talk: /start/ (landing.css). */

/* ---------- shared ---------- */
/* parts Contact Form 7 adds: kept for screen readers and sending, but they take no room */
.wpcf7 .screen-reader-response{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wpcf7 form .hidden-fields-container{display:none}
.ewn-fcard .wpcf7,.ewn-formwrap .wpcf7{display:block;min-width:0}
.ewn-fb.ewn-cf{display:flex;flex-direction:column;gap:14px;margin:0}
.ewn-cf label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600;min-width:0}
.ewn-cf label small,.ewn-cf .ewn-q small{font-weight:400;color:#5B6170;font-size:13px}
.ewn-cf .wpcf7-form-control-wrap{display:block;min-width:0}
.ewn-cf input[type=text],.ewn-cf input[type=email],.ewn-cf input[type=tel],.ewn-cf textarea{box-sizing:border-box;width:100%}
.ewn-cf input:focus-visible,.ewn-cf textarea:focus-visible,.ewn-cf button:focus-visible{outline:3px solid #8585FA;outline-offset:2px}
.ewn-cf .ewn-hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
.ewn-cf .ewn-two{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:10px}
.ewn-cf .ewn-sub{margin:0;font-size:14px;font-weight:600}
.ewn-cf .ewn-fine{margin:0;font-size:13px;color:#5B6170;text-align:center}
.ewn-cf .ewn-fine a{color:inherit;text-decoration:underline}
.ewn-cf .ewn-tip,.ewn-cf .wpcf7-not-valid-tip{display:block;margin-top:5px;font-size:13px;font-weight:600;color:#B3261E}
.ewn-cf .wpcf7-form-control-wrap:has(.ewn-tip) .wpcf7-not-valid-tip{display:none}
.ewn-fb-quote .ewn-progress li.is-done{cursor:pointer}
.ewn-cf [aria-invalid=true]{border-color:#B3261E!important}
.ewn-cf .wpcf7-response-output{margin:0;padding:12px 16px;border-radius:14px;background:#FFF1D1;color:#6E4700;font-size:14px;font-weight:600}
.ewn-cf.init .wpcf7-response-output,.ewn-cf.resetting .wpcf7-response-output{display:none}
.ewn-cf.sent .wpcf7-response-output{background:#E3F6EC;color:#0E7C4A}
.ewn-cf .wpcf7-spinner{display:none}
.ewn-cf.submitting [type=submit]{opacity:.65;cursor:progress}

/* option groups: the real checkbox or radio covers its tile, so clicks and keyboard work as usual */
.ewn-cf .ewn-pills .wpcf7-form-control,.ewn-talk .wpcf7-checkbox{display:flex;flex-wrap:wrap;gap:8px}
.ewn-cf .wpcf7-list-item{margin:0;display:flex}
.ewn-cf .wpcf7-list-item label{position:relative;display:flex;flex-direction:row;cursor:pointer;gap:0}
.ewn-cf .wpcf7-list-item input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:1}
.ewn-cf .ewn-pills .wpcf7-list-item-label{display:inline-block;padding:10px 15px;border-radius:999px;border:1px solid #E1DFD8;font-size:14px;font-weight:600;line-height:1.3;background:#fff;color:#0E121A}
.ewn-cf .ewn-pills input:checked+.wpcf7-list-item-label{background:#3838B8;border-color:#3838B8;color:#fff}
.ewn-cf .ewn-pills input:focus-visible+.wpcf7-list-item-label{outline:3px solid #8585FA;outline-offset:2px}

/* ---------- quote form: three steps ---------- */
.ewn-fb-quote .ewn-qhead{display:flex;justify-content:space-between;align-items:center;gap:12px}
.ewn-fb-quote .ewn-qhead strong{font-size:21px;line-height:1.25}
.ewn-fb-quote .ewn-stepcount{flex:none;font-family:'JetBrains Mono',monospace;font-size:11px;color:#2A2A98;background:#ECECFB;padding:6px 10px;border-radius:999px;white-space:nowrap}
.ewn-fb-quote .ewn-progress{display:none;list-style:none;margin:0;padding:0;grid-template-columns:repeat(3,1fr);gap:8px}
.ewn-fb-quote.is-js .ewn-progress{display:grid}
.ewn-fb-quote .ewn-progress li{margin:0;padding-top:9px;border-top:4px solid #E9E7F7;font-size:12px;font-weight:600;color:#8A8F9E}
.ewn-fb-quote .ewn-progress li.is-now{border-color:#3838B8;color:#0E121A}
.ewn-fb-quote .ewn-progress li.is-done{border-color:#3FCB8E;color:#0E7C4A}
.ewn-fb-quote .ewn-progress li.is-done::after{content:" \2713"}
.ewn-fb-quote .ewn-step{display:flex;flex-direction:column;gap:12px}
.ewn-fb-quote .ewn-step[hidden]{display:none}
.ewn-fb-quote .ewn-q{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:4px 12px;margin:0;font-size:17px;font-weight:700}
.ewn-fb-quote input[type=text],.ewn-fb-quote input[type=email],.ewn-fb-quote input[type=tel],.ewn-fb-quote textarea{font:inherit;font-size:16px;font-weight:400;border:1px solid #DEDBD3;background:#FBFAF8;color:#0E121A;border-radius:14px;padding:0 16px;height:50px}
.ewn-fb-quote textarea{height:auto;padding:12px 16px;resize:vertical}
.ewn-fb-quote .ewn-pickerr{margin:0;padding:10px 14px;border-radius:12px;background:#FFF1D1;color:#6E4700;font-size:14px;font-weight:600}
.ewn-fb-quote .ewn-pickerr[hidden]{display:none}
.ewn-fb-quote .ewn-actions{display:flex;gap:10px;margin-top:4px}
.ewn-fb-quote .ewn-actions button,.ewn-fb-quote .ewn-actions input[type=submit]{flex:1;min-height:54px;border-radius:999px;border:2px solid #3838B8;background:#3838B8;color:#fff;font:600 16px/1.2 'Instrument Sans',system-ui,sans-serif;padding:12px 22px;cursor:pointer;height:auto}
.ewn-fb-quote .ewn-actions button:hover,.ewn-fb-quote .ewn-actions input[type=submit]:hover{background:#2A2A98;border-color:#2A2A98}
.ewn-fb-quote .ewn-actions .ewn-back{flex:none;background:#fff;color:#0E121A;border-color:#E1DEF5}
.ewn-fb-quote .ewn-actions .ewn-back:hover{background:#F4F3EF;border-color:#C9C6BD}
.ewn-fb-quote:not(.is-js) .ewn-next,.ewn-fb-quote:not(.is-js) .ewn-back{display:none}
@media (prefers-reduced-motion:no-preference){.ewn-fb-quote.is-js .ewn-step:not([hidden]){animation:ewnStepIn .3s ease both}}
@keyframes ewnStepIn{from{opacity:0;transform:translateX(14px)}to{opacity:1;transform:none}}

/* first step: service tiles */
.ewn-tiles .wpcf7-form-control{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ewn-cf .ewn-tiles .wpcf7-list-item label{width:100%}
.ewn-tiles .wpcf7-list-item-label{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12h.01M12 12h.01M16 12h.01'/%3E%3C/svg%3E");
  position:relative;display:grid;grid-template-columns:38px minmax(0,1fr);align-content:center;column-gap:11px;width:100%;min-height:78px;box-sizing:border-box;padding:12px;border:2px solid #E9E7E1;border-radius:16px;background:#fff;font-size:14.5px;font-weight:700;line-height:1.25;color:#0E121A;transition:border-color .15s,background .15s,transform .15s}
.ewn-tiles .wpcf7-list-item-label::before{content:"";grid-column:1;grid-row:1/span 2;align-self:center;width:38px;height:38px;border-radius:11px;background-color:#ECECFB;
  background-image:linear-gradient(#3838B8,#3838B8);-webkit-mask:linear-gradient(#000,#000);mask:linear-gradient(#000,#000)}
.ewn-tiles .wpcf7-list-item-label::before{background:#3838B8;-webkit-mask:var(--ico) center/22px no-repeat,linear-gradient(rgba(0,0,0,.12),rgba(0,0,0,.12));mask:var(--ico) center/22px no-repeat,linear-gradient(rgba(0,0,0,.12),rgba(0,0,0,.12))}
.ewn-tiles .wpcf7-list-item-label::after{grid-column:2;font-size:12.5px;font-weight:400;color:#5B6170;line-height:1.35;margin-top:3px}
.ewn-tiles label:hover .wpcf7-list-item-label{border-color:#8585FA;transform:translateY(-1px)}
.ewn-tiles input:checked+.wpcf7-list-item-label{border-color:#3838B8;background:#F2F2FF;box-shadow:0 8px 20px -10px rgba(56,56,184,.55)}
.ewn-tiles .wpcf7-list-item:has(input:checked)::after{content:"\2713";position:absolute;top:-7px;right:-5px;width:22px;height:22px;border-radius:50%;background:#3838B8;color:#fff;font-size:12px;font-weight:700;display:grid;place-items:center;border:2px solid #fff}
.ewn-cf .ewn-tiles .wpcf7-list-item{position:relative}
.ewn-tiles input:focus-visible+.wpcf7-list-item-label{outline:3px solid #8585FA;outline-offset:2px}
/* each tile's picture and short line, matched by its value: rename an option and it shows the plain tile */
.ewn-tiles input[value="New website design"]+.wpcf7-list-item-label{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='2'/%3E%3Cpath d='M8 20h8M12 16v4'/%3E%3C/svg%3E")}
.ewn-tiles input[value="New website design"]+.wpcf7-list-item-label::after{content:"A fast site built to win customers"}
.ewn-tiles input[value="Redesign my ugly website"]+.wpcf7-list-item-label{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4l6 6L9 21H3v-6z'/%3E%3Cpath d='M12 6l6 6M19 2v3M17.5 3.500h3'/%3E%3C/svg%3E")}
.ewn-tiles input[value="Redesign my ugly website"]+.wpcf7-list-item-label::after{content:"Fresh look, faster, works on phones"}
.ewn-tiles input[value="Marketing and more customers"]+.wpcf7-list-item-label{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11v3h3l9 5V6l-9 5zM18 9a5 5 0 0 1 0 7M7 15l1.5 5'/%3E%3C/svg%3E")}
.ewn-tiles input[value="Marketing and more customers"]+.wpcf7-list-item-label::after{content:"Local SEO, Google and social ads"}
.ewn-tiles input[value="Online store"]+.wpcf7-list-item-label{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 12H6zM9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E")}
.ewn-tiles input[value="Online store"]+.wpcf7-list-item-label::after{content:"Sell products and take payments"}
.ewn-tiles input[value="Software or AI automation"]+.wpcf7-list-item-label{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.6L19.5 10.5l-5.6 1.9L12 18l-1.9-5.6L4.5 10.5l5.6-1.9zM19 16v4M17 18h4'/%3E%3C/svg%3E")}
.ewn-tiles input[value="Software or AI automation"]+.wpcf7-list-item-label::after{content:"Apps, chatbots and workflows"}
.ewn-tiles input[value="Something else"]+.wpcf7-list-item-label::after{content:"Tell us and we will help"}
/* phones: two compact columns, so every choice and the button fit on one screen */
@media (max-width:560px){
  .ewn-tiles .wpcf7-form-control{gap:8px}
  .ewn-tiles .wpcf7-list-item-label{grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center;row-gap:7px;min-height:92px;padding:11px 6px;font-size:13.5px}
  .ewn-tiles .wpcf7-list-item-label::before{grid-column:1;grid-row:auto;width:34px;height:34px}
  .ewn-tiles .wpcf7-list-item-label::after{display:none}
}
/* phones: nothing floats over the quote form while it is being filled in */
@media (max-width:781px){
  body.ewn-form-on .ewn-stickycta,body.ewn-form-on .ewn-float{opacity:0;visibility:hidden;pointer-events:none}
}

/* ---------- contact page (dark card) ---------- */
.ewn-fb-contact.ewn-cf .ewn-ftop{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:12px}
.ewn-fb-contact.ewn-cf input[type=text],.ewn-fb-contact.ewn-cf input[type=email],.ewn-fb-contact.ewn-cf input[type=tel],.ewn-fb-contact.ewn-cf textarea{font-weight:400}
.ewn-fb-contact.ewn-cf .ewn-pills .wpcf7-list-item-label{background:transparent;color:#fff;border-color:rgba(255,255,255,.24)}
.ewn-fb-contact.ewn-cf .ewn-pills input:checked+.wpcf7-list-item-label{background:#fff;border-color:#fff;color:#0E121A}
.ewn-fb-contact.ewn-cf input[type=submit]{width:100%;height:56px;border:0;border-radius:999px;background:#3838B8;color:#fff;font:600 16px/1.2 'Instrument Sans',system-ui,sans-serif;cursor:pointer}
.ewn-fb-contact.ewn-cf .ewn-fine{color:#A9AEC0;text-align:left}
.ewn-fb-contact.ewn-cf .ewn-tip,.ewn-fb-contact.ewn-cf .wpcf7-not-valid-tip{color:#FFB4AB}

/* ---------- /start/ conversation ---------- */
.ewn-talk.ewn-cf{margin:0}
.ewn-talk.ewn-cf label{gap:6px}
.ewn-talk.ewn-cf input[type=text],.ewn-talk.ewn-cf input[type=email],.ewn-talk.ewn-cf input[type=tel]{font-weight:400}
.ewn-talk.ewn-cf .ewn-two{grid-template-columns:minmax(0,1fr)}
.ewn-talk.ewn-cf .ewn-talk-chips label{flex-direction:row;gap:0}
.ewn-talk.ewn-cf .ewn-hp{position:absolute!important}
.ewn-talk.ewn-cf .ewn-talk-actions input[type=submit]{width:auto}
