:root {
  color-scheme: light;
  --ink: #211a13;
  --muted: #6c5f54;
  --line: #eaded2;
  --surface: #fffaf3;
  --field: #ffffff;
  --maroon: #9d174d;
  --saffron: #ea8a16;
  --green: #177245;
  --shadow: 0 18px 55px rgba(57, 35, 16, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--surface);
  color: var(--ink);
}

main {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33, 26, 19, 0.08), rgba(33, 26, 19, 0.76));
}

.hero-content {
  position: relative;
  width: min(100%, 760px);
  padding: 28px 20px 34px;
  color: white;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffe3a9;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 12vw, 4.4rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-content p:last-child {
  max-width: 560px;
  margin: 14px 0 0;
  font-size: 1rem;
  line-height: 1.5;
}

.form-section {
  width: min(100%, 680px);
  margin: -18px auto 0;
  padding: 0 14px 32px;
  position: relative;
}

.photo-strip {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.photo-strip img {
  width: 82px;
  height: 82px;
  border-radius: 6px;
  object-fit: cover;
}

.photo-strip strong,
.photo-strip span {
  display: block;
}

.photo-strip strong {
  font-size: 1rem;
}

.photo-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 15px;
}

label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 0.92rem;
  font-weight: 750;
}

label span {
  color: var(--muted);
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dfd0c2;
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(157, 23, 77, 0.14);
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 12px;
}

.inline-action {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.otp-panel {
  margin: 18px -4px 14px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #f2d7ab;
  background: #fff6e9;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.primary {
  width: 100%;
  background: linear-gradient(135deg, var(--maroon), #c63452 48%, var(--saffron));
  color: white;
}

.secondary {
  padding: 0 14px;
  background: var(--green);
  color: white;
  white-space: nowrap;
}

.small {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.9rem;
}

.choices-section {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.choices-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

h2 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.2;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

td:last-child,
th:last-child {
  text-align: right;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: center;
  padding: 22px 14px 30px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: 0 10px 32px rgba(57, 35, 16, 0.1);
  text-decoration: none;
}

.footer-brand:focus,
.footer-brand:hover {
  border-color: rgba(157, 23, 77, 0.38);
}

.autotask-logo {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 4px;
  object-fit: contain;
  background: #fff;
}

.footer-kicker,
.footer-domain {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.1;
}

.footer-brand strong {
  display: block;
  margin: 1px 0;
  color: var(--maroon);
  font-size: 1rem;
  line-height: 1.1;
}

.status {
  min-height: 22px;
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.35;
}

.status.error {
  color: #b42318;
}

.status.success {
  color: #12633d;
}

@media (min-width: 760px) {
  main {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1fr);
    min-height: 100vh;
  }

  .hero {
    min-height: 100vh;
  }

  .form-section {
    margin: 0;
    padding: 32px 28px;
    align-self: center;
  }
}

@media (max-width: 430px) {
  .inline-action {
    grid-template-columns: 1fr;
  }

  .grid-two {
    grid-template-columns: 1fr 96px;
  }

  form {
    padding: 16px;
  }
}
