
/* Major Driving School - Services Page */

body.service-page {
  background: #fff;
  color: #171717;
}

body.service-page .service-hero {
  background: #0c0c0e;
  color: #fff;
  overflow: hidden;
}

body.service-page .service-hero-grid {
  display: grid;
  grid-template-columns: 40% 60%;
  min-height: 360px;
}

body.service-page .service-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 30px 34px 0;
}

body.service-page .service-breadcrumb {
  margin-bottom: 18px;
  color: #aaa;
  font-size: 15px;
}

body.service-page .service-hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(50.5px, 5vw, 78px);
  line-height: 1;
  letter-spacing: -.03em;
}

body.service-page .service-hero-copy h1 span {
  color: #e1121f;
}

body.service-page .service-hero-copy h2 {
  margin: 10px 0 14px;
  color: #fff;
  font-size: 26.5px;
}

body.service-page .service-hero-copy p {
  margin: 0;
  max-width: 530px;
  color: #efefef;
  font-size: 17px;
  line-height: 1.7;
}

body.service-page .service-hero-media {
  position: relative;
  overflow: hidden;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
  border-left: 4px solid #d10012;
}

body.service-page .service-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

body.service-page .service-special-bar {
  background: #fff;
  color: #111;
  padding: 16px 0;
}

body.service-page .special-grid {
  display: grid;
  grid-template-columns: .85fr 1.25fr 1.45fr 1.2fr;
  border: 1px solid #e1e1e1;
  border-radius: 5px;
  overflow: hidden;
}

body.service-page .special-item {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 14px 20px;
  border-right: 1px solid #e1e1e1;
}

body.service-page .special-item:last-child {
  border-right: 0;
}

body.service-page .special-title {
  justify-content: center;
}

body.service-page .special-title strong {
  color: #ff202b;
  font-size: 32px !important;
  line-height: 1;
  font-style: italic;
}

body.service-page .special-icon {
  font-size: 37px;
}

body.service-page .special-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

body.service-page .special-item p,
body.service-page .special-item a {
  margin: 0;
  color: #111;
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
}

body.service-page .special-item a {
  display: block;
  margin: 3px 0;
  font-size: 23px;
  font-weight: 900;
}

body.service-page .service-quick-register {
  padding: 16px 0 2px;
}

body.service-page .quick-register-grid {
  display: grid;
  grid-template-columns: .72fr 1fr 1fr 1fr;
  gap: 18px;
  align-items: center;
}

body.service-page .quick-register-title {
  font-size: 23px;
  font-weight: 900;
}

body.service-page .quick-register-card {
  min-height: 60px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid #ee343f;
  border-radius: 5px;
  color: #111;
  text-decoration: none;
}

body.service-page .quick-register-card:hover {
  background: #fff5f5;
}

body.service-page .quick-icon {
  color: #d20013;
  font-size: 27.5px;
  font-weight: 900;
}

body.service-page .google-g {
  color: #4285f4;
}

body.service-page .quick-register-card strong,
body.service-page .quick-register-card small {
  display: block;
}

body.service-page .quick-register-card strong {
  font-size: 14px;
}

body.service-page .quick-register-card small {
  margin-top: 2px;
  font-size: 12.5px;
  color: #444;
}

body.service-page .service-section-title,
body.service-page .licensing-section h2,
body.service-page .policies-section h2 {
  margin: 0 0 22px;
  text-align: center;
  font-size: 27.5px;
}

body.service-page .service-section-title::after,
body.service-page .licensing-section h2::after,
body.service-page .policies-section h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin: 9px auto 0;
  background: #d00013;
}

body.service-page .service-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  overflow: hidden;
}

body.service-page .service-card {
  min-height: 210px;
  padding: 26px 18px;
  text-align: center;
  border-right: 1px solid #e6e6e6;
}

body.service-page .service-card:last-child {
  border-right: 0;
}

body.service-page .service-card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #d00013;
  color: #fff;
  font-size: 28.5px;
}

body.service-page .service-card h3 {
  margin: 0 0 11px;
  font-size: 16px;
}

body.service-page .service-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

body.service-page .course-schedule-panel {
  display: grid;
  grid-template-columns: 34% 66%;
  overflow: hidden;
  border-radius: 6px;
  background: #111;
  color: #fff;
}

body.service-page .course-image img {
  width: 100%;
  height: 100%;
  min-height: 245px;
  object-fit: cover;
}

