/* =========================================================
   SERVICE PAGE (service-t.css)
   Reviews styles moved to service-reviews.css
   Upgrade filter styles moved to upgrade-filter.css
   Service/product card styles moved to service-cards.css
  ========================================================= */

:root {
  --svc-white-06: rgba(255, 255, 255, 0.06);
  --svc-white-08: rgba(255, 255, 255, 0.08);
  --svc-white-12: rgba(255, 255, 255, 0.12);
  --svc-white-15: rgba(255, 255, 255, 0.15);
  --svc-white-18: rgba(255, 255, 255, 0.18);
  --svc-white-22: rgba(255, 255, 255, 0.22);
  --svc-white-35: rgba(255, 255, 255, 0.35);
  --svc-black-08: rgba(0, 0, 0, 0.08);
  --svc-black-35: rgba(0, 0, 0, 0.35);
  --svc-black-421: rgba(0, 0, 0, 0.421);
  --svc-black-85: rgba(0, 0, 0, 0.85);
  --svc-transition-fast: 0.2s ease;
  --svc-transition-ui: 0.25s ease;
  --svc-transition-card: 0.3s ease;
  --svc-page-max: 70rem;
  --svc-radius-pill: 999px;
}

/* =========================================================
   SECTION LAYOUT / COMMON WRAPPERS
  ========================================================= */

.s-builds {
  padding: 2rem 0;
}

.s-pars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem 0 4rem;
  color: var(--svc-text-white);
}

.pars {
  width: 100%;
  max-width: var(--svc-page-max);
  margin: 0 auto;
}

.h2-title {
  grid-column: 1 / -1;
  margin-bottom: 1rem;
}

.h2-title h2 {
  font-size: 3rem;
  line-height: 3rem;
}

.h2-title hr {
  margin: 1rem auto;
}

.faq-header__line {
  background: linear-gradient(90deg,
      var(--svc-black-08) 0%,
      var(--svc-black-85) 50%,
      var(--svc-black-08) 100%);
}

/* =========================================================
   AVAILABLE MODELS GRID
   ========================================================= */

.builds-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  max-width: var(--svc-page-max);
  margin: 0 auto;
  padding: 0 1rem;
}

.builds-wrapper>div {
  display: grid;
  gap: 1rem;
}

.builds-wrapper img {
  display: block;
  width: 100%;
}

.build-name {
  position: relative;
  display: grid;
  align-items: center;
  text-align: center;
  background-color: var(--svc-black-421);
}

.build-name img {
  transition: opacity var(--svc-transition-card);
}

.build-name img:hover {
  opacity: 0.5;
}

.center-text {
  position: absolute;
  z-index: 99;
  margin: 1rem;
  padding: 0.5rem;
  background-color: black;
  text-transform: uppercase;
  letter-spacing: 0.03rem;
  font-weight: 400;
}

/* =========================================================
   SERVICE / UPGRADE TYPOGRAPHY
   ========================================================= */

.pars h3 {
  color: var(--c4);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.pars ul,
.pars ol {
  display: grid;
  margin: 1rem 0;
}

.pars ol {
  gap: 1rem;
}

.pars li::marker {
  color: var(--c4);
  font-weight: 800;
}

.pars ul li,
.pars ol li {
  list-style-position: inside;
  font-size: 1.1rem;
  line-height: 2rem;
  letter-spacing: 0.03rem;
}

.pars ul li {
  list-style: square;
}

.pars ol li {
  list-style: decimal;
}

/* =========================================================
   IN-CART STATES
   These remain here because they are behavioral page states,
   not visual card system ownership.
   ========================================================= */

.service-options.in-cart {
  outline: 6px solid var(--svc-white-22);
  background: var(--svc-white-15);
}

.service-add[aria-pressed="true"]::after,
.upgrade-add[aria-pressed="true"]::after {
  content: " ✓";
}

.service-add:disabled,
.upgrade-add:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.learn-more.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* =========================================================
   CART PAGE HELPERS
   ========================================================= */

.checkout-confirm.is-hidden {
  display: none;
}

.cart-page-main {
  padding-top: 2rem;
}

.cart-page-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cart-page-divider {
  margin: 1.5rem 0;
}

.cart-totals {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--svc-white-18);
  border-radius: var(--border-r);
  background: var(--svc-white-06);
}

