:root {
  --blue: #304f9f;
  --text: #151515;
  --muted: #202020;
  --page: #f8f8f8;
  --white: #ffffff;
  --line: #dddddd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Trebuchet MS", Arial, sans-serif;
}

.page {
  width: min(1080px, calc(100% - 32px));
  margin: 12px auto 0;
  padding: 34px 60px 30px;
  border-radius: 12px 12px 0 0;
  background: var(--white);
}

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

.logo {
  width: 230px;
  height: auto;
}

.top-button,
.main-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 4px;
  background: var(--blue);
  color: var(--white);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.top-button:link,
.top-button:visited,
.top-button:hover,
.top-button:focus,
.top-button:active,
.main-button:link,
.main-button:visited,
.main-button:hover,
.main-button:focus,
.main-button:active {
  color: var(--white);
}

.top-button {
  min-width: 150px;
  padding: 0 22px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 490px;
  gap: 36px;
  align-items: center;
}

.hero-copy {
  padding-top: 0;
}

h1 {
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 400;
  line-height: 1.45;
}

.subhead {
  max-width: 420px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.65;
}

.dates {
  display: grid;
  gap: 28px;
  margin-bottom: 32px;
}

.date-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 22px;
  align-items: center;
}

.date-row p {
  margin: 0;
  font-size: 24px;
  line-height: 1.45;
}

.date-row span:not(.calendar),
.date-row strong {
  display: block;
}

.date-row strong {
  font-weight: 700;
}

.calendar {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  border: 4px solid var(--blue);
  border-radius: 4px;
}

.calendar::before {
  position: absolute;
  top: 6px;
  left: -4px;
  width: 36px;
  height: 4px;
  background: var(--blue);
  content: "";
}

.calendar::after {
  position: absolute;
  top: 15px;
  left: 7px;
  width: 5px;
  height: 5px;
  background: var(--blue);
  box-shadow: 10px 0 0 var(--blue), 20px 0 0 var(--blue), 0 10px 0 var(--blue), 10px 10px 0 var(--blue), 20px 10px 0 var(--blue);
  content: "";
}

.main-button {
  width: 100%;
  padding: 0 22px;
  font-size: 18px;
  letter-spacing: 0.16em;
}

.speaker-card {
  margin: 0;
  padding: 22px 22px 70px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.speaker-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.1 / 1;
  object-fit: cover;
  object-position: 50% 20%;
}

.speaker-text {
  padding: 42px 22px 0;
}

.speaker-text h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.1;
}

.speaker-text p {
  margin: 0;
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.next-card {
  margin: 60px 40px 38px;
  padding: 22px 24px 26px;
  background: var(--white);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.13);
  text-align: center;
}

.next-card p {
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.next-card hr {
  width: 100%;
  height: 1px;
  margin: 0 0 22px;
  border: 0;
  background: var(--line);
}

.main-button.small {
  width: auto;
  min-width: 180px;
  min-height: 50px;
  padding: 0 28px;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.footer {
  padding-top: 10px;
  text-align: center;
}

.footer p {
  max-width: 980px;
  margin: 0 auto 12px;
  color: #222222;
  font-size: 14px;
  line-height: 1.6;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
}

.modal.is-open,
.modal:target {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(625px, 100%);
  max-height: calc(100vh - 56px);
  overflow: auto;
  padding: 26px 25px 25px;
  border-radius: 5px;
  background: #e9edf3;
}

.modal-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: rgba(40, 40, 40, 0.62);
  color: #ffffff;
  font-size: 42px;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.zapier-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.modal-panel h2 {
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}

.registration-form {
  display: grid;
  gap: 10px;
}

.registration-form input[type="text"],
.registration-form input[type="email"],
.registration-form input[type="tel"],
.registration-form textarea,
.registration-form select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  background: #ffffff;
  color: #222222;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.registration-form textarea {
  min-height: 74px;
  padding-top: 15px;
  resize: vertical;
}

.field-label,
.registration-form legend {
  margin-top: 2px;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.field-label span,
.registration-form legend span {
  color: #ff0000;
}

.registration-form fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.registration-form legend {
  width: 100%;
  margin-bottom: 8px;
}

.registration-form fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.registration-form button {
  min-height: 50px;
  border: 0;
  border-radius: 3px;
  background: var(--blue);
  color: #ffffff;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.form-note {
  margin: 0;
  color: #222222;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 920px) {
  .page {
    width: 100%;
    margin-top: 0;
    padding: 28px 24px;
    border-radius: 0;
  }

  .header {
    margin-bottom: 42px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .speaker-card {
    max-width: 520px;
    margin: 0 auto;
  }

  .next-card {
    margin-right: 0;
    margin-left: 0;
  }
}

@media (max-width: 620px) {
  .header {
    align-items: center;
    flex-direction: column;
  }

  h1 {
    font-size: 26px;
  }

  .subhead {
    font-size: 19px;
  }

  .date-row p {
    font-size: 20px;
  }
}