body.service-page .course-schedule-content {
  padding: 18px 24px;
}

body.service-page .course-schedule-content h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 24px;
}

body.service-page .schedule-content-grid {
  display: grid;
  grid-template-columns: .9fr 1.4fr;
  gap: 20px;
}

body.service-page .schedule-card {
  padding: 15px;
  text-align: center;
  border: 1px solid #4a4a4c;
  border-radius: 4px;
}

body.service-page .schedule-card strong {
  font-size: 16px;
}

body.service-page .schedule-calendar {
  display: block;
  margin: 12px 0 8px;
  color: #e1121f;
  font-size: 32px;
}

body.service-page .schedule-card p {
  margin: 3px 0;
  font-size: 15px;
}

body.service-page .schedule-notes {
  font-size: 15px;
  line-height: 1.55;
}

body.service-page .schedule-notes ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

body.service-page .info-panel-grid {
  display: grid;
  grid-template-columns: 1.12fr 1.15fr 1.3fr;
  gap: 12px;
}

body.service-page .info-panel {
  padding: 14px;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  background: #fff;
}

body.service-page .info-panel h2 {
  margin: 0 0 12px;
  font-size: 20.5px;
}

body.service-page .price-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

body.service-page .price-row strong {
  flex: 0 0 auto;
  color: #e1121f;
}

body.service-page .price-warning {
  margin: 16px 0 0;
  color: #e1121f;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

body.service-page .package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

body.service-page .package-card {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-right: 1px solid #eee;
  text-align: center;
}

body.service-page .package-card:last-child {
  border-right: 0;
}

body.service-page .package-card span {
  color: #d00013;
  font-size: 31px;
}

body.service-page .package-card small {
  font-weight: 800;
}

body.service-page .package-card strong {
  color: #e1121f;
  font-size: 24px;
}

body.service-page .loyalty-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
  padding: 12px 18px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

body.service-page .loyalty-card small,
body.service-page .loyalty-card strong {
  display: block;
}

body.service-page .loyalty-card > strong {
  color: #e1121f;
  font-size: 25.5px;
}

body.service-page .package-panel > p {
  margin: 12px 0 0;
  text-align: center;
  font-size: 14px;
}

body.service-page .register-pay-panel > a {
  display: grid;
  grid-template-columns: 45px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

body.service-page .register-pay-panel > a:last-child {
  border-bottom: 0;
}

body.service-page .register-pay-panel > a > span {
  font-size: 20.5px;
  font-weight: 900;
}

body.service-page .register-pay-panel strong,
body.service-page .register-pay-panel small {
  display: block;
}

body.service-page .register-pay-panel strong {
  font-size: 12.5px;
}

body.service-page .register-pay-panel small {
  font-size: 11.5px;
  color: #555;
}

body.service-page .register-pay-panel b {
  min-width: 98px;
  padding: 8px 10px;
  border-radius: 3px;
  background: #d00013;
  color: #fff;
  text-align: center;
  font-size: 11.5px;
}

body.service-page .dmv-package-note {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 10px 20px;
  border-radius: 4px;
  background: #f0f5ff;
  color: #153f8d;
}

body.service-page .dmv-package-note span {
  font-size: 28.5px;
}

body.service-page .dmv-package-note p {
  margin: 0;
  font-size: 15px;
}

body.service-page .licensing-section {
  background: #fff;
}

body.service-page .licensing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr) 1.2fr;
  gap: 14px;
  align-items: stretch;
}

body.service-page .licensing-grid > article {
  position: relative;
  min-height: 190px;
  padding: 30px 10px 15px;
  text-align: center;
}

body.service-page .licensing-grid > article > span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 29px;
  height: 29px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d00013;
  color: #fff;
  font-weight: 900;
}

body.service-page .licensing-grid > article strong {
  display: block;
  margin: 14px 0 8px;
  font-size: 14px;
}

body.service-page .licensing-grid > article p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
}

body.service-page .licensing-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.service-page .licensing-links a {
  flex: 1;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 4px;
  background: #f5f8fd;
  color: #111;
  text-decoration: none;
}

body.service-page .licensing-links strong,
body.service-page .licensing-links small {
  display: block;
}

body.service-page .licensing-links strong {
  font-size: 12.5px;
}

body.service-page .licensing-links small {
  margin-top: 3px;
  color: #245bb5;
  font-size: 11.5px;
}

