:root {
  --renoscan-blue: #19769d;
  --renoscan-blue-dark: #13759c;
  --renoscan-red: #930808;
  --renoscan-text: #263238;
  --renoscan-muted: #5f6772;
  --renoscan-bg-top: #ffffff;
  --renoscan-bg-bottom: #e8e8e8;
  --renoscan-card: #ffffff;
  --renoscan-border: #d8e8ef;
  --renoscan-radius: 16px;
  --renoscan-shadow: 0 10px 28px rgba(0,0,0,.13);
  --renoscan-gutter: clamp(16px, 4vw, 24px);
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  min-height: 100%;
  background: linear-gradient(180deg, var(--renoscan-bg-top) 0%, var(--renoscan-bg-bottom) 100%) fixed !important;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Open Sans", "OpenSans-Renodry", Arial, sans-serif;
  color: var(--renoscan-text);
}

body:has(.renoscan-app-shell) .site-header,
body:has(.renoscan-app-shell) header.wp-block-template-part,
body:has(.renoscan-app-shell) footer.wp-block-template-part,
body:has(.renoscan-app-shell) .site-footer,
body:has(.renoscan-app-shell) .wp-site-blocks > header,
body:has(.renoscan-app-shell) .wp-site-blocks > footer {
  display: none !important;
}

.renoscan-app-shell,
.renoscan-app-shell * {
  box-sizing: border-box;
}

.renoscan-app-shell {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: linear-gradient(180deg, #fff 0%, #e8e8e8 100%) !important;
  display: block;
}

.renoscan-app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--renoscan-blue);
  box-shadow: 0 12px 18px -6px rgba(0,0,0,.30);
}

body.admin-bar .renoscan-app-header {
  top: 32px;
}

.renoscan-app-header-inner {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px var(--renoscan-gutter) 12px;
}

.renoscan-app-logo {
  display: block;
  width: min(420px, 100%);
  height: auto;
  max-height: 68px;
  object-fit: contain;
}

.renoscan-app-main {
  width: 100%;
  padding-top: 104px;
  background: linear-gradient(180deg, #fff 0%, #e8e8e8 100%);
}

.renoscan-app-hero,
.renoscan-app-form-section {
  width: min(100%, 980px);
  margin: 0 auto;
  padding-left: var(--renoscan-gutter);
  padding-right: var(--renoscan-gutter);
}

.renoscan-app-hero {
  padding-top: 24px;
}

.renoscan-app-hero-image-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto 20px;
}

.renoscan-app-hero-image {
  display: block;
  width: min(100%, 620px);
  height: auto;
  border-radius: 18px;
  box-shadow: var(--renoscan-shadow);
}

.renoscan-app-intro-card {
  width: 100%;
  margin: 0 auto 24px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(216,232,239,.82);
  border-radius: var(--renoscan-radius);
  padding: 24px 24px;
  color: var(--renoscan-text);
  font-size: 17px;
  line-height: 1.62;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
}

.renoscan-app-intro-card p {
  margin: 0 0 14px;
}

.renoscan-app-intro-card p:last-child {
  margin-bottom: 0;
}

.renoscan-app-claim {
  color: #1f3f4a;
}

.renoscan-app-form-section {
  padding-bottom: 30px;
}

.renoscan-app-form-section .renodry-ai-box {
  margin: 0 auto 18px !important;
  background: var(--renoscan-card) !important;
  border-radius: var(--renoscan-radius) !important;
  box-shadow: var(--renoscan-shadow) !important;
  border: 1px solid var(--renoscan-border) !important;
}

.renoscan-app-form-section .renodry-ai-box h2 {
  color: var(--renoscan-blue-dark) !important;
  line-height: 1.18 !important;
}

.renoscan-app-form-section .renodry-ai-box button[type="submit"],
.renoscan-app-form-section .renodry-ai-location-button,
.renoscan-app-form-section .renodry-ai-lidar-button,
.renoscan-app-form-section .renodry-ai-mobile-file-button {
  background: var(--renoscan-blue-dark) !important;
  color: #fff !important;
  border-radius: 10px !important;
}

.renoscan-app-form-section input,
.renoscan-app-form-section textarea,
.renoscan-app-form-section select {
  font-size: 16px !important;
}

.renoscan-app-warning {
  max-width: 820px;
  margin: 24px auto;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid #f1c56a;
  background: #fff8e4;
  color: #4a3a10;
  font-size: 16px;
  line-height: 1.5;
}

