/* ========== FUNCTIONAL WEBSITE SECTION (laptop + form + SMS phone) ========== */
.rv-functional {
  background: var(--navy); color: var(--paper);
  padding: 110px 0 100px;
}
.rv-functional-head { text-align: center; margin: 0 auto 60px; max-width: 760px; padding: 0 var(--gutter); }
.rv-functional-head .rv-eyebrow { color: var(--amber); }
.rv-functional-head h2 { color: var(--paper); max-width: 22ch; margin: 14px auto; font-size: clamp(32px, 4vw, 54px); line-height: 1.12; letter-spacing: -.02em; }
.rv-amber-ink { color: var(--amber); }
.rv-functional-head .rv-section-lede { color: rgba(248,246,242,.78); max-width: 60ch; margin: 18px auto 0; text-align: center; font-size: 17px; }

.rv-functional-stage {
  display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,.9fr);
  gap: 40px; max-width: 1180px; margin: 0 auto;
  padding: 0 var(--gutter); align-items: center;
}

/* ===== LAPTOP ===== */
.fw-laptop { position: relative; }
.fw-laptop-bezel {
  background: #0a0a0a; border-radius: 14px 14px 6px 6px;
  padding: 18px 14px 14px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
}
.fw-laptop-notch {
  width: 90px; height: 5px; background: #1a1a1a;
  border-radius: 0 0 6px 6px; margin: -16px auto 10px;
}
.fw-laptop-screen {
  background: #f8f6f2; border-radius: 4px; overflow: hidden;
  aspect-ratio: 16 / 10;
  position: relative;
}
.fw-laptop-base {
  width: 112%; height: 12px; margin-left: -6%;
  background: linear-gradient(180deg, #171717 0%, #0b0b0b 100%);
  border-radius: 0 0 14px 14px;
  position: relative;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.55);
}
.fw-laptop-base::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 70px; height: 5px; background: #0a0a0a;
  border-radius: 0 0 8px 8px;
}

