/* /templates/orderforms/nomad_order/css/style.css */

/* =========================================================
   NOMAD ORDERFORM - Match the “Reseller page” design language
   Scoped so it only affects cart/orderform pages.

   IMPORTANT FIX:
   Some WHMCS pages (especially cart.php?a=confproduct) do not include
   body.whmcs-cart. So we add a safe fallback scope:
     #order-standard_cart
   ========================================================= */

:root {
  --bg: #0b0f19;
  --card: rgba(17, 24, 39, 0.55);
  --card2: rgba(17, 24, 39, 0.35);
  --border: rgba(255, 255, 255, 0.08);
  --border2: rgba(255, 255, 255, 0.12);

  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.70);

  --green: #16a34a;
  --green2: #22c55e;

  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --shadowSoft: 0 10px 30px rgba(0, 0, 0, 0.35);

  --radiusLg: 22px;
  --radiusMd: 16px;
}

/* ===== Page base ===== */
body.whmcs-cart {
  background: var(--bg) !important;
  color: var(--text);
}

/* Fallback background if body.whmcs-cart is missing (confproduct sometimes) */
#order-standard_cart:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg);
}

body.whmcs-cart a,
#order-standard_cart a {
  text-decoration: none;
}

body.whmcs-cart #order-standard_cart.nomad-orderform,
#order-standard_cart.nomad-orderform {
  padding: 40px 0 90px;
}

body.whmcs-cart .nomad-order-container,
#order-standard_cart .nomad-order-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ===== HERO ===== */
body.whmcs-cart .nomad-hero,
#order-standard_cart .nomad-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 34px;
}

@media (max-width: 980px) {
  body.whmcs-cart .nomad-hero,
  #order-standard_cart .nomad-hero {
    grid-template-columns: 1fr;
  }
}

body.whmcs-cart .nomad-kicker,
#order-standard_cart .nomad-kicker {
  color: rgba(74, 222, 128, 0.95);
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 10px;
}

body.whmcs-cart .nomad-hero-title,
#order-standard_cart .nomad-hero-title {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 54px;
  line-height: 1.05;
  color: #fff;
}

@media (max-width: 980px) {
  body.whmcs-cart .nomad-hero-title,
  #order-standard_cart .nomad-hero-title {
    font-size: 42px;
  }
}

@media (max-width: 520px) {
  body.whmcs-cart .nomad-hero-title,
  #order-standard_cart .nomad-hero-title {
    font-size: 34px;
  }
}

body.whmcs-cart .nomad-hero-subtitle,
#order-standard_cart .nomad-hero-subtitle {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 760px;
}

body.whmcs-cart .nomad-pill-row,
#order-standard_cart .nomad-pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

body.whmcs-cart .nomad-pill,
#order-standard_cart .nomad-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;

  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  font-size: 13px;
}

body.whmcs-cart .nomad-pill i,
#order-standard_cart .nomad-pill i {
  color: rgba(74, 222, 128, 0.95);
}

/* ===== OFFER CARD (right side) ===== */
body.whmcs-cart .nomad-offer-card,
#order-standard_cart .nomad-offer-card {
  background: rgba(6, 30, 26, 0.55);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radiusLg);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.08), 0 25px 70px rgba(0,0,0,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 18px;
}

body.whmcs-cart .nomad-offer-top,
#order-standard_cart .nomad-offer-top {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

body.whmcs-cart .nomad-offer-icon,
#order-standard_cart .nomad-offer-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: rgba(74, 222, 128, 0.95);
  font-size: 18px;
}

body.whmcs-cart .nomad-offer-kicker,
#order-standard_cart .nomad-offer-kicker {
  color: rgba(74, 222, 128, 0.95);
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
}

body.whmcs-cart .nomad-offer-price,
#order-standard_cart .nomad-offer-price {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin-top: 4px;
}

body.whmcs-cart .nomad-offer-list,
#order-standard_cart .nomad-offer-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

body.whmcs-cart .nomad-offer-list li,
#order-standard_cart .nomad-offer-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.55;
}

body.whmcs-cart .nomad-offer-list i,
#order-standard_cart .nomad-offer-list i {
  color: rgba(74, 222, 128, 0.95);
  margin-top: 2px;
}

/* ===== Buttons ===== */
body.whmcs-cart .nomad-btn,
#order-standard_cart .nomad-btn {
  border-radius: 14px !important;
  padding: 12px 14px !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em;
}

body.whmcs-cart .nomad-btn-primary,
#order-standard_cart .nomad-btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green2)) !important;
  border: 1px solid rgba(34, 197, 94, 0.35) !important;
  color: #07150b !important;
  box-shadow: 0 18px 45px rgba(34, 197, 94, 0.18) !important;
}

body.whmcs-cart .nomad-btn-primary:hover,
#order-standard_cart .nomad-btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* ===== Section headings ===== */
body.whmcs-cart .nomad-section-title,
#order-standard_cart .nomad-section-title {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}

