/* Replica of welcome.aiesec.org */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body.welcome-chooser {
  min-height: 100vh;
  min-width: 100%;
  display: flex;
  flex-direction: column;
  font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(3, 126, 243, 0.1), transparent 55%),
    radial-gradient(720px 380px at 100% 0%, rgba(12, 185, 193, 0.1), transparent 50%),
    #f4f7fb;
  color: #4a4a4a;
}

.welcome-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .welcome-shell {
    padding: 1.75rem;
  }

  .welcome-shell.is-signup {
    padding: 1.25rem;
  }
}

.welcome-shell.is-signup .welcome-progress {
  border-radius: 0;
}

.welcome-progress {
  height: 4px;
  width: 100%;
  background: #f5f5f5;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.welcome-progress-bar {
  height: 100%;
  width: 0;
  background: #037ef3;
  transition: width 0.35s ease;
}

.welcome-center {
  display: flex;
  flex: 1;
  width: 100%;
  min-height: 0;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.welcome-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  width: 100%;
  max-width: 64rem;
  padding: 2.5rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
  animation: welcome-in 0.55s ease-out;
}

@keyframes welcome-in {
  from {
    opacity: 0;
    transform: translateX(48px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-card,
  .welcome-progress-bar {
    animation: none;
    transition: none;
  }
}

.welcome-logo-wrap {
  width: 8rem;
  margin: -0.25rem 0 0.75rem;
}

@media (min-width: 768px) {
  .welcome-logo-wrap {
    width: 16rem;
  }
}

.welcome-logo-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.welcome-intro {
  font-weight: 300;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #6b7280;
  margin: 0;
}

.welcome-intro.is-product {
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .welcome-intro {
    font-size: 1.125rem;
  }
}

.welcome-heading {
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.625;
  color: #4a4a4a;
  margin: 0.5rem 0 0;
}

@media (min-width: 768px) {
  .welcome-heading {
    font-size: 1.875rem;
    line-height: 1.625;
  }
}

.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

@media (min-width: 768px) {
  .welcome-actions.row {
    flex-direction: row;
    gap: 1.25rem;
  }
}

.welcome-btn {
  display: block;
  appearance: none;
  border: 0;
  text-align: center;
  text-decoration: none;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.25rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

@media (min-width: 768px) {
  .welcome-btn.product {
    width: 16rem;
    font-size: 1.125rem;
  }
}

.welcome-btn:hover,
.welcome-btn:focus-visible {
  filter: brightness(0.94);
  transform: translateY(-1px);
  color: #fff;
}

.welcome-btn:focus-visible {
  outline: 2px solid #037ef3;
  outline-offset: 3px;
}

.welcome-btn.gv {
  background-color: #f85a40;
}

.welcome-btn.gta {
  background-color: #0cb9c1;
}

.welcome-btn.gte {
  background-color: #f48924;
}

.welcome-btn.blue {
  background-color: #037ef3;
  align-self: flex-start;
}

.welcome-option {
  display: block;
  width: 100%;
  max-width: 24rem;
  margin: 0 1.25rem 1.25rem 0;
  appearance: none;
  border: 0;
  background: #eee;
  color: #4a4a4a;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  border-radius: 0.375rem;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

@media (min-width: 768px) {
  .welcome-option {
    font-size: 1.125rem;
  }
}

.welcome-option:hover,
.welcome-option:focus-visible {
  background: #037ef3;
  color: #fff;
}

.welcome-option:focus-visible {
  outline: 2px solid #037ef3;
  outline-offset: 3px;
}

.welcome-sdgs {
  display: flex;
  flex-wrap: wrap;
}

.welcome-sdg {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  width: 4rem;
  margin: 0.25rem;
  cursor: pointer;
}

@media (min-width: 768px) {
  .welcome-sdg {
    width: 8rem;
    margin: 0.75rem;
  }
}

.welcome-sdg img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.375rem;
}

.welcome-sdg:hover,
.welcome-sdg:focus-visible {
  transform: scale(1.06);
}

.welcome-sdg:focus-visible {
  outline: 2px solid #037ef3;
  outline-offset: 3px;
}

.welcome-sdg-unknown {
  margin: 0.25rem 0 0;
  max-width: 24rem;
}

.welcome-date {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: 22rem;
}

.welcome-date input[type="date"] {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 0.375rem;
  background: #f5f5f5;
  color: #4a4a4a;
}

.welcome-loader {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid #e5e7eb;
  border-top-color: #037ef3;
  border-radius: 50%;
  animation: welcome-spin 0.7s linear infinite;
}

@keyframes welcome-spin {
  to {
    transform: rotate(360deg);
  }
}

.welcome-center.is-form {
  align-items: flex-start;
  justify-content: center;
  padding: 1rem 0.5rem 1.5rem;
  overflow: auto;
}

.welcome-card.signup {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  width: 100%;
  max-width: 72rem;
  min-height: 0;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  animation: welcome-in 0.55s ease-out;
}

.welcome-signup-brand {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem 1.25rem;
  background: #037ef3;
  color: #fff;
}

.welcome-card.signup.signup-gv .welcome-signup-brand {
  background: #f85a40;
}

.welcome-card.signup.signup-gta .welcome-signup-brand {
  background: #0cb9c1;
}

.welcome-card.signup.signup-gte .welcome-signup-brand {
  background: #f48924;
}

.welcome-signup-brand .welcome-logo-wrap {
  width: 9.5rem;
  margin: 0 0 0.35rem;
}

.welcome-signup-product-logo {
  width: 100%;
  max-width: 15rem;
  margin: 0.15rem 0 0.35rem;
}

.welcome-signup-product-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.welcome-signup-brand .welcome-heading {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0.25rem 0 0;
  color: #fff;
}

.welcome-signup-brand .welcome-intro {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  padding-bottom: 0;
  max-width: 22rem;
}

.welcome-signup-fields {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 1.5rem 1.25rem 2rem;
  min-height: 0;
}

.welcome-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.9rem;
  width: 100%;
  max-width: none;
  padding: 0;
  min-height: 0;
}

.welcome-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.welcome-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  width: 100%;
  min-width: 0;
}

.welcome-field label,
.welcome-field-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #374151;
}

