/**
 * Legacy Modern order form style sheet
 *
 * Contains styling specific to the Legacy Modern order form template.
 *
 * @project   WHMCS
 * @version   1.0
 * @author    WHMCS Limited <development@whmcs.com>
 * @copyright Copyright (c) WHMCS Limited 2005-2020
 * @license   https://www.whmcs.com/license/
 * @link      https://www.whmcs.com/
 *
 */
#order-modern {
    margin: 0;
    padding: 0 0 40px;
    background:none !important;
}

#order-modern .title-bar {
    margin: 0 0 25px 0;
    text-align: center;
}

#order-modern .title-bar h1 {
    margin: 0;
    padding: 0;
}

#order-modern select {
    border: 1px solid #ccc;
    padding: 1px;
}

#order-modern .clear {
    clear: both;
}

#order-modern #configcontainer, #order-modern #configcontainer2 {
    display: none;
}

#order-modern .loading {
    display: none;
    width: 220px;
    padding-top: 10px;
    margin-left: auto;
    margin-right: auto;
    clear: both;
}

#order-modern #cartLoader i {
    font-size: 1.6em;
}

#order-modern .errorbox {
    display: none;
    margin: 15px 0;
    padding: 15px 20px;
    background-color: #FBEEEB;
    border: 1px dashed #cc0000;
    font-weight: bold;
    color: #cc0000;
    text-align: center;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    -o-border-radius: 6px;
    border-radius: 6px;
}

/*
Product Categories
*/

#order-modern .choosecat {
    margin: 10px;
    font-color: #000000;
}

#order-modern .currencychooser {
    margin: 10px 30px;
    padding: 0;
    text-align: right;
}

/*
Product Listing
*/

#order-modern .product {
    margin: 15px 0;
    padding: 15px;
    background-color: #fff;
    font-color: #000000;
    border: 1px solid #ccc;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
}

#order-modern .product:hover {
    background-color: #E6EDFF;
    cursor: pointer;
    cursor: hand;
}

#order-modern .product .pricing {
    float: right;
    text-align: right;
    font-family: Lucida Sans Unicode,Lucida Grande,sans-serif;
    font-size: 18px;
    font-color: #000000;
    line-height: 20px;
}

#order-modern .product .name {
    font-family: Lucida Sans Unicode,Lucida Grande,sans-serif;
    font-weight: normal;
    font-color: #000000;
    font-size: 20px;
    margin-bottom: 10px;
}

#order-modern .product .prodfeature {
    float: left;
    margin: 5px 5px 0 0;
    padding: 5px 10px 5px 10px;
    border: 1px solid #cccccc;
    background-color: #ffffff;
    font-color: #000000;
    text-align: center;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
    font-size: 20px;
    color: #ff6600;
}

#order-modern .product .prodfeature .feature {
    font-size: 13px;
    font-color: #000000;
    color: #666;
}

#order-modern .product .description {
    font-size: 0.9em;
    font-color: #000000;
    margin: 15px 30px 10px 20px;
}


/*new order form design */
/* Main Products Area */
#order-modern {
  padding: 45px 15px;
  background: #f8fafc;
}

/* Reduce top empty spacing */
#order-modern .title-bar {
  text-align: center;
  margin-bottom: 35px;
}

#order-modern .title-bar h1 {
  font-size: 38px;
  font-weight: 900;
  color: #111827;
  margin-bottom: 20px;
}

/* Product Row */
#order-modern > .row {
  max-width: 1250px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* Cards spacing */
#order-modern > .row > [class*="col-"] {
  padding: 14px;
  display: flex;
}

/* Product Card Compact */
#order-modern .product {
  position: relative;
  width: 100%;
  min-height: 470px;
  padding: 32px 34px 28px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  animation: productReveal 0.8s ease forwards, productFloat 5s ease-in-out infinite;
}

/* Entry Animation */
@keyframes productReveal {
  0% {
    opacity: 0;
    transform: translateY(45px);
    filter: blur(6px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Soft Continuous Animation */
@keyframes productFloat {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Hover */
#order-modern .product:hover {
  transform: translateY(-10px);
  border-color: #0d6efd;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.13);
}

/* Product Name */
#order-modern .product .name {
  font-size: 23px;
  font-weight: 900;
  color: #111827;
  margin-bottom: 20px;
}

/* Pricing */
#order-modern .product .pricing {
  margin-bottom: 28px;
  color: #111827;
  font-size: 17px;
  font-weight: 700;
}

#order-modern .product .pricing span.pricing {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -2px;
  color: #111827;
}

