:root {
  --black: #050505;
  --black-2: #111111;
  --black-3: #191919;
  --white: #ffffff;
  --wine: #821436;
  --wine-dark: #5f0d27;
  --wine-light: #b32a58;
  --gray-100: #f4f4f4;
  --gray-300: #d4d4d4;
  --gray-500: #929292;
  --gray-700: #3a3a3a;
  --line-dark: #2b2b2b;
  --line-light: #dedede;
  --shell: 1380px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background: var(--black);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

.shell {
  width: min(100% - 48px, var(--shell));
  margin-inline: auto;
}

.eyebrow {
  color: var(--wine-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

/* Brand header */
.brand-header {
  display: grid;
  grid-template-columns: minmax(220px, 22vw) minmax(0, 1fr) minmax(220px, 22vw);
  min-height: 132px;
  background: var(--white);
  border-bottom: 5px solid var(--wine);
}

.brand-header__global,
.brand-header__uees {
  display: flex;
  align-items: center;
}

.brand-header__global {
  justify-content: flex-start;
  padding: 18px clamp(30px, 5vw, 78px);
  background: var(--black);
}

.brand-header__global img {
  width: min(430px, 80%);
  max-height: 92px;
  object-fit: contain;
}

.brand-header__uees {
  justify-content: flex-start;
  gap: 24px;
  padding: 22px clamp(28px, 4vw, 56px);
  background: var(--wine);
}

.brand-header .embassy-band__viewport {
  border-left: 1px solid #e4e4e4;
  border-right: 1px solid #e4e4e4;
}

.brand-header__uees span {
  max-width: 90px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  line-height: 1.35;
  text-transform: uppercase;
}

.brand-header__uees img {
  width: 150px;
  max-height: 74px;
  object-fit: contain;
}

.brand-header__uees-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.brand-header__uees-logo-small {
  width: 90px;
  max-height: 44px;
}

.page-grid > *,
.section-heading > * {
  min-width: 0;
}

/* Catalogue */
.catalogue {
  padding-block: clamp(72px, 8vw, 112px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 60px;
  align-items: end;
  margin-bottom: 56px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-dark);
}

.section-heading h2,
.form-heading h2 {
  margin-top: 10px;
  font-size: clamp(34px, 4vw, 58px);
  letter-spacing: -0.035em;
  line-height: 1;
}

.section-heading > p {
  color: var(--gray-500);
  font-size: 15px;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(400px, 0.65fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

.programs,
.month-section {
  display: grid;
  gap: 22px;
}

.programs {
  gap: 52px;
}

.month-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--wine);
}

.month-heading h3 {
  font-size: 28px;
  letter-spacing: -0.02em;
}

.month-heading span {
  color: var(--gray-500);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.program-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  border: 1px solid var(--line-dark);
  background: var(--black-2);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.program-card.is-selected {
  border-color: var(--wine-light);
  box-shadow: inset 0 4px 0 var(--wine);
}

.program-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.program-card__mode {
  color: var(--wine-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.program-card h4 {
  margin-top: 12px;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.program-card__facilitator {
  margin-top: 10px;
  color: var(--gray-500);
  font-size: 13px;
}

.session-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 24px;
  border: 1px solid var(--line-dark);
}

.session-dates div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
}

.session-dates div + div {
  border-left: 1px solid var(--line-dark);
}

.session-dates span,
.local-times > p {
  color: var(--gray-500);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.session-dates strong {
  font-size: 13px;
}

.local-times {
  margin-top: 24px;
}

.time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
}

.time-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 8px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line-dark);
  background: var(--black);
  transition: border-color 180ms ease, background 180ms ease;
}

.time-chip__flags {
  display: flex;
  grid-row: 1 / span 2;
  gap: 4px;
  white-space: nowrap;
}

.time-chip__flags img {
  width: 22px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  object-fit: cover;
}

.time-chip__countries {
  overflow: hidden;
  color: var(--gray-500);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.time-chip strong {
  font-size: 12px;
}

.time-chip.is-selected {
  border-color: var(--wine-light);
  background: var(--wine-dark);
}

.time-chip.is-selected .time-chip__countries {
  color: rgba(255, 255, 255, 0.7);
}

.program-card__action {
  min-height: 48px;
  border: 0;
  border-top: 1px solid var(--line-dark);
  background: transparent;
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  transition: background 180ms ease;
}

.program-card__action:hover,
.program-card__action:focus-visible {
  background: var(--wine);
}

/* Registration form */
.registration {
  position: sticky;
  top: 24px;
  scroll-margin-top: 24px;
}

.registration-form {
  padding: clamp(28px, 3vw, 42px);
  border-top: 5px solid var(--wine);
  background: var(--white);
  color: var(--black);
}

.form-heading {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-light);
}

.form-heading h2 {
  font-size: clamp(30px, 3vw, 42px);
}

.form-heading > p:last-child {
  margin-top: 12px;
  color: #676767;
  font-size: 14px;
}

.form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 14px;
  margin-top: 18px;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.field--full {
  grid-column: 1 / -1;
  margin-top: 18px;
}

.field label {
  font-size: 12px;
  font-weight: 700;
}

.field label span {
  color: var(--wine);
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #bababa;
  border-radius: 0;
  background: var(--white);
  color: var(--black);
}

.field input:focus,
.field select:focus {
  border-color: var(--wine);
  outline: 2px solid rgba(130, 20, 54, 0.17);
  outline-offset: 1px;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: #b42318;
}

.field-error {
  min-height: 15px;
  color: #b42318;
  font-size: 11px;
}

.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 26px;
  font-size: 12px;
  line-height: 1.5;
}

.consent input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--wine);
}

.privacy-copy {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
  color: #737373;
  font-size: 11px;
}

.submit-button {
  width: 100%;
  min-height: 50px;
  margin-top: 24px;
  border: 0;
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  transition: background 180ms ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  background: var(--wine);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.45;
}

.form-status.is-warning {
  color: #7a4b00;
}

.form-status.is-success {
  color: #087443;
}

.form-status.is-error {
  color: #b42318;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line-dark);
  background: var(--black-2);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: 34px;
}

.footer__inner > p {
  color: var(--gray-500);
  font-size: 12px;
}

.footer__marks {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer__marks img {
  max-width: 118px;
  max-height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

@media (max-width: 1100px) {
  .page-grid {
    grid-template-columns: 1fr;
  }

  .registration {
    position: static;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 30px, var(--shell));
  }

  .brand-header {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .brand-header__global,
  .brand-header__uees {
    justify-content: center;
  }

  .brand-header__global {
    min-height: 100px;
    padding: 16px 24px;
  }

  .brand-header__global img {
    width: min(320px, 85%);
    max-height: 74px;
  }

  .brand-header__uees {
    min-height: 78px;
    padding: 14px 20px;
  }

  .brand-header__uees span {
    display: none;
  }

  .brand-header__uees img {
    width: 120px;
  }

  .brand-header__uees-logo-small {
    width: 76px;
    max-height: 38px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .program-grid,
  .form-fields {
    grid-template-columns: 1fr;
  }

  .field--full {
    grid-column: auto;
  }

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

  .registration-form {
    padding: 28px 20px;
  }

  .footer__inner,
  .footer__marks {
    flex-direction: column;
  }

  .footer__inner {
    align-items: flex-start;
  }

  .footer__marks {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
