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

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: #333333;
  background-color: #edf0f5;
  background-image: linear-gradient(to bottom, #f5f7fa 0%, #e4e9f0 100%);
  min-height: 100vh;
  display: flex;
  /*align-items: center;*/
  justify-content: center;
  padding: 24px 16px;
}

.page-wrapper {
  width: 100%;
  max-width: 520px;
}

.card {
  background-color: #ffffff;
  border: 1px solid #c5cdd8;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.card-header {
  background-color: #2f6db5;
  background-image: linear-gradient(to bottom, #3b7ec9 0%, #275e9e 100%);
  border-bottom: 1px solid #1f4d82;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 18px 24px;
}

.card-header h1 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 4px;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.35);
}

.card-header p {
  font-size: 13px;
  color: #dce9f7;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.card-body {
  padding: 24px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  color: #444444;
  margin-bottom: 5px;
}

.required {
  color: #c9302c;
}

.optional {
  font-weight: normal;
  color: #888888;
  font-size: 12px;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
  width: 100%;
  height: 36px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 14px;
  color: #333333;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input::placeholder {
  color: #999999;
}

input:focus {
  outline: none;
  border-color: #66afe9;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px rgba(102, 175, 233, 0.6);
}

input.is-invalid {
  border-color: #a94442;
  background-color: #fffafa;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

input.is-invalid:focus {
  border-color: #843534;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px rgba(206, 132, 131, 0.6);
}

.error-text {
  color: #a94442;
  font-size: 12px;
  margin-top: 4px;
  min-height: 16px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #eeeeee;
}

.btn {
  display: inline-block;
  padding: 8px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid transparent;
  user-select: none;
}

.btn-primary {
  color: #ffffff;
  background-color: #2f6db5;
  background-image: linear-gradient(to bottom, #3b7ec9 0%, #265a96 100%);
  border-color: #204d74;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
  background-image: linear-gradient(to bottom, #3373bc 0%, #204d82 100%);
}

.btn-primary:active {
  background-image: none;
  background-color: #204d82;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-default {
  color: #333333;
  background-color: #f5f5f5;
  background-image: linear-gradient(to bottom, #ffffff 0%, #e6e6e6 100%);
  border-color: #cccccc;
  text-shadow: 0 1px 0 #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-default:hover {
  background-image: linear-gradient(to bottom, #f8f8f8 0%, #dcdcdc 100%);
  border-color: #adadad;
}

.btn-default:active {
  background-image: none;
  background-color: #e0e0e0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12);
}

.alert-success {
  color: #3c763d;
  background-color: #dff0d8;
  border: 1px solid #d6e9c6;
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.alert-success strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.submitted-data h3 {
  font-size: 14px;
  color: #555555;
  margin-bottom: 10px;
}

.data-list {
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  background-color: #fafafa;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.data-row {
  display: flex;
  padding: 6px 0;
  border-bottom: 1px solid #eeeeee;
}

.data-row:last-child {
  border-bottom: none;
}

.data-row dt {
  width: 140px;
  flex-shrink: 0;
  font-weight: bold;
  color: #666666;
}

.data-row dd {
  color: #222222;
  word-break: break-word;
}

.card-footer {
  background-color: #f5f6f8;
  border-top: 1px solid #e1e5eb;
  padding: 10px 24px;
  font-size: 12px;
  color: #777777;
}

@media (max-width: 520px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .card-header,
  .card-body,
  .card-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .data-row {
    flex-direction: column;
    gap: 2px;
  }

  .data-row dt {
    width: auto;
  }
}