/* Features */
#order-modern .product .prodfeature {
  position: relative;
  display: block;
  padding: 12px 0 12px 32px;
  border-bottom: 1px solid #edf2f7;
  color: #667085;
  font-size: 16px;
  font-weight: 500;
}

#order-modern .product .prodfeature::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 12px;
  color: #0d6efd;
  font-size: 20px;
  font-weight: 900;
}

/* Description */
#order-modern .product .description {
  margin-top: 18px;
  color: #667085;
  font-size: 14px;
  line-height: 1.6;
}

/* Button */
#order-modern .product .text-right {
  margin-top: 28px;
  text-align: left !important;
}

#order-modern .product .btn-success {
  width: 100%;
  min-height: 56px;
  border: none;
  border-radius: 12px;
  background: #101828;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.35s ease;
}

#order-modern .product .btn-success:hover {
  background: #0d6efd;
  transform: translateY(-3px);
}

/* Most Popular Second Card */
#order-modern > .row > div:nth-child(2) .product {
  border: 2px solid #0d6efd;
}

#order-modern > .row > div:nth-child(2) .product::after {
  content: "MOST POPULAR";
  position: absolute;
  top: 28px;
  right: 28px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #0d6efd;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

/* Responsive */
@media (max-width: 1199px) {
  #order-modern .product {
    min-height: 450px;
    padding: 30px 26px;
  }

  #order-modern .product .pricing span.pricing {
    font-size: 42px;
  }
}

@media (max-width: 767px) {
  #order-modern {
    padding: 35px 10px;
  }

  #order-modern .title-bar h1 {
    font-size: 30px;
  }

  #order-modern .product {
    min-height: auto;
    padding: 28px 22px;
  }
  
}

/*new card theme*/
/* =========================================================
   WHMCS Modern Product Cards - Premium Professional Design
   CSS Only - No TPL Change Needed
========================================================= */

/* Main Wrapper */
#order-modern {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 55px 18px 80px !important;
}

/* Full width elements */
#order-modern .title-bar,
#order-modern .currencychooser {
  width: 100% !important;
}

/* Remove WHMCS broken row layout using CSS only */
#order-modern > .row {
  display: contents !important;
}

/* 3 cards desktop */
#order-modern > .row > .col-md-6 {
  width: 33.333% !important;
  max-width: 33.333% !important;
  flex: 0 0 33.333% !important;
  padding: 16px !important;
  display: flex !important;
}

/* =========================================================
   Header / Title Area
========================================================= */

#order-modern .title-bar {
  text-align: center !important;
  margin-bottom: 34px !important;
}

#order-modern .title-bar h1,
#order-modern .title-bar .font-size-36 {
  font-size: 40px !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
  color: #101828 !important;
  letter-spacing: -1.2px !important;
  margin: 0 0 22px !important;
}

/* Category Dropdown */
#order-modern .choosecat {
  display: inline-flex !important;
  justify-content: center !important;
}

#order-modern .choosecat .btn,
#order-modern .currencychooser .btn {
  min-height: 48px !important;
  padding: 10px 18px !important;
  border-radius: 14px !important;
  border: 1px solid #d8e0ec !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #101828 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.2px !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08) !important;
  transition: all 0.3s ease !important;
}

#order-modern .choosecat .btn:hover,
#order-modern .currencychooser .btn:hover {
  transform: translateY(-2px) !important;
  border-color: #0d6efd !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12) !important;
}

/* Currency */
#order-modern .currencychooser {
  max-width: 1280px !important;
  margin: 0 auto 22px !important;
  text-align: right !important;
}

#order-modern .currencychooser .btn.active {
  border-color: #0d6efd !important;
  color: #0d6efd !important;
}

/* Dropdown Menu */
#order-modern .dropdown-menu {
  border: 1px solid #e3e8f0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  padding: 8px !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.15) !important;
}

#order-modern .dropdown-menu a {
  border-radius: 10px !important;
  font-weight: 700 !important;
  color: #101828 !important;
}

#order-modern .dropdown-menu a:hover {
  background: #f1f5f9 !important;
  color: #0d6efd !important;
}

/* =========================================================
   Product Card
========================================================= */

#order-modern .product {
  position: relative !important;
  width: 100% !important;
  min-height: 520px !important;
  padding: 34px 32px 30px !important;
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 55%, #fbfcff 100%) !important;
  border: 1px solid #dfe7f2 !important;
  border-radius: 30px !important;
  overflow: hidden !important;
  cursor: pointer !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow:
    0 18px 50px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.38s ease,
    border-color 0.38s ease !important;
  animation:
    pricingCardIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both,
    pricingCardFloat 6s ease-in-out infinite !important;
}