.renoscan-app-footer {
  width: 100vw !important;
  max-width: none !important;
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 16px var(--renoscan-gutter) max(16px, env(safe-area-inset-bottom)) !important;
  background: var(--renoscan-red) !important;
  color: #fff;
  text-align: center;
  border-radius: 0 !important;
}

.renoscan-app-footer-inner {
  width: min(100%, 980px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px 22px;
  flex-wrap: wrap;
}

.renoscan-app-footer-logo-mark {
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 18px;
  line-height: 1;
}

.renoscan-app-footer-claim {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.2;
}

.renoscan-app-footer-button {
  display: inline-block;
  color: #fff !important;
  text-decoration: none !important;
  border: 2px solid rgba(255,255,255,.88);
  border-radius: 10px;
  padding: 9px 24px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: none;
}

.renoscan-app-footer-button:hover {
  color: #f0f0f0 !important;
}

.renoscan-app-footer--fixed {
  position: sticky;
  bottom: 0;
  z-index: 9998;
}

.renoscan-app-shell.has-fixed-footer .renoscan-app-main {
  padding-bottom: 84px;
}

@media (max-width: 980px) {
  .renoscan-app-header-inner {
    padding-top: 13px;
    padding-bottom: 11px;
  }

  .renoscan-app-main {
    padding-top: 98px;
  }

  .renoscan-app-hero {
    padding-top: 20px;
  }

  .renoscan-app-intro-card {
    font-size: 16px;
    padding: 22px 22px;
  }
}

@media (max-width: 767px) {
  body.admin-bar .renoscan-app-header {
    top: 46px;
  }

  .renoscan-app-header-inner {
    justify-content: center;
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .renoscan-app-logo {
    max-height: 54px;
  }

  .renoscan-app-main {
    padding-top: 94px;
  }

  .renoscan-app-hero {
    padding-top: 14px;
  }

  .renoscan-app-hero-image {
    border-radius: 14px;
  }

  .renoscan-app-intro-card {
    padding: 18px 18px;
    font-size: 15.5px;
    line-height: 1.55;
    border-radius: 14px;
  }

  .renoscan-app-form-section {
    padding-bottom: 22px;
  }

  .renoscan-app-footer {
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .renoscan-app-footer-inner {
    gap: 10px;
    flex-direction: column;
  }

  .renoscan-app-footer-logo-mark {
    font-size: 17px;
  }

  .renoscan-app-footer-claim {
    font-size: 16px;
  }

  .renoscan-app-footer-button {
    width: min(100%, 320px);
    text-align: center;
  }

  .renoscan-app-shell.has-fixed-footer .renoscan-app-main {
    padding-bottom: 110px;
  }
}

@supports not selector(:has(*)) {
  .renoscan-app-shell {
    margin-top: 0 !important;
  }
}


/* 0.1.5: mobile scroll safety + clean wrapper reset */
html,
body {
  height: auto !important;
  min-height: 100% !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

body:has(.renoscan-app-shell) {
  position: static !important;
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: linear-gradient(180deg, #fff 0%, #e8e8e8 100%) fixed !important;
}

body:has(.renoscan-app-shell) #page,
body:has(.renoscan-app-shell) #content,
body:has(.renoscan-app-shell) .site,
body:has(.renoscan-app-shell) .wp-site-blocks,
body:has(.renoscan-app-shell) article,
body:has(.renoscan-app-shell) .entry-content,
body:has(.renoscan-app-shell) .wp-block-post-content,
body:has(.renoscan-app-shell) .site-main {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  min-height: auto !important;
  height: auto !important;
  overflow: visible !important;
}

.renoscan-app-shell {
  position: relative !important;
  height: auto !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  overflow: visible !important;
  overflow-x: hidden !important;
  background: linear-gradient(180deg, #fff 0%, #e8e8e8 100%) !important;
}

.renoscan-app-main {
  display: block !important;
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
  background: linear-gradient(180deg, #fff 0%, #e8e8e8 100%) !important;
}

.renoscan-app-header-inner {
  justify-content: center !important;
}

.renoscan-app-footer {
  margin-bottom: 0 !important;
}

@media (max-width: 767px) {
  body:has(.renoscan-app-shell) {
    overflow-y: auto !important;
    touch-action: pan-y !important;
  }
}
