* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  color: #222;
}

.form-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
}

.form-card {
  width: 100%;
  max-width: 720px;
  background: #ffffff;
  padding: 36px;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

h2 {
  margin: 0 0 25px 0px;
  font-size: 32px;
  line-height: 1.2;
  text-align: center;
}

.sub {
  margin: 0 0 28px;
  text-align: center;
  font-size: 17px;
  color: #555;
}

.required-note {
  margin: 0 0 18px;
  font-size: 14px;
  text-align: left;
  color: #444;
}

.required-note span,
.required {
  color: #c62828;
  font-weight: 700;
}

.row {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
}

.field-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

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

.field-group label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  font-size: 16px;
  background: #fff;
}

input:focus {
  outline: none;
  border-color: #777;
}

.hidden {
  display: none;
}

button {
  width: 100%;
  margin-top: 8px;
  padding: 16px 20px;
  border: none;
  border-radius: 10px;
  background: #1f4e79;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  opacity: 0.94;
}

button:disabled {
  opacity: 0.75;
  cursor: wait;
}

.form-error {
  margin: 18px 0 0;
  color: #b00020;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

/* Thank You Page */

.thank-you-card {
  text-align: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.thank-you-logo {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 28px;
}

.form-logo {
  display: block;
  width: 225px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 5px;
}

.thank-you-heading {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.3;
}

.thank-you-body {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .form-card {
    padding: 26px 20px;
  }

  h2 {
    font-size: 27px;
  }

  .row {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
  }
}