/* Stagger animation */
#order-modern > .row > .col-md-6:nth-child(1) .product {
  animation-delay: 0.08s, 1.2s !important;
}

#order-modern > .row > .col-md-6:nth-child(2) .product {
  animation-delay: 0.2s, 1.45s !important;
}

#order-modern > .row > .col-md-6:nth-child(3) .product {
  animation-delay: 0.32s, 1.7s !important;
}

#order-modern > .row > .col-md-6:nth-child(4) .product {
  animation-delay: 0.44s, 1.95s !important;
}

#order-modern > .row > .col-md-6:nth-child(5) .product {
  animation-delay: 0.56s, 2.2s !important;
}

@keyframes pricingCardIn {
  0% {
    opacity: 0;
    transform: translateY(45px);
    filter: blur(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes pricingCardFloat {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Card hover */
#order-modern .product:hover {
  transform: translateY(-14px) !important;
  border-color: rgba(13, 110, 253, 0.65) !important;
  box-shadow:
    0 34px 90px rgba(15, 23, 42, 0.16),
    0 0 0 4px rgba(13, 110, 253, 0.06) !important;
}

/* Top accent line */
#order-modern .product::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, #0d6efd, #60a5fa, #0d6efd);
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: center;
  transition: all 0.4s ease;
}

#order-modern .product:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

/* Soft shine */
#order-modern .product .name::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -80%;
  width: 45%;
  height: 320%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transform: rotate(24deg);
  animation: cardShine 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cardShine {
  0% {
    left: -80%;
  }

  48% {
    left: -80%;
  }

  100% {
    left: 140%;
  }
}

/* =========================================================
   Featured / Popular Middle Card
========================================================= */

#order-modern > .row > .col-md-6:nth-child(2) .product {
  border: 2px solid #0d6efd !important;
  box-shadow:
    0 26px 75px rgba(13, 110, 253, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

#order-modern > .row > .col-md-6:nth-child(2) .product::after {
  content: "MOST POPULAR";
  position: absolute;
  top: 24px;
  right: 26px;
  z-index: 5;
  padding: 8px 17px;
  border-radius: 999px;
  background: #0d6efd;
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.3px;
  box-shadow: 0 14px 28px rgba(13, 110, 253, 0.28);
}

/* =========================================================
   Product Name
========================================================= */

#order-modern .product .name {
  position: relative !important;
  order: 1 !important;
  display: block !important;
  max-width: 78% !important;
  margin: 0 0 20px !important;
  color: #101828 !important;
  font-size: 23px !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
  letter-spacing: -0.5px !important;
  overflow: hidden !important;
}

#order-modern .product .qty {
  display: block !important;
  margin-top: 6px !important;
  color: #667085 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

/* =========================================================
   Price
========================================================= */

#order-modern .product .pricing {
  order: 2 !important;
  margin: 0 0 26px !important;
  color: #667085 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

/* Main price */
#order-modern .product .pricing span.pricing {
  display: block !important;
  margin: 0 0 8px !important;
  color: #101828 !important;
  font-size: 42px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  letter-spacing: -1.7px !important;
  white-space: normal !important;
  word-break: break-word !important;
}

/* Billing cycle text */
#order-modern .product .pricing br {
  display: none !important;
}

#order-modern .product .pricing small {
  display: block !important;
  margin-top: 7px !important;
  color: #667085 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

/* Make text like Monthly clean */
#order-modern .product .pricing {
  text-transform: none !important;
}

/* =========================================================
   Features
========================================================= */

#order-modern .product .prodfeature {
  order: 3 !important;
  position: relative !important;
  display: block !important;
  padding: 12px 0 12px 34px !important;
  margin: 0 !important;
  border-bottom: 1px solid #eef2f7 !important;
  color: #667085 !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  font-weight: 500 !important;
}

#order-modern .product .prodfeature::before {
  content: "✓";
  position: absolute;
  top: 12px;
  left: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0d6efd;
  font-size: 17px;
  font-weight: 900;
}

#order-modern .product .prodfeature .feature {
  display: inline !important;
  color: #667085 !important;
  font-weight: 700 !important;
}

/* Remove old clear */
#order-modern .product .clear {
  display: none !important;
}

/* Description */
#order-modern .product .description {
  order: 4 !important;
  margin: 16px 0 0 !important;
  padding: 0 !important;
  color: #667085 !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
}

/* =========================================================
   Button
========================================================= */

#order-modern .product .text-right {
  order: 5 !important;
  margin-top: auto !important;
  padding-top: 28px !important;
  text-align: left !important;
}

