:root {
  --aws-orange: #ff9900;
  --aws-orange-hover: #ec7211;
  --aws-navy: #232f3e;
  --aws-border: #e9ebed;
  --aws-light: #fafafa;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --red-500: #ef4444;
  --green-600: #16a34a;
}

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

html, body { height: 100%; margin: 0; }

body {
  font-family: Poppins, system-ui, sans-serif;
  color: var(--gray-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--aws-light);
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--aws-border);
}
.header-inner { height: 4rem; display: flex; align-items: center; }
.logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.logo { height: 2.5rem; width: auto; object-fit: contain; }

/* Main */
.main { flex: 1; background: #fff; }

.hero {
  display: flex;
  justify-content: center;
  padding: 1rem 0.5rem;
}
.hero-img {
  max-width: min(1058px, 100%);
  max-height: 400px;
  height: auto;
  object-fit: contain;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

/* Intro column */
.intro { padding: 0 1rem; }
.preview-img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 18rem;
  object-fit: contain;
  border-radius: 0.5rem;
}
h1 {
  margin: 1rem 0;
  text-align: center;
  color: var(--gray-900);
  font-weight: 500;
  font-size: 1.875rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.copy { margin: 1.5rem 0; color: var(--gray-800); font-size: 1rem; }
.copy p { margin: 0 0 1rem; }
.copy ul { margin: 0; padding-left: 1.5rem; }
.copy li { margin-bottom: 0.75rem; }

/* Form column */
.form-col { padding-top: 1rem; }

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0.5rem;
}
.fields input {
  width: 100%;
  margin: 0.5rem 0;
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: 0.875rem;
  color: #000;
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 0.375rem;
}
.fields input::placeholder { color: var(--gray-500); }
.fields input:focus,
.dropdown-btn:focus-visible {
  outline: 2px solid var(--aws-orange);
  outline-offset: 1px;
}
.fields input.invalid { border-color: var(--red-500); }

/* Questions / custom dropdowns */
.questions { list-style: none; margin: 0; padding: 0; font-size: 0.875rem; }
.questions > li { margin: 1rem 0; }
.questions label { font-size: 0.875rem; color: var(--gray-700); }
.questions .max { margin: 0 0.5rem; }

.dropdown {
  position: relative;
  margin: 0.5rem 0;
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 0.375rem;
}
.dropdown.invalid { border-color: var(--red-500); }
.dropdown-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.75rem 1rem 0.5rem;
  font: inherit;
  font-size: 0.875rem;
  text-align: left;
  color: var(--gray-500);
  background: transparent;
  border: 0;
  border-radius: 0.375rem;
  cursor: pointer;
}
.dropdown.has-value .dropdown-btn { color: var(--gray-900); }
.dropdown-btn svg { flex: none; fill: currentColor; transition: transform 0.15s; }
.dropdown.open .dropdown-btn svg { transform: rotate(180deg); }

.dropdown-list {
  position: absolute;
  left: -1px;
  right: -1px;
  top: calc(100% + 2px);
  z-index: 20;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.dropdown-list[hidden] { display: none; }
.dropdown-list li {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--gray-800);
  cursor: pointer;
}
.dropdown-list li:hover,
.dropdown-list li.active { background: #fff4e0; }
.dropdown-list li[aria-selected="true"] { font-weight: 500; }

/* Consents */
.optin-title { margin: 0.5rem 0 0; font-size: 0.875rem; font-weight: 500; color: var(--gray-700); }
.consents { list-style: none; margin: 0; padding: 0 0 1rem; font-size: 0.75rem; }
.consents li { display: flex; align-items: center; padding: 0.5rem 0; text-align: justify; }
.consents input { flex: none; margin: 0.5rem 0.5rem 0.5rem 0; cursor: pointer; accent-color: var(--aws-orange); }
.consents label { color: var(--gray-700); cursor: pointer; }
.consents a { color: inherit; text-decoration: underline; }

/* Submit */
.submit-area { display: flex; flex-direction: column; align-items: center; width: 100%; }
#submit {
  padding: 1rem 2.5rem;
  font: inherit;
  color: #fff;
  background: var(--aws-orange);
  border: 0;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  cursor: pointer;
  transition: all 0.15s;
}
#submit:hover:not(:disabled) { background: var(--aws-orange-hover); }
#submit:focus-visible { outline: 2px solid var(--aws-orange); outline-offset: 2px; }
#submit:disabled { opacity: 0.5; cursor: not-allowed; }
.error { margin-top: 0.5rem; font-size: 0.75rem; text-align: center; color: var(--red-500); }
.hint { margin-top: 1rem; color: var(--gray-700); text-align: center; }
.hint[hidden] { display: none; }
.success { margin-top: 1rem; color: var(--green-600); font-weight: 500; text-align: center; }

/* Footer */
.site-footer { background: var(--aws-navy); color: #fff; }
.site-footer .container { padding-top: 2rem; padding-bottom: 2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; list-style: none; font-size: 0.875rem; }
.footer-links a { color: #fff; text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--aws-orange); }
.copyright { margin: 1rem 0 0; font-size: 0.75rem; color: #d1d5db; }

/* Desktop: two columns */
@media (min-width: 1024px) {
  .content-grid { grid-template-columns: 1fr 1fr; }
  .intro { padding: 0 2rem; }
  .form-col { padding-left: 1rem; }
}

@media (min-width: 640px) {
  #leadForm { margin-left: 1rem; margin-right: 1rem; }
}

/* Small screens: stack the two-up inputs */
@media (max-width: 480px) {
  .fields { grid-template-columns: 1fr; }
  h1 { font-size: 1.5rem; }
}

.download-link { color: var(--aws-orange-hover); text-decoration: underline; }

/* Honeypot field for bots: kept off-screen, never shown to people */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
