:root {
  color-scheme: light;
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  color: #19312f;
  background: #f1f5f3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 24px 16px;
}
main {
  max-width: 480px;
  margin: auto;
  padding: 28px;
  background: #fff;
  border: 1px solid #dee8e3;
  border-radius: 24px;
  box-shadow: 0 12px 45px #19312f0d;
}
header {
  text-align: center;
}
header img {
  object-fit: contain;
  border-radius: 12px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.3px;
  color: #23725e;
  margin-top: 22px;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.7px;
  margin: 8px 0;
}
h2 {
  font-size: 24px;
}
p {
  line-height: 1.55;
}
label {
  display: block;
  margin-top: 18px;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 650;
}
input {
  width: 100%;
  font: inherit;
  border: 1.5px solid #b6c8be;
  background: #fff;
  border-radius: 10px;
  padding: 13px;
  color: inherit;
  min-height: 48px;
}
input:focus {
  outline: 3px solid #21765d35;
  border-color: #21765d;
}
button,
.button-link {
  width: 100%;
  margin-top: 22px;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: #17634c;
  color: white;
  font: inherit;
  font-weight: 700;
  padding: 13px;
  cursor: pointer;
}
.button-link {
  display: block;
  text-align: center;
  text-decoration: none;
}
.button-link:focus-visible {
  outline: 3px solid #21765d;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.secondary {
  background: #edf4f0;
  color: #245d4c;
}
.hint,
small {
  font-size: 13px;
  color: #52655c;
}
small {
  display: block;
  margin-top: 6px;
}
.toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin: 20px 0;
  line-height: 1.6;
  font-weight: 400;
}
.toggle input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 3px 0 0;
  accent-color: #00766b;
  cursor: pointer;
}
.consent-copy {
  flex: 1;
  min-width: 0;
}
.consent-copy a {
  display: inline;
  color: #00695c;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
#notice {
  margin: 20px 0;
  padding: 16px;
  border: 2px solid #ad3026;
  border-radius: 12px;
  background: #fff1ef;
  color: #7c2119;
  line-height: 1.5;
  font-weight: 600;
}
#notice.loading {
  border-color: #21765d;
  color: #245d4c;
  background: #edf4f0;
}
#notice.success {
  border-color: #21765d;
  color: #245d4c;
  background: #edf4f0;
}
#notice.loading::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 3px solid #bad7c9;
  border-top-color: #17634c;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 10px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  #notice.loading::before {
    animation: none;
  }
}
.success-icon {
  display: block;
  color: #17634c;
  font-size: 38px;
  margin-top: 24px;
}
li {
  line-height: 1.6;
  margin-bottom: 12px;
}
ol {
  padding-left: 22px;
}
footer {
  text-align: center;
  font-size: 12px;
  color: #65796e;
  margin-top: 32px;
}
[hidden] {
  display: none !important;
}

/* Same country + DDI + masked national number used throughout Flutter. */
.phone-field {
  display: flex;
  align-items: center;
  border: 1.5px solid #b6c8be;
  border-radius: 12px;
  background: #f1f7f4;
  overflow: hidden;
}
.phone-field:focus-within {
  outline: 3px solid #21765d35;
  border-color: #21765d;
}
.phone-field select {
  width: 108px;
  flex: 0 0 108px;
  min-height: 50px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 10px 4px 10px 8px;
  font: inherit;
  cursor: pointer;
}
.phone-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding-left: 8px;
  background: transparent;
}
.phone-field input:focus {
  outline: none;
}
.phone-field select:focus-visible {
  outline: 2px solid #21765d;
  outline-offset: -3px;
}
@media (max-width: 380px) {
  main {
    padding: 20px 16px;
  }
  .phone-field select {
    width: 96px;
    flex-basis: 96px;
  }
}

.email-correction {
  margin-top: 24px;
  padding: 16px;
  border-radius: 16px;
  background: #edf5f2;
}
.email-correction summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #00695c;
  font-weight: 700;
}
.correction-result {
  padding: 16px;
  border-radius: 12px;
  overflow-wrap: anywhere;
}
.correction-result.success {
  background: #e6f4ea;
  color: #14532d;
}
.correction-result.error {
  background: #fff1f0;
  color: #a51616;
}

.registration-progress {
  margin: 12px 0 24px;
}
.registration-progress progress {
  display: block;
  width: 100%;
  height: 10px;
  margin-top: 12px;
  accent-color: #00766b;
}
.child-card {
  border: 1px solid #c6d8d2;
  border-radius: 16px;
  padding: 16px;
  margin: 20px 0;
  min-width: 0;
}
.child-card legend {
  padding: 0 8px;
  font-weight: 700;
  color: #00695c;
}
.billing-note {
  background: #edf5f2;
  padding: 16px;
  border-radius: 16px;
}
#confirmation-step {
  margin: 20px 0;
  padding: 16px;
  background: #edf5f2;
  border-radius: 16px;
  overflow-wrap: anywhere;
}

/* The selected flag is an SVG, independent of operating-system emoji support. */
.phone-country-picker {
  position: relative;
  flex: 0 0 112px;
  width: 112px;
  min-height: 50px;
}
.phone-country-flag {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 18px;
  object-fit: cover;
  pointer-events: none;
  border-radius: 2px;
}
.phone-field .phone-country-picker select {
  width: 100%;
  min-width: 0;
  padding-left: 42px;
  padding-right: 16px;
  border-radius: 0;
}

.age-warning {
  margin-top: 12px;
  padding: 16px;
  background: #fff4e5;
  color: #7c3608;
  border-left: 4px solid #b45309;
  border-radius: 10px;
  line-height: 1.6;
}
.age-warning p {
  margin: 0;
}
.age-warning button {
  margin-top: 12px;
}

/* Download da aplicacao exibido apos a confirmacao do e-mail. */
.app-downloads {
  margin-top: 24px;
  padding: 22px 18px;
  border: 1px solid #dce8e2;
  border-radius: 16px;
  background: #f8fbf9;
  text-align: center;
}
.app-downloads h2 {
  margin: 0 0 8px;
  font-size: 21px;
  letter-spacing: -0.35px;
}
.app-downloads > p {
  margin: 0;
  color: #52655c;
}
.store-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.store-badge {
  display: inline-flex;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.store-badge img {
  display: block;
  width: 180px;
  height: 60px;
  object-fit: contain;
}
.store-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px #19312f18;
}
.store-badge:focus-visible {
  outline: 3px solid #21765d;
  outline-offset: 4px;
}
.app-downloads .download-hint {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #65796e;
}
@media (max-width: 460px) {
  .store-buttons {
    flex-direction: column;
  }
  .store-badge img {
    width: 190px;
    height: auto;
  }
}