#order-modern .product .btn-success {
  position: relative !important;
  width: 100% !important;
  min-height: 58px !important;
  padding: 0 18px !important;
  border: none !important;
  border-radius: 16px !important;
  background: #101828 !important;
  color: #ffffff !important;
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: -0.2px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 11px !important;
  box-shadow:
    0 14px 35px rgba(16, 24, 40, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  overflow: hidden !important;
  transition:
    transform 0.34s ease,
    box-shadow 0.34s ease,
    background 0.34s ease !important;
}

/* Button shine */
#order-modern .product .btn-success::before {
  content: "";
  position: absolute;
  top: -130%;
  left: -70%;
  width: 45%;
  height: 330%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    transparent
  );
  transform: rotate(24deg);
  transition: left 0.75s ease;
}

#order-modern .product .btn-success:hover::before {
  left: 135%;
}

#order-modern .product .btn-success:hover {
  background: #0d6efd !important;
  transform: translateY(-3px) !important;
  box-shadow:
    0 20px 48px rgba(13, 110, 253, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

#order-modern .product .btn-success i {
  font-size: 17px !important;
  transition: transform 0.3s ease !important;
}

#order-modern .product .btn-success:hover i {
  transform: translateX(2px) scale(1.05) !important;
}

/* Popular card button */
#order-modern > .row > .col-md-6:nth-child(2) .product .btn-success {
  background: #0d6efd !important;
  box-shadow: 0 18px 42px rgba(13, 110, 253, 0.25) !important;
}

#order-modern > .row > .col-md-6:nth-child(2) .product .btn-success:hover {
  background: #0b5ed7 !important;
}

/* =========================================================
   Better Layout For Price + Content
========================================================= */

/* Prevent ugly huge combined price text */
#order-modern .product .pricing,
#order-modern .product .name,
#order-modern .product .prodfeature,
#order-modern .product .description {
  text-align: left !important;
}

/* Keep all content inside card */
#order-modern .product * {
  box-sizing: border-box !important;
}

/* =========================================================
   Responsive
========================================================= */

/* Large tablets: 2 cards */
@media (max-width: 1199px) {
  #order-modern {
    padding: 45px 14px 65px !important;
  }

  #order-modern > .row > .col-md-6 {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
    padding: 14px !important;
  }

  #order-modern .product {
    min-height: 500px !important;
    padding: 32px 28px 28px !important;
  }

  #order-modern .product .pricing span.pricing {
    font-size: 38px !important;
  }
}

/* Mobile: 1 card */
@media (max-width: 767px) {
  #order-modern {
    padding: 34px 10px 50px !important;
  }

  #order-modern > .row > .col-md-6 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 12px !important;
  }

  #order-modern .title-bar {
    margin-bottom: 24px !important;
  }

  #order-modern .title-bar h1,
  #order-modern .title-bar .font-size-36 {
    font-size: 29px !important;
    letter-spacing: -0.6px !important;
  }

  #order-modern .currencychooser {
    text-align: center !important;
    margin-bottom: 20px !important;
  }

  #order-modern .product {
    min-height: auto !important;
    padding: 28px 22px 24px !important;
    border-radius: 24px !important;
  }

  #order-modern .product .name {
    max-width: 100% !important;
    padding-right: 120px !important;
    font-size: 21px !important;
  }

  #order-modern .product .pricing span.pricing {
    font-size: 34px !important;
    letter-spacing: -1.2px !important;
  }

  #order-modern .product .prodfeature {
    font-size: 14px !important;
    padding-left: 30px !important;
  }

  #order-modern .product .btn-success {
    min-height: 54px !important;
    font-size: 15px !important;
  }

  #order-modern > .row > .col-md-6:nth-child(2) .product::after {
    top: 20px !important;
    right: 20px !important;
    padding: 7px 13px !important;
    font-size: 10px !important;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  #order-modern {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  #order-modern .product {
    padding: 26px 18px 22px !important;
    border-radius: 22px !important;
  }

  #order-modern .product .name {
    padding-right: 0 !important;
    max-width: 100% !important;
    font-size: 20px !important;
  }

  #order-modern > .row > .col-md-6:nth-child(2) .product::after {
    position: static !important;
    display: inline-block !important;
    width: fit-content !important;
    margin-bottom: 14px !important;
    order: 0 !important;
  }

  #order-modern .product .pricing span.pricing {
    font-size: 30px !important;
  }
}

/* =========================================================
   Reduce Motion Accessibility
========================================================= */

@media (prefers-reduced-motion: reduce) {
  #order-modern .product,
  #order-modern .product .name::after {
    animation: none !important;
  }

  #order-modern .product,
  #order-modern .product .btn-success,
  #order-modern .choosecat .btn,
  #order-modern .currencychooser .btn {
    transition: none !important;
  }
}

