* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1a1a1a;
  background-color: #f9f9f9;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

main {
  width: 100%;
  max-width: 640px;
}

.container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 40px 32px;
}

header {
  text-align: center;
  margin-bottom: 40px;
}

h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.subhead {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

.audit-form {
  margin-bottom: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

label {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
}

.input-wrapper {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

input[type="text"] {
  flex: 1;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  transition: border-color 0.2s;
}

input[type="text"]:focus {
  outline: none;
  border-color: #3f60ac;
  box-shadow: 0 0 0 3px rgba(63, 96, 172, 0.1);
}

input[type="text"]::placeholder {
  color: #999;
}

.btn-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  color: white;
  background-color: #3f60ac;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-search:hover:not(:disabled) {
  background-color: #2d4582;
  box-shadow: 0 4px 12px rgba(63, 96, 172, 0.2);
}

.btn-search:active:not(:disabled) {
  background-color: #1f2f5e;
}

.btn-search:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-search svg {
  width: 18px;
  height: 18px;
  display: inline;
}

.result {
  margin-top: 32px;
}

.card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
}

.card.warn {
  background-color: #fdf8f4;
  border-color: #e8d4c6;
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.card p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
}

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

.card .count {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #3f60ac;
  background-color: #f0f4fb;
  padding: 8px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.card .biz {
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 16px 0 24px;
}

.card .cta {
  display: inline-block;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 500;
  color: white;
  background-color: #3f60ac;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s, box-shadow 0.2s;
  margin-top: 16px;
}

.card .cta:hover {
  background-color: #2d4582;
  box-shadow: 0 4px 12px rgba(63, 96, 172, 0.2);
}

.card .cta:active {
  background-color: #1f2f5e;
}

.progress {
  text-align: center;
}

.progress p {
  font-size: 16px;
  color: #666;
  margin: 24px 0;
}

@media (max-width: 480px) {
  .container {
    padding: 32px 20px;
  }

  h1 {
    font-size: 24px;
  }

  .input-wrapper {
    flex-direction: column;
  }

  .btn-search {
    width: 100%;
    justify-content: center;
  }
}

/* Places autocomplete element sits where the plain input was */
gmp-place-autocomplete {
  flex: 1;
  min-width: 0;
}

.turnstile-slot {
  margin-top: 16px;
  min-height: 65px;
}

/* Embed mode: the host page provides context and chrome */
:root.embed body {
  display: block;
  background: transparent;
  min-height: 0;
  padding: 0;
}

:root.embed header {
  display: none;
}

:root.embed .container {
  box-shadow: none;
  border: 1px solid #e3e6ee;
  padding: 20px;
}

:root.embed main {
  max-width: none;
}

.card .pick {
  margin-top: 12px;
  font-size: 17px;
  color: #1a1a1a;
}
