/* CertDrop Hallmark desktop revision v2.
   Preview-only. All rules are scoped to the English homepage above 939px.
   Keep all original form fields, radio controls, scripts and payment actions.
   This file is intentionally loaded after certdrop-refinement.css. */

.certdrop-desktop-nav { display: none; }

@media (min-width: 940px) {
  body.certdrop-home {
    background: #0b1730 !important;
  }

  body.certdrop-home > header,
  body.certdrop-home > main {
    width: min(1240px, calc(100% - 72px)) !important;
    max-width: 1240px !important;
  }

  body.certdrop-home > header {
    gap: 34px !important;
    padding-block: 22px !important;
    border-bottom: 1px solid rgba(143, 164, 198, .2);
  }

  body.certdrop-home > header .logo {
    flex: 0 0 auto;
    font-size: 27px !important;
    text-transform: none !important;
    letter-spacing: -.035em !important;
  }

  body.certdrop-home .certdrop-desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(15px, 2vw, 32px);
    margin-inline: auto;
    min-width: 0;
  }

  body.certdrop-home .certdrop-desktop-nav a {
    color: var(--cd-soft);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  body.certdrop-home .certdrop-desktop-nav a:hover,
  body.certdrop-home .certdrop-desktop-nav a:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 5px;
  }

  /* Present the offer and its concrete benefits as one balanced opening. */
  body.certdrop-home .card {
    display: grid !important;
    width: 100% !important;
    max-width: none !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr) !important;
    grid-template-rows: auto !important;
    column-gap: clamp(28px, 4vw, 68px) !important;
    row-gap: 24px !important;
    padding: 46px 0 0 !important;
    align-items: start !important;
  }

  body.certdrop-home .card > .card-header {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.certdrop-home .card .card-header h1 {
    font-size: clamp(39px, 3.4vw, 52px) !important;
    line-height: 1.09 !important;
    letter-spacing: -.045em !important;
    max-width: 14ch !important;
    margin: 25px 0 20px !important;
    text-wrap: pretty;
  }

  body.certdrop-home .card .card-header > p {
    max-width: 60ch !important;
    font-size: 17px !important;
    line-height: 1.68 !important;
    margin-bottom: 24px !important;
  }

  body.certdrop-home .card .hero-order-actions {
    margin-block: 0 26px !important;
  }

  body.certdrop-home #hero-order-cta {
    min-height: 54px !important;
    padding: 14px 26px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
  }

  body.certdrop-home #cd-jit-announcement {
    margin-bottom: 24px !important;
    background: rgba(95, 84, 163, .20) !important;
    border-color: rgba(192, 175, 248, .35) !important;
  }

  body.certdrop-home .card .ipa-library-launch-card {
    background: rgba(27, 49, 82, .86) !important;
    border-color: rgba(127, 159, 203, .38) !important;
    padding: 24px !important;
    border-radius: 15px !important;
    margin-block: 24px 0 !important;
  }

  body.certdrop-home .card .ipa-library-launch-card h2 {
    font-size: 22px !important;
  }

  body.certdrop-home .card > .features {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 19px !important;
    background: rgba(20, 40, 72, .96) !important;
    border: 1px solid rgba(111, 147, 196, .40) !important;
    border-radius: 18px !important;
    padding: 32px !important;
    margin: 12px 0 0 !important;
  }

  body.certdrop-home .card > .features::before {
    content: 'What you get with CertDrop';
    display: block;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.02em;
    color: var(--cd-text);
    padding-bottom: 6px;
  }

  body.certdrop-home .card > .features .feature {
    font-size: 15px !important;
    line-height: 1.5 !important;
    align-items: flex-start !important;
  }

  body.certdrop-home .card > .features .icon {
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    margin-top: 2px;
    color: var(--cd-green) !important;
  }

  /* These pills repeat information already given in the benefits list. */
  body.certdrop-home .card > .promo-inclusions,
  body.certdrop-home .card > .divider {
    display: none !important;
  }

  body.certdrop-home .card > #certdrop-speed-proof {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 15px !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
  }

  body.certdrop-home #certdrop-speed-proof > div {
    min-height: 100px;
    background: rgba(21, 42, 75, .72) !important;
    border: 1px solid rgba(107, 145, 197, .32) !important;
    border-radius: 13px !important;
    padding: 22px 14px !important;
  }

  body.certdrop-home #certdrop-speed-proof > p {
    grid-column: 1 / -1 !important;
    margin: -5px 0 0 !important;
  }

  body.certdrop-home .card > #service-status-strip {
    grid-column: 1 / -1 !important;
    grid-row: 4 !important;
    width: 100% !important;
    margin: 20px 0 0 !important;
  }

  body.certdrop-home .card > #error-msg {
    grid-column: 1 / -1 !important;
    grid-row: 5 !important;
    margin: 0 !important;
  }

  /* Critical change: checkout now spans the page below the opening.
     It remains one native form with its existing input IDs and handlers. */
  body.certdrop-home .card > #order-form {
    grid-column: 1 / -1 !important;
    grid-row: 6 !important;
    display: grid !important;
    width: 100% !important;
    max-width: none !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px 24px !important;
    align-items: stretch !important;
    margin: 6px 0 0 !important;
    padding: 0 !important;
    scroll-margin-top: 26px;
  }

  body.certdrop-home #order-form > * {
    grid-column: 1 / -1 !important;
    min-width: 0;
  }

  body.certdrop-home #order-form > #jit-product-choice {
    display: block;
    border: 1px solid rgba(122, 157, 207, .36) !important;
    border-radius: 18px !important;
    background: rgba(16, 35, 66, .85) !important;
    padding: 30px !important;
    margin: 0 !important;
  }

  body.certdrop-home #order-form > #jit-product-choice[hidden] {
    display: none !important;
  }

  body.certdrop-home #jit-product-choice legend {
    font-size: 29px !important;
    line-height: 1.2 !important;
    font-weight: 750 !important;
    padding: 0 10px !important;
  }

  body.certdrop-home #jit-product-choice .cd-product-options {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
    margin-top: 20px !important;
  }

  body.certdrop-home #jit-product-choice .cd-product-option {
    min-height: 235px !important;
    padding: 28px !important;
    gap: 10px !important;
    border-radius: 15px !important;
    justify-content: flex-start !important;
  }

  body.certdrop-home #jit-product-choice .cd-product-title {
    font-size: 21px !important;
    line-height: 1.3 !important;
  }

  body.certdrop-home #jit-product-choice .cd-product-price {
    font-size: 39px !important;
  }

  body.certdrop-home #jit-product-choice .cd-product-option.is-selected {
    background: #1b3054 !important;
    outline-width: 2px !important;
  }

  body.certdrop-home #jit-product-choice .cd-jit-option.is-selected {
    background: #2b294c !important;
  }

  body.certdrop-home #order-form > .certdrop-warranty-policy-note {
    max-width: 960px;
    margin: 0 auto 12px !important;
    text-align: center;
    font-size: 14px !important;
  }

  body.certdrop-home #order-form > .checkout-progress {
    width: min(900px, 100%) !important;
    margin: 3px auto 0 !important;
  }

  body.certdrop-home #order-form > #checkout-live-proof {
    max-width: 1000px;
    width: 100%;
    margin-inline: auto !important;
  }

  body.certdrop-home #order-form > .checkout-step-device,
  body.certdrop-home #order-form > .checkout-step-delivery {
    border: 1px solid rgba(111, 147, 196, .38) !important;
    border-radius: 17px !important;
    background: rgba(17, 35, 66, .86) !important;
    padding: 28px !important;
    min-height: 410px;
    margin: 0 !important;
  }

  body.certdrop-home #order-form > .checkout-step-device {
    grid-column: 1 !important;
  }

  body.certdrop-home #order-form > .checkout-step-delivery {
    grid-column: 2 !important;
  }

  body.certdrop-home #order-form > .checkout-privacy-note {
    max-width: 1000px;
    margin: 0 auto 12px !important;
    text-align: center;
  }

  body.certdrop-home #order-form > .checkout-step-payment {
    grid-column: 1 / -1 !important;
    width: min(860px, 100%) !important;
    justify-self: center !important;
    background: rgba(18, 37, 70, .94) !important;
    border: 1px solid rgba(124, 158, 205, .44) !important;
    border-radius: 18px !important;
    padding: 32px !important;
    margin: 4px 0 0 !important;
  }

  body.certdrop-home #order-form .checkout-step-head {
    margin-bottom: 20px !important;
  }

  body.certdrop-home #order-form .checkout-step-head strong {
    font-size: 23px !important;
  }

  /* Keep the three checkout actions comfortable at laptop widths. */
  body.certdrop-home #order-form input[type="text"],
  body.certdrop-home #order-form input[type="email"] {
    min-height: 54px !important;
  }

  body.certdrop-home #order-form .checkout-udid-action-panel {
    padding: 20px !important;
  }
}

@media (min-width: 940px) and (max-width: 1119px) {
  body.certdrop-home > header,
  body.certdrop-home > main {
    width: calc(100% - 48px) !important;
  }

  body.certdrop-home .card {
    grid-template-columns: minmax(0, 1fr) minmax(0, .90fr) !important;
    column-gap: 28px !important;
  }

  body.certdrop-home .card .card-header h1 {
    font-size: 38px !important;
  }

  body.certdrop-home .card > .features {
    padding: 22px !important;
  }

  body.certdrop-home #order-form > .checkout-step-device,
  body.certdrop-home #order-form > .checkout-step-delivery {
    padding: 23px !important;
  }

  body.certdrop-home .certdrop-desktop-nav {
    gap: 14px;
  }
}
