@import url('https://fonts.googleapis.com/css?family=Lato');

/* basic mode visibility for HostBill JS */
.mode {
  display: none;
}
.transfer .mode-transfer {
  display: initial;
}
.register .mode-register {
  display: initial;
}

/* -------------------------------------------------- */
/* PanicHost domains header, cards & perks are styled */
/* by assets/css/pages/domains.css. This file only    */
/* contains HostBill-specific search/results tweaks.  */
/* -------------------------------------------------- */

/* Hide legacy inner heading – we already show PHX hero title above */
#orderpage .domain-search h1.mode {
  display: none;
}

/* Force PHX search input height and vertical centering despite autosize.js inline styles */
#orderpage .domain-textarea textarea.phx-form-input {
  height: 54px !important;              /* match .phx-form-input height from domains.css */
  line-height: 54px !important;         /* vertically center single-line text */
  resize: none;
  overflow: hidden;
}
/* Align textarea + search button flush, like original PHX input */
#orderpage .domain-header .domain-input {
  display: flex;
  align-items: stretch;
}
#orderpage .domain-header .domain-textarea {
  flex: 1 1 auto;
}
#orderpage .domain-header .domain-search-btn.phx-submit-btn {
  flex: 0 0 auto;
  height: 54px;
  margin-top: 0 !important;   /* cancel phx-mt-1 so button aligns vertically with input */
}

/* Search area styling now comes entirely from assets/css/pages/domains.css
   via PHX classes (phx-search-form, phx-form-label, phx-form-input, etc.). */

/* Results container – PHX-style card */
#orderpage .domain-search-results {
  background: #151329;
  border-radius: 16px;
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
/* Hide results container until it actually has content */
#orderpage .domain-search-results:empty {
  display: none;
}

/* Query header row */
#orderpage .result-query {
  padding: 14px 18px;
  background: linear-gradient(90deg, #1f1a3a, #2d264f);
  font-size: 12px;
  font-weight: 500;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid #262046;
}

/* Individual result rows */
#orderpage .result-group {
  list-style: none;
  margin: 0;
  padding: 0;
}

#orderpage .result-row {
  clear: both;
  margin: 0;
  padding: 12px 18px;
  background: #151329;
  line-height: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#orderpage .result-row:nth-child(2n) {
  background: #1d1a36;
}

#orderpage .result-row .result-data {
  display: flex;
  align-items: center;
  gap: 16px;
}

#orderpage .result-row .result-hostname {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}
#orderpage .result-row .result-tld {
  color: #ffd66b;
  margin-left: 2px;
}

#orderpage .result-row .result-price .price-amount {
  font-weight: 600;
  color: #ffffff;
}
#orderpage .result-row .result-price .price-period {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

/* Right-hand actions column */
#orderpage .result-row .result-actions {
  display: flex;
  justify-content: flex-end;
}
/* Row of action buttons + remove link side by side */
#orderpage .result-row .result-actions-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Subtle hover highlight for each result row */
#orderpage .result-row:hover {
  background: #221c44;
}

/* Result action buttons */
#orderpage .result-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  color: #ffffff;
  background: #2f2a4a;
  border-radius: 999px;
  height: 34px;
  line-height: 1;
  font-size: 12px;
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
#orderpage .result-button:hover {
  background: #4a3d84;
  border-color: #6b3bff;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.5);
}

/* "Remove from cart" text link on the left of buttons (only when inCart) */
#orderpage .result-remove-link {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
}
#orderpage .result-remove-link:hover {
  color: #ffffff;
}

/* Cart summary bar under results */
#orderpage .domain-order {
  background: #151329;
  text-align: center;
  padding: 14px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45);
}

/* -------------------------------------------------- */
/* SECTION III feature cards – ensure perfectly even  */
/* heights and aligned arrows across all columns      */
/* -------------------------------------------------- */

#phx-domains-page .phx-se-iii .phx-row {
  align-items: stretch;
}

#phx-domains-page .phx-se-iii .phx-box {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#phx-domains-page .phx-se-iii .phx-box-para {
  flex-grow: 1;
}

#phx-domains-page .phx-se-iii .phx-arrow {
  margin-top: auto;
}

/* -------------------------------------------------- */
/* Light theme overrides – keep results readable      */
/* -------------------------------------------------- */

.phx-light-theme #orderpage .domain-search-results {
  background: #ffffff;
  border: 1px solid #dde1f0;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
}

.phx-light-theme #orderpage .result-query {
  background: linear-gradient(90deg, #f5f6fb, #e5e8f9);
  color: #4b4f63;
  border-bottom: 1px solid #dde1f0;
}

.phx-light-theme #orderpage .result-group {
  background: #ffffff;
}

.phx-light-theme #orderpage .result-row {
  background: #ffffff;
}
.phx-light-theme #orderpage .result-row:nth-child(2n) {
  background: #f6f7fb;
}
.phx-light-theme #orderpage .result-row:hover {
  background: #edf0ff;
}

.phx-light-theme #orderpage .result-row .result-hostname {
  color: #111322;
}
.phx-light-theme #orderpage .result-row .result-price .price-amount {
  color: #111322;
}
.phx-light-theme #orderpage .result-row .result-price .price-period {
  color: #6b6f85;
}

.phx-light-theme #orderpage .result-button {
  background: #f2f4ff;
  color: #0052e0;
  border-color: rgba(0, 82, 224, 0.28);
}
.phx-light-theme #orderpage .result-button:hover {
  background: #0052e0;
  color: #ffffff;
  border-color: #0052e0;
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.18);
}

.phx-light-theme #orderpage .result-remove-link {
  color: #5b5f75;
}
.phx-light-theme #orderpage .result-remove-link:hover {
  color: #111322;
}

.phx-light-theme #orderpage .domain-order {
  background: #ffffff;
  border-color: #dde1f0;
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.12);
}


