/*
 * Targeted at mobiles, including old ones: no css variables, no flexbox gap, no web fonts.
 */

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: #f2f2f2;
  color: #222222;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

.page {
  display: block;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}

.is-hidden {
  display: none !important;
}

a {
  color: #1a73e8;
}

/* Header with the company that sent the sms; it and the views share one card */

.card {
  padding: 20px 16px;
  background-color: #ffffff;
  border-radius: 8px;
}

.header {
  margin: -20px -16px 20px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid #e6e6e6;
  text-align: center;
  word-wrap: break-word;
}

.company-name {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.sms-sender-name {
  margin: 4px 0 0;
  color: #555555;
}

/* Views */

.view {
  display: block;
}

.title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.info {
  margin: 0 0 16px;
  color: #555555;
  word-wrap: break-word;
}

/* Form */

.field {
  margin-bottom: 16px;
}

.label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

input[type='tel'] {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #b3b3b3;
  border-radius: 6px;
  background-color: #ffffff;
  color: #222222;
  /* At least 16px, otherwise iOS zooms in when the input gets focus */
  font-family: inherit;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

input[type='tel']:focus {
  border-color: #1a73e8;
  outline: 2px solid #1a73e8;
  outline-offset: 0;
}

input.is-invalid {
  border-color: #c62828;
}

.field-error,
.form-error {
  margin: 4px 0 0;
  color: #c62828;
  font-size: 14px;
}

.form-error {
  margin: 0 0 16px;
  font-size: 16px;
}

/* Button */

.button {
  display: block;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 6px;
  background-color: #1a73e8;
  color: #ffffff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.button:active {
  background-color: #1559b3;
}

.button[disabled] {
  background-color: #8fb5ea;
  cursor: default;
}

.noscript {
  max-width: 480px;
  margin: 16px auto;
  padding: 0 16px;
}