.welcome-field > label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.welcome-req {
  color: #f85a40;
}

.welcome-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  margin-left: 0.15rem;
  padding: 0;
  border: 1.5px solid #9ca3af;
  border-radius: 50%;
  background: transparent;
  color: #6b7280;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  cursor: help;
  flex: none;
}

.welcome-info:hover,
.welcome-info:focus,
.welcome-info.is-open {
  border-color: #037ef3;
  color: #037ef3;
  outline: none;
}

.welcome-info-tip {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 0.45rem);
  z-index: 8;
  width: max-content;
  max-width: 15.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.35rem;
  background: #111827;
  color: #fff;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
  white-space: normal;
  text-align: left;
}

.welcome-info:hover .welcome-info-tip,
.welcome-info:focus .welcome-info-tip,
.welcome-info.is-open .welcome-info-tip {
  display: block;
}

.welcome-hint {
  font-size: 0.74rem;
  font-weight: 400;
  color: #9ca3af;
  margin: 0;
}

.welcome-field label.welcome-consent {
  font-size: 0.78rem;
  font-weight: 400;
}

.welcome-field input:not([type="file"]):not([type="checkbox"]),
.welcome-field select {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  background: #fff;
  color: #111827;
  width: 100%;
}

.welcome-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7280' d='M4.2 6.2 8 10l3.8-3.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2.2rem;
}

.welcome-field input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  min-width: 1.1rem;
  padding: 0;
  margin: 0.12rem 0 0;
  accent-color: #037ef3;
  flex: none;
  box-shadow: none;
}

.welcome-field input:focus,
.welcome-field select:focus {
  outline: 2px solid #037ef3;
  outline-offset: 0;
  background: #fff;
  border-color: #037ef3;
}

.welcome-field.is-invalid input,
.welcome-field.is-invalid select,
.welcome-field.is-invalid .welcome-file {
  border-color: #f85a40;
  background: #fff8f6;
}

.welcome-field.is-valid input:not([type="checkbox"]):not([type="file"]),
.welcome-field.is-valid select,
.welcome-field.is-valid .welcome-file {
  border-color: #22c55e;
  background: #f0fdf4;
}

.welcome-field.is-valid input:focus,
.welcome-field.is-valid select:focus {
  outline-color: #22c55e;
  border-color: #16a34a;
}