/* ===== FAKE STORMLINE AIR SITE INSIDE LAPTOP ===== */
/* Scope everything inside #fw-site with higher specificity so global h1/h2/h3 can't bleed in */
#fw-site, #fw-site * {
  font-family: var(--sans) !important;
  box-sizing: border-box;
}
.fw-site {
  position: absolute; inset: 0;
  transform: translateY(0);
  transition: transform 1800ms cubic-bezier(.4,.1,.25,1);
  background: #f8f6f2; color: #0E1A2B;
}
#fw-site h1, #fw-site h2, #fw-site h3, #fw-site h4, #fw-site p, #fw-site span, #fw-site label, #fw-site button {
  margin: 0; line-height: 1.3; letter-spacing: 0;
}
.fw-nav {
  position: sticky; top: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; background: rgba(255,255,255,.95);
  border-bottom: 1px solid rgba(14,26,43,.08);
  font-size: 11px;
}
.fw-brand { font-weight: 800; letter-spacing: -.02em; }
.fw-nav-links { color: #555; font-size: 10px; }
.fw-nav-links b { color: var(--amber); font-weight: 800; }

.fw-section { padding: 22px 20px; }
#fw-site .fw-hero-band {
  background: linear-gradient(135deg, #0E1A2B 0%, #1a2a3f 100%);
  color: #fff; display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px;
  min-height: 110px; align-items: center;
}
#fw-site .fw-hero-copy h1 { font-size: 16px !important; margin: 0 0 6px !important; line-height: 1.15 !important; letter-spacing: -.02em !important; font-weight: 800 !important; color: #fff !important; }
#fw-site .fw-hero-copy p { font-size: 10px !important; color: rgba(255,255,255,.82) !important; margin: 0 0 8px !important; line-height: 1.4 !important; font-weight: 500 !important; }
#fw-site .fw-cta-row { display: flex; gap: 6px; }
#fw-site .fw-cta-primary { background: var(--amber); color: #111; font-weight: 800; font-size: 9px !important; padding: 5px 10px; border-radius: 4px; }
#fw-site .fw-cta-ghost { border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 9px !important; padding: 5px 10px; border-radius: 4px; }
#fw-site .fw-hero-img { background: linear-gradient(135deg, #5ED3E0 0%, #0E1A2B 100%); border-radius: 6px; height: 100%; min-height: 70px; opacity: .6; }

#fw-site .fw-services h3 { font-size: 12px !important; margin: 0 0 8px !important; color: var(--navy) !important; font-weight: 800 !important; }
#fw-site .fw-services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
#fw-site .fw-tile { background: #fff; padding: 10px 6px; border-radius: 5px; text-align: center; font-size: 9px !important; font-weight: 600; color: var(--navy); border: 1px solid rgba(14,26,43,.08); }

#fw-site .fw-social { background: #ebe6de; padding: 16px 20px; }
#fw-site .fw-review-card { background: #fff; padding: 8px 12px; border-radius: 5px; font-size: 9px !important; color: #333; margin-bottom: 6px; border-left: 3px solid var(--amber); line-height: 1.4; font-weight: 500; }

/* GET A FREE QUOTE form (the hook) */
#fw-site .fw-quote { background: #0E1A2B; padding: 20px 18px; }
.fw-quote-card {
  background: #15243a; border: 1px solid rgba(94,211,224,.25);
  border-radius: 10px; padding: 18px; color: #fff;
  max-width: 520px; margin: 0 auto;
}
.fw-quote-brand { text-align: center; margin-bottom: 12px; }
.fw-quote-badge {
  display: inline-block; background: linear-gradient(135deg, #5ED3E0 0%, #0E1A2B 100%);
  color: var(--amber); font-weight: 900; font-size: 11px;
  padding: 5px 12px; border-radius: 4px; letter-spacing: .08em;
  border: 1px solid var(--amber);
}
#fw-site .fw-quote h3 { font-size: 16px !important; text-align: center; color: #fff !important; margin: 0 0 12px !important; letter-spacing: .04em; font-weight: 900 !important; }
.fw-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.fw-field { margin-bottom: 10px; }
.fw-field label { display: block; font-size: 10px; color: #cbd5e1; margin-bottom: 4px; font-weight: 600; }
.fw-input, .fw-textarea {
  background: #fff; color: #111; border: 1px solid #cbd5e1;
  border-radius: 4px; padding: 6px 8px; font-size: 11px;
  display: flex; align-items: center; min-height: 24px;
  transition: border-color 200ms, box-shadow 200ms;
}
.fw-textarea { min-height: 50px; align-items: flex-start; padding-top: 6px; }
.fw-input.focused, .fw-textarea.focused { border-color: var(--amber); box-shadow: 0 0 0 2px rgba(242,163,58,.25); }
.fw-typed { font-family: var(--mono); color: #111; font-size: 11px; }
.fw-caret {
  display: inline-block; width: 1.5px; height: 12px; background: #111;
  margin-left: 1px; vertical-align: middle; opacity: 0;
  animation: fw-caret-blink 1s steps(2) infinite;
}
.fw-input.focused .fw-caret, .fw-textarea.focused .fw-caret { opacity: 1; }
@keyframes fw-caret-blink { 50% { opacity: 0 } }

.fw-consent { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0; font-size: 10px; color: #cbd5e1; cursor: pointer; }
.fw-checkbox {
  width: 14px; height: 14px; border: 1.5px solid #cbd5e1; border-radius: 3px;
  flex: none; background: transparent; margin-top: 1px;
  transition: all 200ms;
}
.fw-consent.checked .fw-checkbox {
  background: var(--amber); border-color: var(--amber);
  box-shadow: inset 0 0 0 2px #15243a;
}

.fw-send {
  background: var(--amber); color: #111; font-weight: 900; font-size: 13px;
  text-align: center; padding: 12px; border-radius: 6px;
  letter-spacing: .08em; cursor: pointer;
  transition: transform 150ms, box-shadow 200ms, background 200ms;
}
.fw-send.clicked { transform: scale(.96); box-shadow: 0 0 0 3px rgba(242,163,58,.4); }
.fw-send.sent { background: #22c55e; color: #fff; }

.fw-sent {
  background: rgba(34,197,94,.14); color: #22c55e;
  padding: 10px; border-radius: 6px; text-align: center;
  font-size: 11px; font-weight: 700;
  margin-top: 10px; opacity: 0; max-height: 0; overflow: hidden;
  transition: opacity 320ms, max-height 320ms;
}
.fw-sent.on { opacity: 1; max-height: 40px; }

/* Ghost cursor inside laptop */
.fw-cursor {
  position: absolute; width: 22px; height: 22px; z-index: 20; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 10-8.2 1.2L7 21z' fill='%23ffffff' stroke='%23000000' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: contain;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.55));
  top: 85%; left: 80%; opacity: 0;
  transition: top 700ms cubic-bezier(.4,.1,.25,1),
              left 700ms cubic-bezier(.4,.1,.25,1),
              transform 150ms ease,
              opacity 300ms ease;
  transform-origin: 20% 20%;
}
.fw-cursor.on { opacity: 1; }
.fw-cursor.clicking { transform: scale(.72); }

/* ===== PHONE (receives the auto-SMS) ===== */
.fw-phone {
  background: linear-gradient(145deg, #0a1322 0%, #1a2a3f 100%);
  border-radius: 36px; padding: 14px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.55);
  position: relative; max-width: 300px; margin: 0 auto;
  aspect-ratio: 9 / 18;
}
.fw-phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; background: #000; border-radius: 0 0 16px 16px;
  z-index: 2;
}
.fw-phone-screen {
  background: #0a1322; border-radius: 26px;
  padding: 44px 14px 18px; height: 100%; color: #fff;
  display: flex; flex-direction: column; gap: 10px;
  overflow: hidden;
}
.fw-phone-time { text-align: center; font-size: 12px; opacity: .7; margin-bottom: 4px; }
.fw-sms-thread { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.fw-sms { max-width: 90%; padding: 10px 12px; border-radius: 16px; font-size: 13px; line-height: 1.35; opacity: 0; transform: translateY(8px); transition: opacity 320ms, transform 320ms; }
.fw-sms.on { opacity: 1; transform: none; }
.fw-sms p { margin: 0; color: #fff; font-size: 13px; }
.fw-sms-biz { background: #7FB8E8; color: #0E1A2B; align-self: flex-start; border-top-left-radius: 6px; box-shadow: 0 4px 14px rgba(127,184,232,.3); }
.fw-sms-biz p { color: #0E1A2B; font-weight: 600; }
.fw-sms-cust { background: #E8912B; color: #0E1A2B; align-self: flex-end; border-top-right-radius: 6px; box-shadow: 0 4px 14px rgba(232,145,43,.3); }
.fw-sms-cust p { color: #0E1A2B; font-weight: 600; }
.fw-booked {
  background: rgba(94,211,224,.14); border: 1px solid rgba(94,211,224,.3);
  border-radius: 14px; padding: 12px 14px; margin-top: auto;
  opacity: 0; transform: translateY(8px); transition: opacity 320ms, transform 320ms;
}
.fw-booked.on { opacity: 1; transform: none; }
.fw-booked b { display: block; font-size: 15px; color: var(--aqua); font-weight: 700; }
.fw-booked b::before { content: "\2713 "; margin-right: 4px; }
.fw-booked small { display: block; margin-top: 4px; font-size: 11px; color: rgba(255,255,255,.7); font-weight: 500; letter-spacing: 0; text-transform: none; }
.fw-ghl-badge {
  font-size: 11px; color: var(--amber); text-align: center;
  padding: 7px 10px; background: rgba(242,163,58,.14); border-radius: 6px;
  border: 1px solid rgba(242,163,58,.4);
  font-weight: 800; letter-spacing: .04em;
  opacity: 0; transition: opacity 320ms;
  order: -1;
  align-self: stretch;
  margin-bottom: 4px;
}
.fw-ghl-badge.on { opacity: 1; }
.fw-sms-thread { display: flex; flex-direction: column; gap: 10px; flex: 1; justify-content: flex-start; }

/* Mobile */
@media (max-width: 860px) {
  .rv-functional-stage { grid-template-columns: 1fr; gap: 32px; }
  .fw-phone { max-width: 260px; }
}