body.service-page .license-note {
  margin-top: 8px;
  padding: 8px 14px;
  background: #eef4ff;
  color: #17488d;
  text-align: center;
  font-size: 14px;
}

body.service-page .policies-section {
  padding-top: 12px;
}

body.service-page .policies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

body.service-page .policies-grid details {
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  background: #fff;
}

body.service-page .policies-grid summary {
  cursor: pointer;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 900;
}

body.service-page .policies-grid details p {
  margin: 0;
  padding: 0 12px 12px;
  font-size: 12.5px;
  line-height: 1.5;
}

body.service-page .service-cta {
  margin-top: 8px;
}

@media (max-width: 980px) {
  body.service-page .service-hero-grid,
  body.service-page .course-schedule-panel {
    grid-template-columns: 1fr;
  }

  body.service-page .service-hero-media {
    clip-path: none;
    border-left: 0;
  }

  body.service-page .special-grid,
  body.service-page .service-card-grid {
    grid-template-columns: 1fr 1fr;
  }

  body.service-page .special-item,
  body.service-page .service-card {
    border-bottom: 1px solid #e1e1e1;
  }

  body.service-page .quick-register-grid,
  body.service-page .info-panel-grid,
  body.service-page .licensing-grid,
  body.service-page .policies-grid {
    grid-template-columns: 1fr 1fr;
  }

  body.service-page .quick-register-title {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body.service-page .service-hero-grid,
  body.service-page .special-grid,
  body.service-page .quick-register-grid,
  body.service-page .service-card-grid,
  body.service-page .schedule-content-grid,
  body.service-page .info-panel-grid,
  body.service-page .licensing-grid,
  body.service-page .policies-grid {
    grid-template-columns: 1fr;
  }

  body.service-page .service-hero-copy {
    padding: 34px 0;
  }

  body.service-page .service-hero-media img {
    min-height: 280px;
  }

  body.service-page .special-item {
    border-right: 0;
  }

  body.service-page .service-card {
    border-right: 0;
  }

  body.service-page .licensing-links {
    grid-column: auto;
  }

  body.service-page .package-grid {
    grid-template-columns: 1fr;
  }

  body.service-page .package-card {
    border-right: 0;
    border-bottom: 1px solid #eee;
  }
}


/* NEW PACKAGES + DRIVING OPTIONS LAYOUT */
body.service-page .pricing-layout-updated {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(290px, .9fr);
  gap: 12px;
  align-items: stretch;
}

body.service-page .combined-packages-panel {
  padding: 14px;
  border: 1px solid #e1121f;
}

body.service-page .combined-packages-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

body.service-page .combined-packages-heading h2 {
  margin: 0;
  font-size: 20.5px;
}

body.service-page .combined-packages-heading p {
  margin: 3px 0 0;
  color: #555;
  font-size: 12.5px;
}

body.service-page .combined-packages-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d00013;
  color: #fff;
  font-size: 23px;
}

body.service-page .combined-package-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  border: 1px solid #f0c3c6;
  border-radius: 6px;
  overflow: hidden;
}

body.service-page .package-group {
  min-width: 0;
  padding: 12px;
  border-right: 1px solid #f0c3c6;
}

body.service-page .package-group:last-child {
  border-right: 0;
}

body.service-page .package-group h3 {
  display: inline-block;
  margin: 0 0 4px;
  padding: 5px 10px;
  border-radius: 4px;
  background: #d00013;
  color: #fff;
  font-size: 14px;
}

body.service-page .package-group-subtitle {
  margin: 0 0 10px;
  min-height: 30px;
  color: #333;
  font-size: 11.5px;
  line-height: 1.35;
}

body.service-page .new-package-row {
  min-height: 92px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid #e7e7e7;
  border-radius: 5px;
  background: #fff;
}

body.service-page .new-package-row:last-child {
  margin-bottom: 0;
}

body.service-page .new-package-row strong,
body.service-page .new-package-row small {
  display: block;
}

body.service-page .new-package-row strong {
  font-size: 12.5px;
  line-height: 1.35;
}

body.service-page .new-package-row small {
  margin-top: 8px;
  color: #333;
  font-size: 11.5px;
}

body.service-page .new-package-row s {
  color: #d00013;
  font-weight: 800;
}

body.service-page .new-package-price {
  min-width: 68px;
  text-align: right;
}

