:root {
  --evco-blue: #455DDF;
  --text: #17191f;
  --muted: #6f7480;
  --border: #e4e6eb;
  --surface: #ffffff;
  --background: #f7f8fb;
  --disabled: #c9cdd6;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--background);
}

body { min-height: 100vh; }
button, input { font: inherit; }

.quote-app {
  width: 100%;
  min-height: 100vh;
  padding-bottom: 105px;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 248, 251, 0.97);
  backdrop-filter: blur(8px);
  padding: 10px 16px 12px;
}

.top-nav {
  max-width: 620px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  min-height: 40px;
}

.nav-spacer { flex: 1; }

.nav-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #252833;
  font-size: 34px;
  line-height: 36px;
  cursor: pointer;
}

.nav-btn.close { font-size: 30px; font-weight: 300; }

.progress {
  max-width: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.progress-step {
  height: 4px;
  border-radius: 99px;
  background: #dfe2e8;
}

.progress-step.active { background: var(--evco-blue); }

.main {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 10px 16px 30px;
}

.brand-card { text-align: center; margin: 12px 0 24px; }

.logo {
  width: 74px;
  height: 74px;
  margin: 0 auto 9px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--evco-blue);
  color: #fff;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1.5px;
  text-transform: lowercase;
}

.business-name { font-size: 15px; font-weight: 700; }

.screen { display: none; }
.screen.active-screen { display: block; }

.question-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 26px 22px;
  box-shadow: 0 5px 28px rgba(28, 34, 54, 0.07);
}

h1 {
  margin: 0 0 22px;
  font-size: 28px;
  line-height: 1.14;
  letter-spacing: -0.7px;
}

h2 { margin: 0 0 8px; font-size: 17px; }

.intro-copy {
  margin: -9px 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.option {
  min-height: 62px;
  padding: 0 4px;
  border-bottom: 1px solid #eceef2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.option:last-child { border-bottom: 0; }

.option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 2px solid #c9cdd5;
  display: inline-block;
  position: relative;
  transition: 0.15s ease;
}

.option input[type="radio"]:checked + .radio { border-color: var(--evco-blue); }

.option input[type="radio"]:checked + .radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--evco-blue);
}

.field { margin-bottom: 17px; }

.field label {
  display: block;
  margin: 0 0 7px;
  color: #4d5260;
  font-size: 13px;
  font-weight: 700;
}

.field input {
  width: 100%;
  height: 52px;
  border: 1px solid #d9dde5;
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
  color: var(--text);
  outline: none;
}

.field input:focus {
  border-color: var(--evco-blue);
  box-shadow: 0 0 0 3px rgba(69, 93, 223, 0.12);
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }

.upload-box {
  min-height: 190px;
  border: 2px dashed #cfd4df;
  border-radius: 16px;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
  padding: 24px;
}

.upload-box:hover { border-color: var(--evco-blue); }
.upload-box input { display: none; }
.upload-icon { font-size: 34px; margin-bottom: 12px; }
.upload-title { font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.upload-subtitle { font-size: 13px; color: var(--muted); }

.photo-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.photo-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 11px;
  overflow: hidden;
  background: #eef0f4;
}

.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }

.tip-box, .notice-box {
  margin-top: 18px;
  padding: 15px 16px;
  border-radius: 13px;
  background: #f1f4ff;
  color: #3d4352;
  font-size: 13px;
  line-height: 1.45;
}

.tip-box strong, .tip-box span { display: block; }
.tip-box strong { margin-bottom: 3px; color: #252a37; }

.bottom-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  padding: 14px 16px max(14px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e8eaf0;
  backdrop-filter: blur(10px);
}

.continue-btn {
  width: min(588px, 100%);
  height: 54px;
  margin: 0 auto;
  border: 0;
  border-radius: 12px;
  display: block;
  background: var(--evco-blue);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}

.continue-btn:disabled { background: var(--disabled); cursor: not-allowed; }

.result-loading { text-align: center; padding: 35px 5px; }

.spinner {
  width: 44px; height: 44px;
  border: 4px solid #e4e7f2;
  border-top-color: var(--evco-blue);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.result-kicker {
  color: var(--evco-blue);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 8px;
}

#estimatePrice { font-size: 46px; margin-bottom: 5px; }
.estimate-range { color: var(--muted); margin-bottom: 26px; }

.result-section {
  padding: 18px 0;
  border-top: 1px solid #eceef2;
  border-bottom: 1px solid #eceef2;
}

.result-section p { margin: 0; line-height: 1.5; color: #4f5562; }

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.result-stat {
  background: #f7f8fb;
  border-radius: 12px;
  padding: 13px;
}

.stat-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.result-stat strong { font-size: 13px; }

.details-box {
  margin-top: 18px;
  border: 1px solid #e5e7ed;
  border-radius: 13px;
  overflow: hidden;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid #eceef2;
  font-size: 13px;
}

.detail-row:last-child { border-bottom: 0; }
.detail-row span { color: var(--muted); }
.detail-row strong { text-align: right; }

.secondary-btn {
  width: 100%;
  margin-top: 18px;
  height: 50px;
  border: 1px solid #d9dde5;
  border-radius: 12px;
  background: white;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 520px) {
  .top-bar { padding-left: 14px; padding-right: 14px; }
  .main { padding-left: 14px; padding-right: 14px; }
  .question-card { padding: 23px 18px; border-radius: 18px; }
  h1 { font-size: 25px; }
  .two-col { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
}


.privacy-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

input[type="email"],
input[type="tel"],
input[type="text"] {
  font-size: 16px; /* prevents unwanted iPhone zoom on focus */
}

@media (max-width: 520px) {
  .quote-app {
    padding-bottom: 92px;
  }

  .brand-card {
    margin-top: 4px;
    margin-bottom: 16px;
  }

  .logo {
    width: 62px;
    height: 62px;
    font-size: 22px;
  }

  .upload-box {
    min-height: 170px;
  }

  .continue-btn {
    height: 52px;
  }
}


.native-photo-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.native-photo-btn {
  min-height: 82px;
  border: 1px solid #d8dde7;
  border-radius: 15px;
  background: #fff;
  padding: 15px 17px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  color: var(--text);
}

.native-photo-btn.primary-native-photo {
  border: 2px solid var(--evco-blue);
  background: #f7f9ff;
}

.native-photo-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.native-photo-icon {
  flex: 0 0 auto;
  font-size: 28px;
}

.native-photo-btn strong,
.native-photo-btn small {
  display: block;
}

.native-photo-btn strong {
  font-size: 16px;
  margin-bottom: 3px;
}

.native-photo-btn small,
.photo-help {
  color: var(--muted);
  font-size: 13px;
}

.photo-help {
  margin: 12px 2px 0;
  line-height: 1.45;
}

.photo-thumb {
  position: relative;
}

.photo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 21px;
  line-height: 24px;
  cursor: pointer;
}

@media (min-width: 560px) {
  .native-photo-actions {
    grid-template-columns: 1fr 1fr;
  }
}
