/* =========================================================================
   detail-page.css — trimmed for the new (page-1) layout.
   Layout now lives in Tailwind classes in the template.
   This file keeps page 2's fonts, font sizes/weights, colours,
   form styling and print rules.
   ========================================================================= */

body {
  background-color: var(--color-black);
}

#asphalt-detail-module {
  font-family: var(--sb-content-font-family, 'Sans-Serif');
  background-color: var(--color-black);
  color: var(--color-light);
}

#asphalt-detail-module [x-cloak] {
  display: none !important;
}

header .scroll-background {
  transform: translateY(0px) !important;
  transition: none !important;
}

/* === TITLE + PRICE === */
#asphalt-detail-module .brand_model {
  text-transform: uppercase;
  font-family: var(--sb-heading-font-family, 'Sans-Serif');
  font-weight: bold;
  font-size: 26px;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

#asphalt-detail-module .price {
  font-weight: normal;
  font-size: 16px;
}

#asphalt-detail-module .price .amount {
  display: block;
  margin-top: 4px;
  font-weight: bold;
  font-size: 24px;
}

/* === SECTION HEADINGS (was .details h1) === */
#asphalt-detail-module .section-title {
  font-family: var(--sb-heading-font-family, 'Sans-Serif');
  font-size: 31px;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--color-light);
}

/* === DESCRIPTION === */
#asphalt-detail-module .description-content .editor-content {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-light);
}

/* === MODALS === */
#asphalt-detail-module .share-links {
  font-size: 36px;
  font-weight: bold;
}

@media(max-width:992px) {
  #asphalt-detail-module .modal-title {
    font-size: 24px;
    font-weight: bold;
  }
}

#asphalt-detail-module .finance-modal-content #ros-wrapper {
  width: 100%;
}

#asphalt-detail-module .finance-modal-content #ros-wrapper iframe {
  background-color: transparent !important;
}

/* === FORMS: trade-in modal === */
.modal-content .wpcf7 .form-row {
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 992px) {
  .modal-content .wpcf7 .form-row {
    flex-direction: row;
    gap: 2rem;
  }
}

.modal-content .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.modal-content .wpcf7-form-control:not(.wpcf7-submit) {
  width: 100%;
  border-bottom-width: 1px;
  border-color: currentColor;
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--color-light);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.modal-content .wpcf7-submit {
  display: inline-flex;
  width: -moz-max-content;
  width: max-content;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-width: 1px;
  border-color: currentColor;
  background-color: transparent;
  padding: 1rem;
  line-height: 1;
}

.modal-content .wpcf7-form-control::-moz-placeholder {
  color: currentColor;
  opacity: 1;
}

.modal-content .wpcf7-form-control::placeholder {
  color: currentColor;
  opacity: 1;
}

.modal-content .wpcf7-textarea {
  min-height: 180px;
  height: 180px;
}

.modal-content .wpcf7 button {
  background-color: var(--color-primary);
  color: var(--color-light);
  padding: 20px;
  width: fit-content;
  height: fit-content;
  cursor: pointer;
}

/* === FORMS: contact card === */
.contact-form {
  color: var(--color-light);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-light);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-form .wpcf7-not-valid-tip {
  margin-bottom: 14px;
}

.contact-form button[type="submit"] {
  background: var(--color-primary);
  color: var(--color-light);
  padding: 10px 20px;
  cursor: pointer;
  border: 1px solid var(--color-primary);
}

/* === PRINT === */
body {
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.print-image {
  display: none;
}

@media print {
  /* Hide all irrelevant elements */
  #asphalt-detail-module .detail-gallery .swiper,
  #asphalt-detail-module .detail-gallery button,
  #asphalt-detail-module .detail-side-images,
  #asphalt-detail-module .detail-buttons,
  #asphalt-detail-module .detail-modals,
  #asphalt-detail-module .print-button,
  #asphalt-detail-module .whatsapp-button,
  .tm-header [type="button"],
  .share-sidebar,
  #footer-whatsapp-button,
  .wpcf7 {
    display: none !important;
  }

  .print-image {
    display: block;
    width: 100%;
  }

  /* Show collapsed options/description in full */
  #asphalt-detail-module .print-expand {
    max-height: none !important;
  }

  /* Make sticky header static */
  .fl-builder-content[data-type="header"].fl-theme-builder-header-sticky {
    position: relative !important;
    transform: none !important;
  }

  body {
    padding-top: 0 !important;
  }

  #asphalt-detail-module .detail-top {
    margin-top: 0 !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
