/**
 * @file
 * Popup "Đăng ký thông tin" (trang ngoài).
 */

html.llct-dk-open,
html.llct-dk-open body {
  overflow: hidden;
}

.llct-dk {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  font-family: var(--llc-font-sans, 'Be Vietnam Pro', sans-serif);
}

.llct-dk[hidden] {
  display: none;
}

.llct-dk__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.llct-dk__dialog {
  position: relative;
  width: 100%;
  max-width: 776px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.32);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.llct-dk.is-open .llct-dk__backdrop,
.llct-dk.is-open .llct-dk__dialog {
  opacity: 1;
  transform: none;
}

.llct-dk__head {
  position: relative;
  padding: 28px 72px 26px 34px;
  background: linear-gradient(90deg, #e3870f 0%, #c96503 100%);
  color: #fff;
}

.llct-dk__eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.llct-dk__title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
}

.llct-dk__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  opacity: 0.95;
}

.llct-dk__close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.llct-dk__close:hover,
.llct-dk__close:focus-visible {
  background: rgba(255, 255, 255, 0.3);
  outline: none;
}

.llct-dk__form,
.llct-dk__done {
  padding: 30px 34px 34px;
}

.llct-dk__form[hidden],
.llct-dk__done[hidden] {
  display: none;
}

.llct-dk__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

.llct-dk__field {
  min-width: 0;
}

.llct-dk__label {
  display: block;
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.llct-dk__req {
  color: #c0262d;
}

.llct-dk__input {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #d9dee6;
  border-radius: 6px;
  background: #f8fafc;
  color: #1f2937;
  font: inherit;
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.llct-dk__input::placeholder {
  color: #8a94a3;
}

.llct-dk__input:focus {
  border-color: #c9920d;
  background: #fff;
  box-shadow: 0 0 0 1px #c9920d;
  outline: none;
}

.llct-dk__field.has-error .llct-dk__input {
  border-color: #c0262d;
  background: #fff;
}

.llct-dk__error {
  margin: 6px 0 0;
  color: #c0262d;
  font-size: 13px;
  line-height: 1.4;
}

.llct-dk__error:empty {
  display: none;
}

.llct-dk__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.llct-dk__message {
  margin: 18px 0 0;
  font-size: 14px;
}

.llct-dk__message:empty {
  display: none;
}

.llct-dk__message.is-error {
  color: #c0262d;
}

.llct-dk__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid #edf0f4;
}

.llct-dk__note {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

.llct-dk__submit {
  flex-shrink: 0;
  min-width: 166px;
  height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 6px;
  background: #c0311c;
  box-shadow: 0 8px 18px rgba(192, 49, 28, 0.28);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.llct-dk__submit:hover,
.llct-dk__submit:focus-visible {
  background: #a5260f;
  outline: none;
}

.llct-dk__submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.llct-dk__done {
  text-align: center;
}

.llct-dk__done-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #e7f6ec;
  color: #198754;
}

.llct-dk__done-text {
  max-width: 460px;
  margin: 0 auto 24px;
  color: #1f2937;
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .llct-dk {
    align-items: flex-end;
    padding: 0;
  }

  .llct-dk__dialog {
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 12px 12px 0 0;
  }

  .llct-dk__head {
    padding: 20px 60px 18px 16px;
  }

  .llct-dk__eyebrow {
    font-size: 11px;
  }

  .llct-dk__title {
    font-size: 21px;
  }

  .llct-dk__desc {
    font-size: 14px;
  }

  .llct-dk__close {
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
  }

  .llct-dk__form,
  .llct-dk__done {
    padding: 20px 16px 24px;
  }

  .llct-dk__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .llct-dk__foot {
    flex-direction: column-reverse;
    align-items: stretch;
    margin-top: 22px;
    padding-top: 18px;
    text-align: center;
  }

  .llct-dk__submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .llct-dk__backdrop,
  .llct-dk__dialog {
    transition: none;
  }
}