body.whmcs-cart .nomad-section-subtitle,
#order-standard_cart .nomad-section-subtitle {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

body.whmcs-cart .nomad-section-lead,
#order-standard_cart .nomad-section-lead {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radiusMd);
  padding: 14px;
  margin: 18px 0 18px;
  color: var(--muted);
}

/* ===== Products grid ===== */
body.whmcs-cart .nomad-products-grid,
#order-standard_cart .nomad-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 980px) {
  body.whmcs-cart .nomad-products-grid,
  #order-standard_cart .nomad-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.whmcs-cart .nomad-products-grid,
  #order-standard_cart .nomad-products-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Product card ===== */
body.whmcs-cart .nomad-product-card,
#order-standard_cart .nomad-product-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radiusLg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  min-height: 200px;

  position: relative;
  overflow: hidden;
}

body.whmcs-cart .nomad-product-card:before,
#order-standard_cart .nomad-product-card:before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radiusLg);
  pointer-events: none;
  background: radial-gradient(520px 260px at 18% 86%, rgba(34,197,94,0.14), transparent 58%);
  opacity: 0.95;
}

/* ===== Card head layout ===== */
body.whmcs-cart .nomad-product-card .nomad-card-head,
#order-standard_cart .nomad-product-card .nomad-card-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

body.whmcs-cart .nomad-product-card .nomad-card-left,
#order-standard_cart .nomad-product-card .nomad-card-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  width: 100%;
}

body.whmcs-cart .nomad-product-card .nomad-card-icon,
#order-standard_cart .nomad-product-card .nomad-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: rgba(74, 222, 128, 0.95);
  font-size: 20px;
}

body.whmcs-cart .nomad-product-card .nomad-card-title,
#order-standard_cart .nomad-product-card .nomad-card-title {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  text-align: center;
}

body.whmcs-cart .nomad-product-card .nomad-card-meta,
#order-standard_cart .nomad-product-card .nomad-card-meta {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(13px, 1.6vw, 14px);
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  max-width: 30ch;
}

/* ===== Price block ===== */
body.whmcs-cart .nomad-product-card .nomad-card-pricewrap,
#order-standard_cart .nomad-product-card .nomad-card-pricewrap {
  text-align: center;
  margin-top: 2px;
}

body.whmcs-cart .nomad-product-card .nomad-card-starting,
#order-standard_cart .nomad-product-card .nomad-card-starting {
  color: rgba(74, 222, 128, 0.92);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 4px;
}

body.whmcs-cart .nomad-product-card .nomad-card-price,
#order-standard_cart .nomad-product-card .nomad-card-price {
  align-self: center !important;
  margin: 0 !important;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;

  padding: 0 !important;
  border-radius: 0 !important;

  color: #fff !important;
  font-weight: 950 !important;

  font-size: clamp(20px, 2.8vw, 26px) !important;
  letter-spacing: -0.03em !important;
  line-height: 1.05 !important;

  white-space: normal !important;
  text-align: center !important;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.whmcs-cart .nomad-product-card .nomad-card-duration,
#order-standard_cart .nomad-product-card .nomad-card-duration {
  color: rgba(255, 255, 255, 0.78) !important;
  font-weight: 900 !important;
  font-size: 0.88em;
  margin-left: 6px;
  white-space: nowrap;
}

/* ===== Body text ===== */
body.whmcs-cart .nomad-product-card .nomad-card-body,
#order-standard_cart .nomad-product-card .nomad-card-body {
  margin-top: 10px;
  text-align: center;

  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(13px, 1.7vw, 14px);
  line-height: 1.65;

  position: relative;
  z-index: 1;
}

body.whmcs-cart .nomad-product-card .nomad-card-actions,
#order-standard_cart .nomad-product-card .nomad-card-actions {
  margin-top: 14px;
  position: relative;
  z-index: 1;
}

body.whmcs-cart .nomad-product-card .nomad-card-actions .nomad-btn-primary,
#order-standard_cart .nomad-product-card .nomad-card-actions .nomad-btn-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  border-radius: 18px !important;
  padding: 14px 16px !important;
  font-size: clamp(15px, 2vw, 17px) !important;
}

/* alerts */
body.whmcs-cart .nomad-alert,
body.whmcs-cart #order-standard_cart .alert,
#order-standard_cart .nomad-alert,
#order-standard_cart .alert {
  border-radius: 16px !important;
  border: 1px solid var(--border) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

/* =========================================================
   SAFE ADDITIONS (DO NOT AFFECT LAYOUT OUTSIDE PRODUCT CARDS)
   ========================================================= */

body.whmcs-cart .nomad-product-card .nomad-card-duration-pill,
#order-standard_cart .nomad-product-card .nomad-card-duration-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);

  color: rgba(255, 255, 255, 0.86);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1;
}

body.whmcs-cart .nomad-product-card ul.nomad-feature-list,
#order-standard_cart .nomad-product-card ul.nomad-feature-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;

  display: grid;
  gap: 14px;

  text-align: left;
}

