/* Floating labels: the label sits inside the box and floats up to the border while typing.
   Remove the require line for inc/floatlabels.php in functions.php to go back to the old look. */
form .fl{position:relative;display:block;margin:0 0 14px;padding:9px 0 0;text-align:left}
form .fl br,form .fl+br{display:none}
form .fl input:not([type=checkbox]):not([type=radio]):not([type=file]),form .fl textarea,form .fl select{display:block;width:100%;max-width:100%;box-sizing:border-box;height:54px;margin:0;padding:13px 15px;border:1.5px solid #bccac7;border-radius:10px;background-color:#fff;box-shadow:none;outline:0;font:400 16px/1.5 'Mukta',system-ui,sans-serif;color:var(--ink);transition:border-color .2s,box-shadow .2s}
form .fl textarea{height:130px;min-height:100px;resize:vertical;padding-top:16px}
form .fl input:hover,form .fl textarea:hover,form .fl select:hover{border-color:#8fa6a2}
form .fl input:focus,form .fl textarea:focus,form .fl select:focus{border-color:var(--teal);box-shadow:0 0 0 1px var(--teal)}
form .fl .fl-text{position:absolute;left:11px;top:25px;z-index:2;max-width:calc(100% - 22px);padding:0 6px;font:400 16px/22px 'Mukta',system-ui,sans-serif;color:var(--slate);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;background:linear-gradient(transparent 45%,transparent 45%);transition:top .18s ease,font-size .18s ease,color .18s ease}
form .fl.fl-area .fl-text{white-space:normal;max-height:66px}
form .fl.fl-up .fl-text{top:0;font-size:13.5px;font-weight:600;line-height:18px;white-space:nowrap;color:var(--slate);background:linear-gradient(transparent 46%,#fff 46%)}
form .fl:focus-within .fl-text{color:var(--teal)}
form .fl .fl-req{color:#c5221f;margin-left:3px}
/* example text only appears once the label has moved out of the way */
form .fl:not(.fl-up) input::placeholder,form .fl:not(.fl-up) textarea::placeholder{color:transparent}
form .fl .hft-pw{display:block;position:relative}
form .fl .hft-pw input{padding-right:72px}
form .fl .wpcf7-form-control-wrap{display:block}
form .fl .wpcf7-not-valid-tip{margin-top:5px;font-size:14px;font-weight:400}
form .fl:has(.wpcf7-not-valid) input,form .fl:has(.wpcf7-not-valid) textarea,form .fl:has(.wpcf7-not-valid) select{border-color:#c5221f}
/* file pickers keep a fixed label above them */
form .fl-file{display:block;margin:0 0 14px}
@keyframes fl-autofill{from{opacity:1}to{opacity:1}}
form .fl input:-webkit-autofill{animation-name:fl-autofill;animation-duration:.01s}
@media(prefers-reduced-motion:reduce){form .fl .fl-text{transition:none}}
/* donation form (GiveWP): same look, with its own labels used as the floating text */
form.give-form .fl{padding-top:9px!important;margin-bottom:14px!important}
form.give-form.give-form .fl input:not([type=checkbox]):not([type=radio]),form.give-form.give-form .fl select,form.give-form.give-form .fl textarea{height:54px!important;margin:0!important;padding:13px 15px!important;border:1.5px solid #bccac7!important;border-radius:10px!important;line-height:1.5!important;font-size:16px!important;background-color:#fff!important}
form.give-form.give-form .fl input:focus,form.give-form.give-form .fl select:focus{border-color:var(--teal)!important;box-shadow:0 0 0 1px var(--teal)!important}
form.give-form.give-form .fl label.fl-text{position:absolute!important;display:block!important;top:25px;left:11px;width:auto!important;margin:0!important;font-size:16px;font-weight:400!important;line-height:22px;color:var(--slate)}
form.give-form.give-form .fl.fl-up label.fl-text{top:0;font-size:13.5px;font-weight:600!important;line-height:18px}
form.give-form.give-form .fl label.fl-text .give-required-indicator{color:#c5221f}
form.give-form.give-form .fl label.fl-text .give-tooltip{display:none}
/* newsletter sign-up in the footer */
.hft-news-form{align-items:flex-end}
.hft-news-form .fl{flex:1 1 160px;min-width:0;margin:0}
.hft-news-form.hft-news-form .fl input{width:100%;height:54px;padding:13px 15px;border:2px solid transparent;border-radius:10px;font-size:16px}
.hft-news-form.hft-news-form .fl input:focus{border-color:var(--gold);box-shadow:none}
form.hft-news-form .fl .fl-text{top:25px}
form.hft-news-form .fl.fl-up .fl-text{top:0;color:var(--teal);background:#fff;border-radius:6px;padding:0 8px}
.hft-news-form button{min-height:54px;border-radius:10px}
