/* EdifyKids enquiry forms (own code): floating labels, soft rounded fields, orange focus ring, gradient button. Used on the home page and every inner page. */
.ek-form{--f-main:var(--ek-live-main,var(--ek-orange,#F28C28));--f-ink:var(--ek-live-ink,var(--ek-ink,#1F2A44));--f-line:#e8e1d6;width:100%;font-family:inherit;color:var(--f-ink)}
.ek-form *{box-sizing:border-box}
.ek-form__hp{position:absolute!important;left:-9999px;opacity:0;height:0;overflow:hidden}
.ek-form__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px 14px}
.ek-form__f{position:relative}.ek-form__f.is-full{grid-column:1/-1}

form.ek-form input,form.ek-form select,form.ek-form textarea{display:block;width:100%;height:60px;margin:0;padding:25px 16px 8px;border:1.5px solid var(--f-line);border-radius:16px;background:#fffdfa;box-shadow:0 1px 0 rgba(31,42,68,.03);font:400 16px/1.3 inherit;font-family:inherit;color:var(--f-ink);transition:border-color .2s,box-shadow .25s,background .2s;-webkit-appearance:none;appearance:none}
form.ek-form textarea{height:auto;min-height:124px;padding-top:28px;resize:vertical}
form.ek-form input:hover,form.ek-form select:hover,form.ek-form textarea:hover{border-color:#d9cfbf;background:#fff}
form.ek-form input:focus,form.ek-form select:focus,form.ek-form textarea:focus{outline:0;border-color:var(--f-main);background:#fff;box-shadow:0 0 0 4px color-mix(in srgb,var(--f-main) 20%,transparent),0 8px 20px rgba(31,42,68,.06)}
form.ek-form input:user-invalid,form.ek-form select:user-invalid,form.ek-form textarea:user-invalid{border-color:#d9534f;box-shadow:0 0 0 4px rgba(217,83,79,.12)}

/* floating label: sits inside the field, lifts when focused or filled */
.ek-form__fl{position:absolute;left:17px;top:19px;max-width:calc(100% - 40px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15.5px;line-height:1.2;color:#8a8f9c;pointer-events:none;transform-origin:left top;transition:transform .2s cubic-bezier(.22,.9,.3,1),color .2s}
.ek-form__f input:focus~.ek-form__fl,.ek-form__f input:not(:placeholder-shown)~.ek-form__fl,.ek-form__f textarea:focus~.ek-form__fl,.ek-form__f textarea:not(:placeholder-shown)~.ek-form__fl,.ek-form__fl.is-up{transform:translateY(-12px) scale(.78)}
.ek-form__f input:focus~.ek-form__fl,.ek-form__f textarea:focus~.ek-form__fl,.ek-form__f:focus-within .ek-form__fl.is-up{color:var(--f-main)}
.ek-form__fl.is-up{max-width:calc(128% - 52px);color:#7b8190;font-weight:600}
.ek-form__f:focus-within .ek-form__fl.is-up{color:var(--f-main)}

/* select arrow + date icon */
form.ek-form select{padding-right:44px;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23F28C28' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center}
form.ek-form input[type=date]{cursor:pointer}form.ek-form input[type=date]::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.55;transition:opacity .2s}form.ek-form input[type=date]:hover::-webkit-calendar-picker-indicator{opacity:1}

/* button */
form.ek-form .ek-form__btn{position:relative;display:inline-flex;align-items:center;gap:12px;margin-top:22px;padding:17px 34px;border:0!important;border-radius:60px;background:linear-gradient(135deg,#FFA040 0%,var(--f-main) 45%,#E5532F 100%)!important;background-size:140% 100%;color:#fff!important;font:700 15.5px/1 inherit;font-family:inherit;letter-spacing:.05em;text-transform:uppercase;cursor:pointer;overflow:hidden;box-shadow:0 10px 24px rgba(242,140,40,.38);transition:transform .3s cubic-bezier(.22,.9,.3,1),box-shadow .3s,background-position .4s}
form.ek-form .ek-form__btn svg{transition:transform .3s}
form.ek-form .ek-form__btn::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.35) 50%,transparent 65%);transform:translateX(-120%);transition:transform .7s}
form.ek-form .ek-form__btn:hover{transform:translateY(-3px);background-position:100% 0;box-shadow:0 16px 30px rgba(242,140,40,.45)}form.ek-form .ek-form__btn:hover::after{transform:translateX(120%)}form.ek-form .ek-form__btn:hover svg{transform:translateX(5px)}
form.ek-form .ek-form__btn:active{transform:translateY(-1px)}form.ek-form .ek-form__btn:focus-visible{outline:3px solid rgba(31,42,68,.35);outline-offset:3px}form.ek-form .ek-form__btn:disabled{opacity:.65;cursor:wait;transform:none}

.ek-form__note{margin:14px 0 0;font-size:13.5px;color:#7b8190}.ek-form__note::before{content:"🔒 ";font-size:12px}
.ek-form__msg{min-height:22px;margin:10px 0 0;font-size:15.5px;font-weight:600;color:#2f855a}.ek-form__msg.is-err{color:#c53030}

@media(max-width:560px){.ek-form__grid{grid-template-columns:1fr}form.ek-form .ek-form__btn{width:100%;justify-content:center}}
@media(prefers-reduced-motion:reduce){.ek-form *{transition:none!important}form.ek-form .ek-form__btn::after{display:none}}