body.whmcs-cart .nomad-product-card ul.nomad-feature-list li,
#order-standard_cart .nomad-product-card ul.nomad-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;

  color: rgba(255, 255, 255, 0.92);
  font-weight: 900;
  font-size: 14px;
  line-height: 1.35;
}

body.whmcs-cart .nomad-product-card ul.nomad-feature-list li i,
#order-standard_cart .nomad-product-card ul.nomad-feature-list li i {
  color: rgba(34, 197, 94, 0.95);
  font-size: 14px;
  margin-top: 2px;
}

body.whmcs-cart .nomad-product-card ul.nomad-feature-list li span,
#order-standard_cart .nomad-product-card ul.nomad-feature-list li span {
  display: block;
}

body.whmcs-cart .nomad-product-card ul.nomad-feature-list,
#order-standard_cart .nomad-product-card ul.nomad-feature-list {
  margin-bottom: 12px;
}

/* =========================================================
   CONFIGURE PRODUCT PAGE (cart.php?a=confproduct)
   This is the missing piece: your product-card styling doesn't
   touch this page's markup, so it looks "unstyled".
   ========================================================= */

#order-standard_cart .header-lined h1,
#order-standard_cart .header-lined h2,
#order-standard_cart .header-lined h3 {
  color: #fff !important;
  font-weight: 950 !important;
  letter-spacing: -0.03em !important;
}

#order-standard_cart .secondary-cart-body,
#order-standard_cart .secondary-cart-sidebar {
  color: var(--text);
}

#order-standard_cart .secondary-cart-body {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radiusLg);
  box-shadow: var(--shadowSoft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 18px 18px;
}

#order-standard_cart .product-info {
  margin: 12px 0 16px;
  padding: 14px 14px;
  border-radius: var(--radiusMd);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}

#order-standard_cart .product-info .product-title {
  margin: 0 0 6px;
  color: #fff;
  font-weight: 950;
  font-size: 22px;
  letter-spacing: -0.02em;
}

#order-standard_cart .product-info p {
  margin: 0;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
}

#order-standard_cart .sub-heading {
  margin-top: 18px;
  margin-bottom: 10px;
}

#order-standard_cart .sub-heading span.primary-bg-color {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 0px solid rgba(34, 197, 94, 0.22);
  color: rgba(74, 222, 128, 0.95);
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
}

#order-standard_cart .field-container {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radiusMd);
  padding: 14px;
}

#order-standard_cart .form-group label {
  color: rgba(255,255,255,0.86) !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em;
}

#order-standard_cart .form-control,
#order-standard_cart .custom-select,
#order-standard_cart input[type="text"],
#order-standard_cart input[type="password"],
#order-standard_cart input[type="number"],
#order-standard_cart select,
#order-standard_cart textarea {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  color: rgba(255,255,255,0.92) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

#order-standard_cart .form-control:focus,
#order-standard_cart .custom-select:focus,
#order-standard_cart input:focus,
#order-standard_cart select:focus,
#order-standard_cart textarea:focus {
  outline: none !important;
  border-color: rgba(34, 197, 94, 0.45) !important;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12) !important;
}

#order-standard_cart .product-configurable-options {
  margin-top: 10px;
}

/* Make option blocks look like clean cards */
#order-standard_cart .product-configurable-options .form-group {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 12px 12px;
  margin-bottom: 12px;
}

/* Checkbox/radio rows */
#order-standard_cart .product-configurable-options label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: rgba(255,255,255,0.88) !important;
  font-weight: 800 !important;
}

/* Bigger checkboxes & green accent */
#order-standard_cart input[type="checkbox"],
#order-standard_cart input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green2);
}

/* Right summary panel styles */
#order-standard_cart .secondary-cart-sidebar {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radiusLg);
  box-shadow: var(--shadowSoft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 14px;
}

#order-standard_cart .order-summary h2 {
  margin-top: 10px;
  color: #fff;
  font-weight: 950;
  letter-spacing: -0.02em;
}

#order-standard_cart #producttotal .summary-container,
#order-standard_cart .summary-container {
  border-radius: 16px;
}

/* Continue button = Nomad style */
#order-standard_cart #btnCompleteProductConfig.btn.btn-primary,
#order-standard_cart .btn.btn-primary.btn-lg {
  background: linear-gradient(135deg, var(--green), var(--green2)) !important;
  border: 1px solid rgba(34, 197, 94, 0.35) !important;
  color: #07150b !important;
  font-weight: 950 !important;
  border-radius: 18px !important;
  padding: 14px 16px !important;
  letter-spacing: -0.01em !important;
  box-shadow: 0 18px 45px rgba(34, 197, 94, 0.18) !important;
}

#order-standard_cart #btnCompleteProductConfig.btn.btn-primary:hover,
#order-standard_cart .btn.btn-primary.btn-lg:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