body.service-page .new-package-price b {
  display: block;
  color: #e1121f;
  font-size: 24px;
  line-height: 1;
}

body.service-page .new-package-price span {
  display: block;
  margin-top: 4px;
  color: #111;
  font-size: 10.5px;
  font-weight: 900;
}

body.service-page .compact-row {
  min-height: 68px;
}

body.service-page .pricing-layout-updated .register-pay-panel {
  border: 1px solid #e1121f;
}

body.service-page .pricing-layout-updated .register-pay-panel h2 {
  text-align: center;
  margin-bottom: 10px;
}

@media (max-width: 980px) {
  body.service-page .pricing-layout-updated {
    grid-template-columns: 1fr;
  }

  body.service-page .combined-package-columns {
    grid-template-columns: 1fr 1fr;
  }

  body.service-page .road-test-group {
    grid-column: 1 / -1;
    border-top: 1px solid #f0c3c6;
    border-right: 0;
  }
}

@media (max-width: 720px) {
  body.service-page .combined-package-columns {
    grid-template-columns: 1fr;
  }

  body.service-page .package-group,
  body.service-page .road-test-group {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid #f0c3c6;
  }

  body.service-page .package-group:last-child {
    border-bottom: 0;
  }
  /* =========================================
   PAYPAL BUTTON DROPDOWN
========================================= */

body.service-page .paypal-dropdown {
  position: relative !important;
  display: inline-block !important;
}

body.service-page .paypal-dropdown-button {
  min-width: 100px !important;
  padding: 8px 12px !important;

  border: none !important;
  border-radius: 3px !important;

  background: #d00013 !important;
  color: #ffffff !important;

  font-size: 11.5px !important;
  font-weight: 800 !important;

  cursor: pointer !important;
}

/* Hidden normally */
body.service-page .paypal-dropdown-menu {
  display: none !important;

  position: absolute !important;
  top: calc(100% + 5px) !important;
  right: 0 !important;

  width: 260px !important;

  background: #ffffff !important;

  border: 1px solid #dddddd !important;
  border-radius: 5px !important;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18) !important;

  z-index: 99999 !important;

  overflow: hidden !important;
}

/* Show only after PAY NOW is clicked */
body.service-page .paypal-dropdown-menu.show {
  display: block !important;
}

/* Dropdown choices */
body.service-page .paypal-dropdown-menu a {
  display: block !important;

  width: 100% !important;
  padding: 10px 12px !important;

  background: #ffffff !important;
  color: #111111 !important;

  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;

  text-align: left !important;
  text-decoration: none !important;

  border: none !important;
  border-bottom: 1px solid #eeeeee !important;
}

body.service-page .paypal-dropdown-menu a:last-child {
  border-bottom: none !important;
}

body.service-page .paypal-dropdown-menu a:hover {
  background: #f5f5f5 !important;
  color: #d00013 !important;
}

}

/* =========================================
   HOSTED PAYPAL BUTTON (legacy PayPal setup)
========================================= */
body.service-page .paypal-hosted-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

body.service-page .paypal-service-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.service-page .paypal-service-select {
  max-width: 320px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  background: #ffffff;
  color: #222222;
  font: inherit;
  cursor: pointer;
}

body.service-page .paypal-buy-button {
  width: auto;
  height: auto;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

@media (max-width: 767px) {
  body.service-page .paypal-hosted-form {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  body.service-page .paypal-service-select {
    width: 100%;
    max-width: 100%;
  }
}


/* Service page only: red Register Now button in the 8-hour course schedule card */
body.service-page .schedule-card .service-register-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 22px;
  border: 2px solid #d00013;
  border-radius: 4px;
  background: #d00013;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

body.service-page .schedule-card .service-register-btn:hover,
body.service-page .schedule-card .service-register-btn:focus {
  background: #b00010;
  border-color: #b00010;
  color: #ffffff !important;
  text-decoration: none;
}

/* Register & Pay spacing refinement */
body.service-page .register-pay-panel > strong {
  margin-bottom: 12px;
  line-height: 1.45;
}

body.service-page .register-pay-panel > a {
  margin: 6px 0;
  padding-top: 11px;
  padding-bottom: 11px;
}

body.service-page .register-pay-panel .paypal-row {
  margin: 10px 0;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

body.service-page .register-pay-panel .paypal-hosted-form {
  margin-top: 8px;
}
