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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #272727;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

.header {
  text-align: center;
}

.logo {
  max-width: 300px;
  margin:auto;
  margin-bottom: 12px;
}

.card {
  margin-top: 12px;
  margin-bottom: 24px;
  background: #000000;
  border-radius: 8px;
  box-shadow: 0 12px 12px rgba(0, 0, 0, 0.2);
  padding: 24px;
  padding-bottom: max(32px, calc(env(safe-area-inset-bottom) + 16px));
  width: 100%;
  max-width: 600px;
}

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

.subtitle {
  font-size: 16px;
  color: #718096;
  margin-bottom: 24px;
}

#serviceForm {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
}

.field {
    margin-bottom: 6px;
    width: calc(50% - 6px);
}

.field--full {
  width: 100%;
}

.vin-decoded {
  display: none;
  width: 100%;
  height: 39px;
  border-radius: 4px;
  align-content: center;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.vin-decoded--loading { display: flex; color: #718096; }
.vin-decoded--success { display: flex; background: #276749; color: #ffffff; }
.vin-decoded--error   { display: flex; color: #e53e3e; }

label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #cdcdcd;
  margin-bottom: 0.4rem;
}

input:not([type="checkbox"]), select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid #cbd5e0;
  border-radius: 5px;
  font-size: 1rem;
  color: #2d3748;
  transition: border-color 0.15s;
  outline: none;
  background: #fff;
  font-family: inherit;
}

select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a5568' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

input:not([type="checkbox"]):focus, select:focus {
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66,153,225,0.15);
}

input:not([type="checkbox"]).error, select.error {
  border-color: #fc8181;
}

.field-error {
  font-size: 0.78rem;
  color: #e53e3e;
  margin-top: 0.3rem;
  display: none;
}

button[type="submit"] {
  width: 100%;
  padding: 0.75rem;
  background: #0056d4;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.15s;
}

button[type="submit"]:hover:not(:disabled) { background: #1a66da; }
button[type="submit"]:disabled { background: #a0aec0; cursor: not-allowed; }

.status {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 5px;
  display: none;
  text-align: center;
  padding: 32px;
  font-size: 18px;

}

.status.success { background: #f0fff4; color: #276749; border: 1px solid #9ae6b4; }
.status.failure { background: #fff5f5; color: #9b2c2c; border: 1px solid #feb2b2; }

a {
  color: #0056d4;
}

#toast-container > .toast {
  opacity: 1;
}

.insurer-other {
  display: none;
}

.field--hidden {
  display: none;
}

.required {
  color: #fc8181;
}

textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid #cbd5e0;
  border-radius: 5px;
  font-size: 1rem;
  color: #2d3748;
  background: #fff;
  outline: none;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.15s;
}

textarea:focus {
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66,153,225,0.15);
}

.checkbox-group {
  border: 1px solid #4a5568;
  border-radius: 5px;
  padding: 10px 14px;
}

.checkbox-group.error {
  border-color: #fc8181;
}

.checkbox-group legend {
  font-size: 14px;
  font-weight: 500;
  color: #cdcdcd;
  padding: 0 4px;
}

.service-other-text {
  margin-top: 6px;
}

.legend-hint {
  font-size: 12px;
  font-weight: 400;
  color: #718096;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 0;
  font-size: 14px;
  color: #bfbfbf;
  cursor: pointer;
  margin-bottom: 0;
  font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #0056d4;
}

input[type="checkbox"].error {
  outline: 2px solid #fc8181;
  outline-offset: 2px;
}

.upload-hint {
  font-size: 12px;
  color: #718096;
  margin-bottom: 8px;
}

.file-upload-area {
  position: relative;
  border: 2px dashed #4a5568;
  border-radius: 5px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s;
}

.file-upload-area:hover {
  border-color: #0056d4;
}

.file-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-prompt {
  margin: 0;
  color: #718096;
  font-size: 14px;
  pointer-events: none;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  margin-top: 6px;
  background: #1a1a1a;
  border-radius: 4px;
  font-size: 13px;
  color: #bfbfbf;
}

.file-item__name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-item__size {
  color: #718096;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.file-item__remove {
  background: none;
  border: none;
  color: #e53e3e;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0 2px;
  flex-shrink: 0;
}

.confirmations {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.confirm-label {
  margin-top: 8px;
}

@media screen and (max-width: 425px) {
  h1 {
    font-size: 18px;
  }
  .subtitle {
    font-size: 12px;
  }
  .field {
    width: 100%;
  }
}