/* Styles for the estimator, consultation booking, live demos, portfolio and the site assistant.
   Uses the colour variables from page.css, so it follows the light and dark themes. */

.fx-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; margin-top: 1.5rem; }
@media (max-width: 900px) { .fx-wrap { grid-template-columns: 1fr; } }

.fx-card { border: 1px solid var(--border); background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border-radius: 18px; padding: 1.3rem 1.4rem; }
.fx-card + .fx-card { margin-top: 1rem; }
.fx-card h2, .fx-card h3 { margin: 0 0 .35rem; font-family: "Space Grotesk", Inter, sans-serif; }
.fx-card h2::after { display: none; }
.fx-step { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.fx-hint { color: var(--muted); font-size: .9rem; margin: .1rem 0 .8rem; }

.fx-opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.fx-opt { position: relative; }
.fx-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.fx-opt span { display: inline-block; padding: .5rem 1rem; border-radius: 99px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: .92rem; transition: border-color .2s, background .2s; }
.fx-opt input:hover + span { border-color: rgba(224,164,60,.6); }
.fx-opt input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.fx-opt input:checked + span { background: linear-gradient(135deg, var(--orange), var(--violet)); border-color: transparent; color: #fff; }

.fx-quote { position: sticky; top: 7.5rem; text-align: center; }
@media (max-width: 900px) { .fx-quote { position: static; } }
.fx-amount { font: 700 1.9rem/1.2 "Space Grotesk", Inter, sans-serif; background: linear-gradient(90deg, var(--gold), var(--orange)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin: .4rem 0; }
.fx-quote dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem .9rem; margin: .8rem 0 0; text-align: left; font-size: .9rem; }
.fx-quote dt { color: var(--muted); }
.fx-quote dd { margin: 0; text-align: right; font-weight: 600; }
.fx-note { color: var(--muted); font-size: .78rem; margin-top: .8rem; line-height: 1.5; }

.fx-form { display: grid; gap: 1rem; margin: 0; max-width: none; padding: 0; border: 0; background: none; }
.fx-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .fx-form .row { grid-template-columns: 1fr; } }
.fx-form label { display: grid; gap: .35rem; font-size: .86rem; color: var(--muted); font-weight: 600; }
.fx-form input, .fx-form select, .fx-form textarea { font: inherit; font-size: .97rem; color: var(--text); background: rgba(0,0,0,.22); border: 1px solid var(--border); border-radius: 12px; padding: .7rem .9rem; width: 100%; box-sizing: border-box; }
:root[data-theme="light"] .fx-form input, :root[data-theme="light"] .fx-form select, :root[data-theme="light"] .fx-form textarea { background: rgba(0,0,0,.04); }
.fx-form input:focus, .fx-form select:focus, .fx-form textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,53,.22); }
.fx-form textarea { min-height: 110px; resize: vertical; }
.fx-form select option { color: #171533; background: #fff; }
.fx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fx-status { min-height: 1.4em; font-size: .92rem; margin: 0; }
.fx-status.ok { color: #4ade80; }
.fx-status.err { color: #f87171; }
.fx-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem 1.4rem; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.fx-btn:hover { border-color: rgba(224,164,60,.6); text-decoration: none; }
.fx-btn.primary { background: linear-gradient(135deg, var(--orange), var(--violet)); border-color: transparent; color: #fff; box-shadow: 0 8px 24px rgba(139,92,246,.3); }
.fx-btn:disabled { opacity: .6; cursor: not-allowed; }
.fx-btn.small { padding: .4rem .9rem; font-size: .85rem; }

/* demos */
.fx-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.5rem 0 1rem; }
.fx-tab { padding: .55rem 1.2rem; border-radius: 99px; border: 1px solid var(--border); background: var(--card); color: var(--text); font: inherit; cursor: pointer; }
.fx-tab[aria-selected="true"] { background: linear-gradient(135deg, var(--orange), var(--violet)); border-color: transparent; color: #fff; }
.fx-panel[hidden] { display: none; }
.fx-toolbar { display: flex; flex-wrap: wrap; gap: .45rem; margin: .6rem 0; }
.fx-area { width: 100%; box-sizing: border-box; min-height: 240px; font: inherit; font-size: 1rem; line-height: 1.6; color: var(--text); background: rgba(0,0,0,.22); border: 1px solid var(--border); border-radius: 14px; padding: .9rem 1rem; resize: vertical; }
:root[data-theme="light"] .fx-area { background: rgba(0,0,0,.04); }
.fx-area:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,53,.22); }
.fx-meta { color: var(--muted); font-size: .85rem; margin: .3rem 0; }
.fx-result { white-space: pre-wrap; border: 1px dashed var(--border); border-radius: 12px; padding: .8rem 1rem; margin-top: .6rem; font-size: .95rem; line-height: 1.6; }
.fx-result[hidden] { display: none; }
.fx-drop { border: 2px dashed var(--border); border-radius: 14px; padding: 1.4rem; text-align: center; color: var(--muted); }
.fx-drop.over { border-color: var(--orange); }
.fx-files { list-style: none; margin: .8rem 0; padding: 0; display: grid; gap: .4rem; }
.fx-files li { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--border); border-radius: 10px; padding: .4rem .7rem; font-size: .9rem; }
.fx-files li span.n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-files button { background: none; border: 1px solid var(--border); border-radius: 8px; color: var(--text); cursor: pointer; padding: .1rem .5rem; font: inherit; }
.fx-op { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; margin: .5rem 0; }
.fx-op label { display: grid; gap: .25rem; font-size: .84rem; color: var(--muted); }
.fx-op input, .fx-op select { font: inherit; color: var(--text); background: rgba(0,0,0,.22); border: 1px solid var(--border); border-radius: 10px; padding: .45rem .7rem; }
.fx-op select option { color: #171533; background: #fff; }

/* portfolio */
.fx-empty { text-align: center; padding: 2.2rem 1.2rem; }
.fx-case h3 { margin-top: .3rem; }
.fx-case .fx-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0; }
.fx-case .fx-tags span { font-size: .75rem; padding: .15rem .6rem; border-radius: 99px; border: 1px solid var(--border); color: var(--muted); }
.fx-case dl { margin: .6rem 0 0; font-size: .92rem; }
.fx-case dt { color: var(--gold); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; margin-top: .6rem; }
.fx-case dd { margin: .1rem 0 0; color: var(--muted); }

/* site assistant */
.as-fab { position: fixed; left: 1rem; bottom: 1rem; z-index: 1500; display: flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border: 0; border-radius: 99px; color: #fff; font: 600 .92rem Inter, system-ui, sans-serif; cursor: pointer; background: linear-gradient(135deg, #ff6b35, #8b5cf6); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.as-fab:hover { transform: translateY(-2px); }
.as-box { position: fixed; left: 1rem; bottom: 4.6rem; z-index: 1500; width: min(380px, calc(100vw - 2rem)); max-height: min(560px, calc(100vh - 7rem)); display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); background: #221f45; color: #f3eefc; box-shadow: 0 24px 60px rgba(0,0,0,.55); font: 15px/1.5 Inter, system-ui, sans-serif; }
.as-box[hidden] { display: none; }
:root[data-theme="light"] .as-box { background: #fff; color: #0e0918; border-color: rgba(0,0,0,.12); }
.as-head { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1rem; background: linear-gradient(135deg, #ff6b35, #8b5cf6); color: #fff; }
.as-head strong { font-family: "Space Grotesk", Inter, sans-serif; }
.as-head small { display: block; opacity: .85; font-size: .72rem; }
.as-x { background: none; border: 0; color: #fff; font-size: 1.3rem; cursor: pointer; line-height: 1; }
.as-log { flex: 1; overflow-y: auto; padding: .9rem; display: flex; flex-direction: column; gap: .6rem; min-height: 180px; }
.as-msg { max-width: 88%; padding: .55rem .8rem; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.as-msg.bot { background: rgba(139,92,246,.18); align-self: flex-start; border-bottom-left-radius: 4px; }
.as-msg.me { background: linear-gradient(135deg, #ff6b35, #8b5cf6); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.as-msg a { color: inherit; font-weight: 600; text-decoration: underline; }
.as-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.as-chip { border: 1px solid rgba(139,92,246,.6); background: transparent; color: inherit; border-radius: 99px; padding: .3rem .8rem; font: inherit; font-size: .85rem; cursor: pointer; }
.as-chip:hover { background: rgba(139,92,246,.25); }
.as-form { display: flex; gap: .4rem; padding: .6rem; border-top: 1px solid rgba(255,255,255,.12); }
.as-form input { flex: 1; min-width: 0; font: inherit; color: inherit; background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: .5rem .7rem; }
.as-form button { border: 0; border-radius: 10px; padding: .5rem .9rem; color: #fff; font: inherit; font-weight: 600; cursor: pointer; background: linear-gradient(135deg, #ff6b35, #8b5cf6); }
.as-lead { display: grid; gap: .4rem; }
.as-lead input, .as-lead textarea { font: inherit; color: inherit; background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: .45rem .6rem; width: 100%; box-sizing: border-box; }
.as-lead button { border: 0; border-radius: 10px; padding: .5rem; color: #fff; font: inherit; font-weight: 600; cursor: pointer; background: linear-gradient(135deg, #ff6b35, #8b5cf6); }
@media (max-width: 520px) { .as-fab span { display: none; } .as-fab { padding: .8rem; } }

/* ---- Phones: no iOS zoom on fields, 44px tap targets, chat clear of content ---- */
@media (max-width: 640px) {
  input, select, textarea, .as-form input, .as-lead input, .as-lead textarea { font-size: 16px; }
  input:not([type="checkbox"]):not([type="radio"]), select { min-height: 46px; }
  .as-x, .as-chip, .as-form button { min-height: 44px; min-width: 44px; }
  .as-box { left: .5rem; right: .5rem; width: auto; max-height: calc(100dvh - 7rem); }
}
.as-fab { bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 1024px) { footer, .footer { padding-bottom: 5rem; } }

/* ---- Buttons: disabled / busy state and keyboard focus ---- */
.btn:disabled, .btn[aria-busy="true"], .fx-btn:disabled, button.submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--accent-light, #a78bfa); outline-offset: 2px; }

/* ---- Proof strip and testimonials (home) ---- */
.proof-strip { padding: 1rem 0; border-block: 1px solid var(--border, rgba(255,255,255,.12)); }
.proof-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; text-align: center; }
.proof-list li { display: flex; flex-direction: column; gap: .1rem; min-width: 9rem; }
.proof-list strong { font-family: "Space Grotesk", Inter, sans-serif; font-size: 1.05rem; }
.proof-list span { font-size: .8rem; color: var(--text-secondary, var(--muted, #8da3bb)); }
.proof-link { margin: .6rem 0 0; text-align: center; font-size: .9rem; }
.proof-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.proof-quote { margin: 0; padding: 1.2rem 1.3rem; border: 1px solid var(--border, rgba(255,255,255,.12)); border-radius: 16px; background: var(--bg-elevated, rgba(255,255,255,.04)); }
.proof-quote blockquote { margin: 0 0 .8rem; line-height: 1.55; }
.proof-quote figcaption { font-size: .85rem; color: var(--text-secondary, var(--muted, #8da3bb)); }
#pfGrid { align-items: stretch; }

/* ---- Team (home) ---- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.team-card { padding: 1.3rem; border: 1px solid var(--border, rgba(255,255,255,.12)); border-radius: 16px; background: var(--bg-elevated, rgba(255,255,255,.04)); text-align: center; }
.team-avatar { width: 64px; height: 64px; margin: 0 auto .8rem; border-radius: 50%; display: grid; place-items: center; font: 700 1.2rem "Space Grotesk", Inter, sans-serif; color: #fff; background: linear-gradient(135deg, #ff6b35, #8b5cf6); }
.team-card h3 { margin: 0 0 .15rem; font-size: 1.05rem; }
.team-role { font-size: .85rem; color: var(--text-secondary, var(--muted, #8da3bb)); margin-bottom: .6rem; }
.team-card p { font-size: .9rem; line-height: 1.5; margin: 0 0 .6rem; }

/* WhatsApp logo on the Send-via-WhatsApp buttons */
#wizWa::before, #enquiryWa::before { content: ""; display: inline-block; width: 1.25em; height: 1.25em; margin-right: .5em; vertical-align: -.25em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M17.47 14.38c-.3-.15-1.76-.87-2.03-.97-.27-.1-.47-.15-.67.15-.2.3-.77.97-.94 1.17-.17.2-.35.22-.65.07-.3-.15-1.26-.46-2.4-1.48-.89-.79-1.49-1.77-1.66-2.07-.17-.3-.02-.46.13-.61.14-.13.3-.35.45-.52.15-.17.2-.3.3-.5.1-.2.05-.37-.02-.52-.07-.15-.67-1.62-.92-2.22-.24-.58-.49-.5-.67-.51h-.57c-.2 0-.52.07-.8.37-.27.3-1.04 1.02-1.04 2.48s1.07 2.88 1.21 3.08c.15.2 2.1 3.2 5.08 4.49.71.31 1.26.49 1.69.63.71.23 1.36.2 1.87.12.57-.08 1.76-.72 2.01-1.41.25-.7.25-1.29.17-1.41-.07-.12-.27-.2-.57-.35zM12.05 21.8h-.01a9.87 9.87 0 0 1-5.03-1.38l-.36-.21-3.74.98 1-3.65-.24-.37a9.86 9.86 0 0 1-1.51-5.26c0-5.45 4.44-9.88 9.89-9.88 2.64 0 5.12 1.03 6.99 2.9a9.82 9.82 0 0 1 2.89 6.99c0 5.45-4.44 9.88-9.88 9.88zM20.52 3.45A11.8 11.8 0 0 0 12.05 0C5.5 0 .16 5.34.16 11.89c0 2.1.55 4.14 1.59 5.95L.06 24l6.3-1.65a11.88 11.88 0 0 0 5.68 1.45h.01c6.55 0 11.89-5.34 11.89-11.89 0-3.18-1.24-6.16-3.48-8.4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M17.47 14.38c-.3-.15-1.76-.87-2.03-.97-.27-.1-.47-.15-.67.15-.2.3-.77.97-.94 1.17-.17.2-.35.22-.65.07-.3-.15-1.26-.46-2.4-1.48-.89-.79-1.49-1.77-1.66-2.07-.17-.3-.02-.46.13-.61.14-.13.3-.35.45-.52.15-.17.2-.3.3-.5.1-.2.05-.37-.02-.52-.07-.15-.67-1.62-.92-2.22-.24-.58-.49-.5-.67-.51h-.57c-.2 0-.52.07-.8.37-.27.3-1.04 1.02-1.04 2.48s1.07 2.88 1.21 3.08c.15.2 2.1 3.2 5.08 4.49.71.31 1.26.49 1.69.63.71.23 1.36.2 1.87.12.57-.08 1.76-.72 2.01-1.41.25-.7.25-1.29.17-1.41-.07-.12-.27-.2-.57-.35zM12.05 21.8h-.01a9.87 9.87 0 0 1-5.03-1.38l-.36-.21-3.74.98 1-3.65-.24-.37a9.86 9.86 0 0 1-1.51-5.26c0-5.45 4.44-9.88 9.89-9.88 2.64 0 5.12 1.03 6.99 2.9a9.82 9.82 0 0 1 2.89 6.99c0 5.45-4.44 9.88-9.88 9.88zM20.52 3.45A11.8 11.8 0 0 0 12.05 0C5.5 0 .16 5.34.16 11.89c0 2.1.55 4.14 1.59 5.95L.06 24l6.3-1.65a11.88 11.88 0 0 0 5.68 1.45h.01c6.55 0 11.89-5.34 11.89-11.89 0-3.18-1.24-6.16-3.48-8.4z'/%3E%3C/svg%3E") center/contain no-repeat; }
