/* Shefer Group · service-card flip forms */
.sgf-scene {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 8 / 5;
  min-height: 300px;
  isolation: isolate;
  perspective: 1400px;
  border-radius: 3px;
  font-family: inherit;
  color: #fff;
}
.sgf-scene *, .sgf-scene *::before, .sgf-scene *::after { box-sizing: border-box; }
.sgf-inner {
  position: relative;
  height: 100%;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 680ms cubic-bezier(.2,.75,.2,1);
}
.sgf-front, .sgf-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 3px;
}
.sgf-front { background: #12151b; }
.sgf-front > img, .sgf-front > picture, .sgf-front > a,
.sgf-front > picture img, .sgf-front > a img, .sgf-front img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  object-fit: cover;
}
.sgf-front > picture, .sgf-front > a { height: 100%; }
.sgf-front::after {
  content: '';
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(0,0,0,.62));
  pointer-events: none;
}
.sgf-front-action {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.62);
  background: rgba(10,13,17,.72);
  color: #fff;
  padding: 11px 14px;
  font: 600 12px/1.2 inherit;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: .02em;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.sgf-front-action:hover, .sgf-front-action:focus-visible { background: #bb1229; border-color: #e32d45; outline-offset: 3px; }
.sgf-front-action span { font-size: 17px; }
.sgf-back {
  transform: rotateY(180deg);
  background: radial-gradient(circle at 96% 0%, rgba(158,23,44,.23), transparent 48%), #12151b;
  border: 1px solid rgba(230,56,71,.5);
  padding: clamp(14px, 1.6vw, 22px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #7b2935 #171a20;
}
.sgf-back-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sgf-overline { font-size: 9px; line-height: 1.2; letter-spacing: .14em; color: #f25b69; text-transform: uppercase; }
.sgf-close { background: transparent; color: #c5cbd2; border: 0; cursor: pointer; font-size: 20px; line-height: 1; padding: 2px 5px; }
.sgf-close:hover, .sgf-close:focus-visible { color: #fff; }
.sgf-back h4 { margin: 8px 0 4px; font-size: clamp(16px, 1.35vw, 21px); letter-spacing: -.025em; font-weight: 600; color: #fff; line-height: 1.2; }
.sgf-back-subtitle { margin: 0 0 12px; color: #a9afb8; font-size: 11px; line-height: 1.3; }
.sgf-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.sgf-field { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sgf-field--full { grid-column: 1 / -1; }
.sgf-field label { color: #e0e3e7; font-size: 10px; line-height: 1.2; }
.sgf-field input, .sgf-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 37px;
  border: 1px solid #454a53;
  border-radius: 0;
  background: #1c2027;
  padding: 8px 10px;
  color: #fff;
  outline: none;
  font: 12px/1.35 inherit;
  font-family: inherit;
  font-size: 12px;
  transition: border-color .15s;
}
.sgf-field input:focus, .sgf-field textarea:focus { border-color: #ec4155; }
.sgf-field input::placeholder, .sgf-field textarea::placeholder { color: #858c97; }
.sgf-field textarea { resize: vertical; min-height: 48px; max-height: 100px; }
.sgf-privacy { display: flex; gap: 7px; align-items: flex-start; margin: 8px 0 10px; color: #c3c9d1; font-size: 10px; line-height: 1.3; cursor: pointer; }
.sgf-privacy input { flex: 0 0 auto; margin-top: 1px; accent-color: #df2c45; width: 14px; height: 14px; }
.sgf-privacy a { color: #f37a89; text-decoration: underline; text-underline-offset: 2px; }
.sgf-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid #e2354d;
  border-radius: 0;
  color: #fff;
  background: #bf1933;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background .18s;
}
.sgf-submit:hover:not(:disabled) { background: #e52c47; }
.sgf-submit:disabled { opacity: .65; cursor: wait; }
.sgf-feedback { font-size: 11px; line-height: 1.35; min-height: 0; margin-top: 7px; color: #cbd0d7; }
.sgf-feedback.sgf-error { color: #ff9ba7; }
.sgf-feedback.sgf-success { color: #a4efc7; }
.sgf-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.sgf-scene.is-open .sgf-inner { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) {
  .sgf-scene:hover:not(.is-closed) .sgf-inner { transform: rotateY(180deg); }
}
@media (max-width: 900px) {
  .sgf-back { padding: 13px; }
  .sgf-fields { grid-template-columns: 1fr; gap: 6px; }
  .sgf-back-subtitle { margin-bottom: 8px; }
  .sgf-privacy { margin: 6px 0; }
  .sgf-scene.is-open { min-height: 435px; }
  .sgf-scene { min-height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .sgf-inner { transition-duration: .01ms; }
}

/* Version 1.2: accessible phones/tablets and a full-screen lead dialog. */
.sgf-feedback.sgf-warning { color: #ffd09b; }
.sgf-front-action { min-height: 42px; }
.sgf-modal-active { overflow: hidden !important; }
.sgf-mobile-overlay {
  position: fixed !important;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow: auto;
  overscroll-behavior: contain;
  background: rgba(6, 8, 12, .88);
  -webkit-overflow-scrolling: touch;
  font-family: inherit;
  color: #fff;
}
.sgf-mobile-scrim { position: fixed; inset: 0; cursor: pointer; }
.sgf-mobile-shell {
  position: relative;
  flex: 0 1 600px;
  width: 100%;
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  background: #14171d;
  border: 1px solid #a8273e;
  box-shadow: 0 18px 70px rgba(0,0,0,.65);
  overscroll-behavior: contain;
}
.sgf-mobile-overlay .sgf-back {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  backface-visibility: visible !important;
  -webkit-backface-visibility: visible !important;
  width: 100% !important;
  height: auto !important;
  padding: 24px !important;
  overflow: visible !important;
  border: 0;
  background: radial-gradient(circle at 100% 0, rgba(180,24,48,.18), transparent 45%), #14171d;
  border-radius: 0;
}
.sgf-mobile-overlay .sgf-overline { font-size: 11px; }
.sgf-mobile-overlay .sgf-close { font-size: 28px; min-width: 44px; min-height: 44px; }
.sgf-mobile-overlay .sgf-back h4 { margin-top: 14px; font-size: clamp(23px, 5vw, 32px); }
.sgf-mobile-overlay .sgf-back-subtitle { font-size: 14px; margin: 4px 0 20px; }
.sgf-mobile-overlay .sgf-field label { font-size: 13px; }
.sgf-mobile-overlay .sgf-field input,
.sgf-mobile-overlay .sgf-field textarea {
  min-height: 48px;
  padding: 11px 13px;
  font-size: 16px; /* prevents forced zoom on iPhone */
  line-height: 1.35;
}
.sgf-mobile-overlay .sgf-fields { gap: 14px; }
.sgf-mobile-overlay .sgf-field textarea { min-height: 90px; max-height: 240px; }
.sgf-mobile-overlay .sgf-privacy { font-size: 12px; line-height: 1.45; margin: 16px 0; }
.sgf-mobile-overlay .sgf-privacy input { width: 18px; height: 18px; }
.sgf-mobile-overlay .sgf-submit { padding: 14px 16px; min-height: 50px; font-size: 15px; }
.sgf-mobile-overlay .sgf-feedback { font-size: 13px; line-height: 1.5; }
.sgf-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
@media (max-width: 860px), (pointer: coarse), (hover: none) {
  .sgf-scene { min-height: 230px; touch-action: manipulation; }
  .sgf-scene.is-open { min-height: 230px; }
  .sgf-scene.is-open .sgf-inner { transform: none !important; }
  .sgf-front-action {
    right: 14px;
    bottom: 14px;
    padding: 12px 15px;
    min-height: 46px;
    font-size: 14px;
    border-color: rgba(255,255,255,.84);
    background: rgba(10, 13, 17, .9);
  }
  .sgf-front { cursor: pointer; }
  .sgf-mobile-overlay .sgf-fields { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sgf-mobile-overlay { padding: 0; display: block; }
  .sgf-mobile-shell { width: 100%; max-width: none; max-height: 100dvh; min-height: 100dvh; overflow-y: auto; border: 0; }
  .sgf-mobile-overlay .sgf-back {
    padding: calc(20px + env(safe-area-inset-top, 0px)) 20px calc(26px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: 100dvh;
  }
  .sgf-mobile-overlay .sgf-back h4 { font-size: 24px; }
  .sgf-mobile-overlay .sgf-privacy { font-size: 12px; }
}
.sgf-mobile-overlay *,
.sgf-mobile-overlay *::before,
.sgf-mobile-overlay *::after { box-sizing: border-box; }