.welcome-field.is-valid.welcome-consent-box {
  border-color: #22c55e;
  background: #f0fdf4;
}

.welcome-error {
  font-size: 0.75rem;
  color: #f85a40;
  margin: 0;
}

.welcome-form-banner {
  display: none;
  padding: 0.7rem 0.85rem;
  border-radius: 0.375rem;
  background: #fff5f3;
  color: #c2410c;
  font-size: 0.85rem;
}

.welcome-form-banner.is-visible {
  display: block;
}

.welcome-file {
  display: flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  background: #fff;
}

.welcome-file input[type="file"] {
  width: auto;
  max-width: 100%;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  font-size: 0.85rem;
}

.welcome-consent-box {
  padding: 0.85rem 0.9rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  background: #f8fafc;
}

.welcome-consent {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.5;
  color: #4b5563;
}

.welcome-consent span {
  flex: 1;
  min-width: 0;
}

.welcome-form .welcome-btn.blue {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.375rem;
}

.welcome-form .welcome-btn.blue:disabled {
  filter: none;
  transform: none;
  opacity: 0.7;
  cursor: wait;
}

.welcome-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  width: 100%;
  max-width: 32rem;
}

.welcome-success h1 {
  margin: 0;
}

.welcome-success .welcome-btn.blue {
  width: auto;
  margin-top: 0.5rem;
  padding: 0.8rem 1.4rem;
}

@media (min-width: 768px) {
  .welcome-center.is-form {
    align-items: center;
    height: auto;
    flex: 1;
    min-height: 0;
    padding: 1rem 0 1.25rem;
  }

  .welcome-card.signup {
    grid-template-columns: minmax(16rem, 38%) 1fr;
    height: auto;
    min-height: 0;
  }

  .welcome-signup-brand {
    justify-content: center;
    padding: 2.25rem 2rem;
    height: auto;
  }

  .welcome-signup-brand .welcome-logo-wrap {
    width: 12.5rem;
  }

  .welcome-signup-product-logo {
    max-width: 17rem;
  }

  .welcome-signup-brand .welcome-heading {
    font-size: 1.875rem;
  }

  .welcome-signup-fields {
    height: auto;
    padding: 1.5rem 1.75rem 1.5rem;
    overflow: visible;
  }

  .welcome-form {
    height: auto;
    gap: 0.8rem;
  }

  .welcome-form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Physical activations: content-sized card, original field sizes, extra left inset. */
html.is-physical-signup,
html.is-physical-signup body {
  height: auto;
  max-height: none;
  overflow: auto;
}

body.is-physical-signup.welcome-chooser {
  min-height: 100vh;
  height: auto;
  max-height: none;
  overflow: auto;
}

.welcome-shell[data-signup="physical"],
.welcome-shell.is-physical {
  height: auto;
  min-height: 100vh;
  max-height: none;
  padding: 1.25rem;
  overflow: visible;
}

.welcome-shell.is-physical .welcome-center.is-form {
  flex: 1;
  height: auto;
  min-height: 0;
  padding: 0;
  overflow: visible;
  align-items: center;
  justify-content: center;
}

.welcome-shell.is-physical .welcome-card.signup {
  height: auto;
  max-height: none;
  max-width: 72rem;
  border-radius: 0.75rem;
}

.welcome-shell.is-physical .welcome-signup-fields {
  height: auto;
  flex: none;
  padding: 1.5rem 1.5rem 1.5rem 1.85rem;
  overflow: visible;
}

.welcome-shell.is-physical .welcome-form {
  flex: none;
  height: auto;
  justify-content: flex-start;
  gap: 0.9rem;
  padding: 0;
  overflow: visible;
}

.welcome-shell.is-physical .welcome-form-row {
  flex: none;
  grid-template-columns: 1fr 1fr;
}

.welcome-shell.is-physical .welcome-hint {
  display: none;
}

@media (min-width: 768px) {
  .welcome-shell.is-physical {
    padding: 1.75rem;
  }

  .welcome-shell.is-physical .welcome-card.signup {
    grid-template-columns: minmax(16rem, 38%) 1fr;
    grid-template-rows: auto;
  }

  .welcome-shell.is-physical .welcome-signup-fields {
    padding: 1.5rem 1.75rem 1.5rem 2rem;
  }
}
