/* Dark theme for the contact form embedded on medicalgogo.co.uk/contact.html.
   Loaded by forms.medicalgogo.co.uk/form-embed.php. Matches the main site's tokens. */
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500&family=Geist+Mono:wght@400;500&display=swap");

:root{
  --kelp:#003734; --deep:#011d1c; --line:#0a4440; --line-2:#1d5a55;
  --mist:#edfffe; --silver:#bbc7c6; --slate:#98a4a3;
  --cyan:#5cf0dc; --lilac:#efb8ff; --err:#ffb4a8;
  color-scheme:dark;
}
html,body{background:var(--kelp)!important;margin:0!important}
body{padding:0 0 16px!important;color:var(--silver);font:15px/1.5 "Geist",ui-sans-serif,system-ui,-apple-system,sans-serif;-webkit-font-smoothing:antialiased}
.fluentform{font-family:inherit!important}

/* labels: small mono caps like the site's .label */
.fluentform .ff-el-input--label label{
  font-family:"Geist Mono",ui-monospace,Menlo,monospace!important;font-size:.72rem!important;font-weight:400!important;
  letter-spacing:.12em;text-transform:uppercase;color:var(--slate)!important;margin-bottom:.15rem}
.fluentform .ff-el-is-required.asterisk-right label:after{color:var(--cyan)!important;margin-left:.25em}
.fluentform .ff-el-group{margin-bottom:1.15rem!important}

/* inputs */
.fluentform .ff-el-form-control{
  background:var(--deep)!important;color:var(--mist)!important;border:1px solid var(--line)!important;border-radius:10px!important;
  min-height:48px;padding:.7rem .9rem!important;font:inherit!important;font-size:16px!important; /* 16px stops iOS zooming in */
  box-shadow:none!important;transition:border-color .2s,box-shadow .2s}
.fluentform .ff-el-form-control::placeholder{color:#6f7d7c;opacity:1}
.fluentform .ff-el-form-control:hover{border-color:var(--line-2)!important}
.fluentform .ff-el-form-control:focus{outline:0!important;border-color:var(--cyan)!important;box-shadow:0 0 0 3px rgba(92,240,220,.18)!important}
.fluentform textarea.ff-el-form-control{min-height:140px;resize:vertical}
.fluentform select.ff-el-form-control{
  -webkit-appearance:none;appearance:none;padding-right:2.5rem!important;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2398a4a3' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;background-position:right 1rem center!important}
.fluentform select.ff-el-form-control option{background:var(--deep);color:var(--mist)}

/* checkboxes */
.fluentform .ff-el-form-check-label{display:flex!important;gap:.7rem;align-items:flex-start;color:var(--silver)!important;font-size:.92rem;line-height:1.45;cursor:pointer}
.fluentform .ff-el-form-check-input{
  -webkit-appearance:none!important;appearance:none!important;flex:none;width:20px!important;height:20px!important;margin:.1rem 0 0!important;
  position:static!important;top:auto!important;left:auto!important;
  border:1px solid var(--line-2)!important;border-radius:6px!important;background:var(--deep)!important;cursor:pointer;display:grid!important;place-content:center}
.fluentform .ff-el-form-check-input:checked{background:linear-gradient(135deg,var(--cyan),var(--lilac))!important;border-color:transparent!important}
.fluentform .ff-el-form-check-input:checked:after{content:"";width:10px;height:6px;border:2px solid var(--deep);border-top:0;border-right:0;transform:translateY(-1px) rotate(-45deg)}
.fluentform .ff-el-form-check-input:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}
.fluentform .ff-el-form-check{margin-bottom:0!important}

/* submit: the site's gradient pill */
.fluentform .ff_submit_btn_wrapper{margin-top:1.6rem!important;margin-bottom:0!important}
.fluentform .ff-btn-submit,.fluentform .ff-btn-submit:not(.ff_btn_no_style){
  background:linear-gradient(100deg,var(--cyan),var(--lilac))!important;color:var(--deep)!important;
  border:0!important;border-radius:999px!important;height:48px;padding:0 1.6rem!important;
  font:500 .95rem/1 "Geist",ui-sans-serif,system-ui,sans-serif!important;
  box-shadow:0 8px 22px -12px rgba(92,240,220,.7)!important; /* tight glow: the frame edge would clip a wide one */cursor:pointer;opacity:1!important;transition:transform .2s}
.fluentform .ff-btn-submit:hover{transform:translateY(-1px)}
.fluentform .ff-btn-submit:focus-visible{outline:2px solid var(--mist);outline-offset:3px}
@media(max-width:560px){.fluentform .ff-btn-submit{width:100%}}

/* validation and messages */
.fluentform .ff-el-is-error .ff-el-form-control{border-color:var(--err)!important}
.fluentform .error,.fluentform .text-danger,.ff-errors-in-stack{color:var(--err)!important;font-size:.85rem;margin-top:.35rem}
.ff-message-success{
  background:var(--deep)!important;color:var(--mist)!important;border:1px solid var(--line)!important;border-left:3px solid var(--cyan)!important;
  border-radius:12px!important;padding:1.2rem 1.3rem!important;box-shadow:none!important;font-size:1rem}
.ff-message-success *{color:inherit!important}

/* two-column name row on wider frames, one column on phones */
@media(max-width:560px){.fluentform .ff-t-container{display:block!important}.fluentform .ff-t-cell{padding:0!important}}

@media(prefers-reduced-motion:reduce){.fluentform *{transition:none!important}}