.cart-totals__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.cart-totals__total {
  color: var(--c4);
  font-weight: 400;
}

.checkout-form-sections {
  display: grid;
  gap: 1.5rem;
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
}

.checkout-form-section {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--svc-white-18);
  border-radius: var(--border-r);
  background: var(--svc-white-06);
}

.checkout-form-section h3 {
  margin: 0;
}

.cart-checkout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cart-checkout-grid__full {
  grid-column: 1 / -1;
}

.cart-checkout-grid label {
  display: block;
  margin-bottom: 0.35rem;
}

.cart-checkout-grid input,
.cart-checkout-grid textarea,
.cart-checkout-grid select {
  width: 100%;
}

.checkout-help-text {
  margin: 0.4rem 0 0;
  opacity: 0.8;
  font-size: 0.92rem;
}

.cart-cancel-link {
  text-decoration: none;
}

.cart-items-large {
  display: grid;
  gap: 1rem;
}

.cart-item--large {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
  padding: 1.25rem;
  background: var(--svc-white-08);
  border: 1px solid var(--svc-white-12);
  border-radius: var(--border-r);
}

.cart-item__main {
  display: grid;
  gap: 0.4rem;
}

.cart-item__title {
  font-size: 1.2rem;
}

.cart-item__meta,
.cart-item__summary {
  opacity: 0.9;
}

.cart-item__price {
  color: var(--c4);
  font-size: 1.05rem;
  font-weight: 600;
}

.cart-item__controls {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  min-width: 140px;
}

/* Horizontal recommended services strip */
.app-services-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 340px);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.app-services-strip>.service-options {
  max-width: none;
  margin: 0;
}

/* =========================================================
   SCHEDULING
   ========================================================= */

.schedule-groups {
  display: grid;
  gap: 1.5rem;
  width: 100%;
  max-width: 70rem;
  margin: 1rem auto 0;
}

.schedule-group {
  display: grid;
  gap: 1rem;
}

.schedule-group__header h3 {
  margin: 0;
}

.schedule-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.schedule-slot {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--svc-white-18);
  border-radius: var(--border-r);
  background: var(--svc-white-06);
  color: var(--c4);
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    opacity 160ms ease;
}

.schedule-slot:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.schedule-slot.is-selected {
  border-color: var(--svc-white-35);
  background: rgba(255, 255, 255, 0.14);
}

.schedule-slot.is-unavailable,
.schedule-slot:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.schedule-slot__day {
  font-size: 0.92rem;
  opacity: 0.85;
}

.schedule-slot__time {
  font-size: 1.05rem;
  font-weight: 600;
}

.schedule-slot__status {
  font-size: 0.84rem;
  opacity: 0.8;
}

.schedule-empty-state {
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
  padding: 1.25rem;
  border: 1px solid var(--svc-white-18);
  border-radius: var(--border-r);
  background: var(--svc-white-06);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
  .builds-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .builds-wrapper {
    grid-template-columns: 1fr;
  }

  .cart-checkout-grid {
    grid-template-columns: 1fr;
  }

  .cart-checkout-grid__full {
    grid-column: auto;
  }

  .cart-item--large {
    grid-template-columns: 1fr;
  }

  .schedule-slots {
    grid-template-columns: 1fr;
  }

  .app-services-strip {
    grid-auto-columns: minmax(260px, 88vw);
  }
}

@media (max-width: 600px) {
  .s-pars {
    gap: 1rem;
    padding: 3rem 1rem;
  }

  .h2-title h2,
  .b-service .h2-title h2 {
    font-size: 2rem;
    line-height: 2.5rem;
  }
}