/* Domain registration page. Shared tokens and components live in landing.css. */

.lp section[id] { scroll-margin-top: 80px; }

/* Hero: the search, centered, as a browser address bar */

.lp .w-domain-hero { padding-bottom: 96px; }
.lp .w-domain-hero .w-hero-lead { margin-inline: auto; }

.lp .w-search { max-width: 720px; margin: 36px auto 0; }

.lp .w-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  padding-inline-start: 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.7);
}

.lp .w-search-lock { flex: none; font-size: 0.95rem; color: var(--good); }

/* The domain is typed left to right but sits on the right, next to the lock, like the rest of the page */
.lp .w-search-bar input {
  flex: 1;
  min-width: 0;
  padding: 12px 4px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  outline: none;
}

.lp .w-search-bar input::placeholder { font-weight: 400; color: #a798a2; }
.lp .w-search-bar:focus-within { box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.7), 0 0 0 3px var(--rose); }
.lp .w-search-bar .w-btn { flex: none; min-height: 48px; padding: 0 22px; }
.lp .w-search-bar .w-btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.lp .w-search-check { display: flex; justify-content: center; min-height: 65px; margin-top: 14px; }

/* Results, printed as a receipt under the search */
.lp .w-results { margin-top: 6px; text-align: right; }

.lp .w-res-msg {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.lp .w-res-list {
  padding: 6px 20px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.6);
}

.lp .w-res-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--rule);
}

.lp .w-res-list li:last-child { border-bottom: 0; }
.lp .w-res-name { font-size: 1.05rem; font-weight: 700; text-align: right; }
.lp .w-res-status { font-size: 0.88rem; font-weight: 700; }
.lp .w-res-list li.is-free .w-res-status { color: #3f6b16; }
.lp .w-res-list li.is-taken .w-res-status { color: var(--bad); }
.lp .w-res-list li.is-taken .w-res-name { color: var(--mute); text-decoration: line-through; text-decoration-color: rgba(229, 72, 77, 0.5); }
.lp .w-res-price { font-size: 0.9rem; color: var(--mute); }
.lp .w-res-list .w-btn { min-height: 40px; padding: 0 18px; font-size: 0.9rem; }

/* Prices, as one price list */

.lp .w-tld-wrap { max-width: 860px; margin: 0 auto; }
.lp .w-tld-sheet { padding: 30px 34px calc(28px + var(--zz)); }

.lp .w-tld-list li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--rule);
}

.lp .w-tld-list li.is-popular {
  margin-inline: -14px;
  padding-inline: 14px;
  border-radius: 12px;
  background: var(--blush);
}

.lp .w-tld-name {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  text-align: right;
}

.lp .w-tld-note { font-size: 0.92rem; color: var(--mute); }

.lp .w-tld-tag {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--magenta);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}

.lp .w-tld-price { display: flex; align-items: baseline; white-space: nowrap; }

.lp .w-tld-price b {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 0.9;
  color: var(--magenta);
}

.lp .w-tld-price .w-cur { align-self: flex-start; margin-top: 2px; font-size: 1rem; vertical-align: 0; color: var(--magenta); }

.lp .w-tld-order {
  padding: 8px 16px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.lp .w-tld-order:hover { background: var(--ink); color: #fff; }

.lp .w-tld-foot { margin-top: 16px; font-size: 0.95rem; text-align: center; }
.lp .w-tld-foot b { color: var(--magenta); }
.lp .w-tld-more { max-width: 46em; margin: 24px auto 0; color: var(--mute); text-align: center; }

/* Transfer steps: four of them */
.lp .w-steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 56px; }

/* The hosting offer shown before the cart */

.lp .w-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(26, 11, 30, 0.65);
}

.lp .w-modal[hidden] { display: none; }

body:has(#hostingModal:not([hidden])) [class*="elfsight-app"],
body:has(#hostingModal:not([hidden])) [class*="eapps-widget"],
body:has(#hostingModal:not([hidden])) #__EAAPS_PORTAL { display: none !important; }

.lp .w-modal-card {
  --zz: 14px;
  position: relative;
  width: min(100%, 460px);
  padding: 30px 28px calc(26px + var(--zz));
}

.lp .w-modal-close {
  position: absolute;
  top: 12px;
  left: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--blush);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}

.lp .w-modal-card h3 {
  padding-inline-end: 40px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.3rem;
  line-height: 1;
}

.lp .w-modal-card > p { margin-top: 10px; color: var(--mute); }
.lp .w-modal-card .w-receipt-items { margin-top: 16px; padding-top: 10px; border-top: 2px dashed var(--rule); }

.lp .w-modal-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 16px; }
.lp .w-modal-price small { font-size: 0.85rem; color: var(--mute); }

.lp .w-modal-price b {
  font-family: var(--display);
  font-weight: 700;
  font-size: 3rem;
  line-height: 0.85;
  color: var(--magenta);
}

.lp .w-modal-price .w-cur { align-self: flex-start; margin-inline-start: 0; font-size: 1rem; vertical-align: 0; color: var(--magenta); }
.lp .w-modal-card .w-actions { margin-top: 20px; }
.lp .w-modal-card .w-btn { flex: 1; }

@media (max-width: 900px) {
  .lp .w-steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .lp .w-search-bar { padding-inline-start: 12px; }
  .lp .w-search-bar input { font-size: 1.05rem; }
  .lp .w-search-bar .w-btn { padding: 0 14px; }

  .lp .w-res-list li { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .lp .w-res-price { grid-column: 1; }

  .lp .w-tld-sheet { padding: 22px 18px calc(22px + var(--zz)); }
  .lp .w-tld-list li { grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 14px; }
  .lp .w-tld-name { font-size: 2rem; }
  .lp .w-tld-note { grid-column: 1 / -1; grid-row: 2; }
  .lp .w-tld-order { grid-column: 3; grid-row: 1; }
  .lp .w-tld-price { grid-column: 2; grid-row: 1; justify-self: end; }

  .lp .w-steps-4 { grid-template-columns: minmax(0, 1fr); }
  .lp .w-modal-card .w-actions { flex-direction: column; }
}
