/*
 * The home page's look for every page of the website, in both languages (the home page itself draws its own
 * sections, .mrh-*, in its Website Control content).
 *
 * The pages keep their content and the old theme's markup. This file restyles that markup:
 *   - the colors: the home page's red and greys replace the theme's dark red and navy (--main-color, --black-color);
 *   - the title band at the top of a page (.breadcrumb-sec): a dark band with a red glow;
 *   - bold headings, rounded cards with soft shadows, rounded buttons, light grey bands and question lists that open.
 * Loaded last (layouts/styles.blade.php), so it wins over style.css / style.ar.css at the same weight.
 */

:root {
  /* The theme's own colors, used all over style.css (they were #ad172b and #061f5c). */
  --main-color: #DC2626 !important;
  --black-color: #1F2937 !important;

  --mrt-red: #DC2626;
  --mrt-red-bright: #E52B2F;
  --mrt-red-dark: #B91C1C;
  --mrt-red-soft: #FEF2F2;
  --mrt-ink: #1F2937;
  --mrt-text: #4B5563;
  --mrt-muted: #6B7280;
  --mrt-line: #E5E7EB;
  --mrt-soft: #F9FAFB;
  --mrt-night: #0D1117;
  --mrt-card-shadow: 0 18px 40px -24px rgba(17, 24, 39, .35), 0 2px 8px rgba(17, 24, 39, .04);
  --mrt-card-shadow-up: 0 28px 54px -24px rgba(17, 24, 39, .42), 0 2px 8px rgba(17, 24, 39, .05);
  --mrt-ease: cubic-bezier(.22, .7, .25, 1);
}

[dir=rtl] .main-content * { letter-spacing: 0 !important; }

/* ---------------------------------------------------------------------------------------------------------------
 * Bands: the theme's grey (#eaeded, set inline from data-bg-color) becomes the home page's light grey.
 * ------------------------------------------------------------------------------------------------------------- */
[data-bg-color^="#eaeded"],
[data-bg-color^="#EAEDED"] { background-color: var(--mrt-soft) !important; }

/* ---------------------------------------------------------------------------------------------------------------
 * The title band at the top of a page: page name and "Home / page" on a dark band with a red glow, a fine dot
 * pattern and the Med Right check mark (like the home page's app and clients sections).
 * ------------------------------------------------------------------------------------------------------------- */
section.breadcrumb-sec {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 80px 0 72px !important;
  background: radial-gradient(rgba(255, 255, 255, .07) 1px, rgba(255, 255, 255, 0) 1.6px) 0 0 / 26px 26px, var(--mrt-night) !important;
}
section.breadcrumb-sec::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -300px;
  left: -180px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: rgba(220, 38, 38, .32);
  filter: blur(120px);
  pointer-events: none;
}
[dir=rtl] section.breadcrumb-sec::before { left: auto; right: -180px; }
section.breadcrumb-sec::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 7%;
  width: 280px;
  height: 280px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='white' stroke-opacity='.1' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='47' cy='57' r='33'/%3E%3Cpath d='M31.5 35 49.5 53.5 85 15'/%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
}
[dir=rtl] section.breadcrumb-sec::after { right: auto; left: 7%; }
section.breadcrumb-sec .row > * { width: 100%; }
section.breadcrumb-sec h1,
section.breadcrumb-sec h2 {
  margin: 0 0 20px;
  color: #fff !important;
  font-size: 52px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
}
section.breadcrumb-sec .breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 14px;
  font-weight: 600;
}
section.breadcrumb-sec .breadcrumb-item a { color: #F87171; transition: color .2s; }
section.breadcrumb-sec .breadcrumb-item a:hover,
section.breadcrumb-sec .breadcrumb-item a:focus-visible { color: #fff !important; }
section.breadcrumb-sec .breadcrumb-item.active { color: rgba(255, 255, 255, .8); }
section.breadcrumb-sec .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .35); }

/* ---------------------------------------------------------------------------------------------------------------
 * Headings: bolder, the home page's dark grey, the colored part in the same weight.
 * ------------------------------------------------------------------------------------------------------------- */
.main-content .section-title .title {
  color: var(--mrt-ink);
  font-weight: 800;
  letter-spacing: -.8px;
}
.main-content .section-title .title span,
.main-content .title span { color: var(--mrt-red-bright); font-weight: inherit; }
.main-content :is(h2, h3, h4) .text-main.fw-light { font-weight: inherit !important; }
.main-content :is(h2, h3, h4).font-size-40,
.main-content :is(h2, h3, h4).font-size-36,
.main-content :is(h2, h3, h4).font-size-44 { font-weight: 800; letter-spacing: -.6px; line-height: 1.15; }
.main-content ul:not([class*=nav]):not(.breadcrumb):not([class*=mr-]) > li::marker { color: var(--mrt-red-bright); }

/* ---------------------------------------------------------------------------------------------------------------
 * Buttons: the home page's rounded red button (white on red bands), lifting on hover.
 * ------------------------------------------------------------------------------------------------------------- */
.btn-theme,
.btn-theme.btn,
.main-content .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 28px;
  border: 0;
  border-radius: 16px;
  background-color: var(--mrt-red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .5px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(220, 38, 38, .25);
  transition: background-color .25s, color .25s, transform .25s, box-shadow .25s;
}
.btn-theme:hover,
.btn-theme:focus-visible,
.btn-theme.btn:hover,
.btn-theme.btn:focus-visible,
.main-content .btn-primary:hover,
.main-content .btn-primary:focus-visible {
  background-color: var(--mrt-red-dark) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(220, 38, 38, .3);
}
.btn-theme.btn-white,
.btn-theme.btn-white.btn { background-color: #fff; color: var(--mrt-ink); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.btn-theme.btn-white:hover,
.btn-theme.btn-white:focus-visible { background-color: #fff !important; color: var(--mrt-red) !important; box-shadow: 0 10px 22px rgba(0, 0, 0, .18); }

/* The theme's own navy hovers (style.css), now the home page's dark red. */
.link-hover:hover { color: var(--mrt-red-dark) !important; }
.service-slider-container .category-item .icon:hover,
.mobile-app-area .social-icons:hover,
.medical-greeting-sec a:hover { background-color: var(--mrt-red-dark) !important; }
.wellness-program-sec .wellness-link:hover { color: var(--mrt-red-dark); }

/* ---------------------------------------------------------------------------------------------------------------
 * Questions that open (FAQs, About, Wellness programs): white rounded rows with a chevron; the open one is red.
 * ------------------------------------------------------------------------------------------------------------- */
.main-content [data-bs-toggle=collapse].bg-main {
  display: flex !important;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 15px 20px !important;
  border: 1px solid var(--mrt-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--mrt-ink) !important;
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.45;
  text-align: start !important;
  white-space: normal;
  box-shadow: 0 10px 24px -18px rgba(17, 24, 39, .35) !important;
  transition: background-color .25s, border-color .25s, color .25s, box-shadow .25s;
}
.main-content [data-bs-toggle=collapse].bg-main::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin: -4px 4px 0 auto;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  background: none !important;
  transform: rotate(45deg) !important; /* the theme sets the chevron turn with !important */
  transition: transform .3s var(--mrt-ease);
}
[dir=rtl] .main-content [data-bs-toggle=collapse].bg-main::after { margin: -4px auto 0 4px; }
.main-content [data-bs-toggle=collapse].bg-main.collapsed:hover { border-color: rgba(220, 38, 38, .45) !important; color: var(--mrt-red) !important; }
.main-content [data-bs-toggle=collapse].bg-main:not(.collapsed) {
  border-color: var(--mrt-red) !important;
  background: var(--mrt-red) !important;
  color: #fff !important;
  box-shadow: 0 14px 26px -14px rgba(220, 38, 38, .6) !important;
}
.main-content [data-bs-toggle=collapse].bg-main:not(.collapsed)::after { margin-top: 4px; transform: rotate(-135deg) !important; }
.main-content [data-bs-toggle=collapse].bg-main:focus-visible { outline: 2px solid var(--mrt-red); outline-offset: 3px; }
.main-content .collapse > .card.card-body,
.main-content .collapsing > .card.card-body {
  margin: 8px 0 6px;
  padding: 18px 22px;
  border: 1px solid var(--mrt-line);
  border-radius: 14px;
  background: #fff;
  color: var(--mrt-text);
  line-height: 1.75;
}

/* ---------------------------------------------------------------------------------------------------------------
 * Cards: icon boxes, the red feature cards and the app cards, rounded with soft shadows, lifting on hover.
 * ------------------------------------------------------------------------------------------------------------- */
.main-content .icon-box-item {
  height: calc(100% - 1rem);
  padding: 32px 26px !important;
  border: 1px solid #EEF0F3;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--mrt-card-shadow);
  transition: transform .35s var(--mrt-ease), box-shadow .35s;
}
.main-content .icon-box-item:hover { transform: translateY(-6px); box-shadow: var(--mrt-card-shadow-up); }
.main-content .icon-box-item .icon { margin-top: 0 !important; }
.main-content .icon-box-item .icon i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: var(--mrt-red-soft);
  font-size: 40px !important;
  transition: transform .35s var(--mrt-ease);
}
.main-content .icon-box-item:hover .icon i { transform: scale(1.06) rotate(-4deg); }
.main-content .icon-box-item .title { margin-top: 6px; color: var(--mrt-ink); font-size: 19px; font-weight: 800; }
.main-content .icon-box-item p { color: var(--mrt-text); line-height: 1.75; }

/* The red cards (features, app, careers culture, checkups): a red gradient, rounded, lifting on hover; their
   navy line icons turn white. Any other red block gets the rounded corners. */
.main-content .bg-main:not(.btn) { border-radius: 16px; }
.main-content :is(.discount-card, .mobile-app-card, .work-with-us-card, .checkup-card) {
  border-radius: 22px;
  background: linear-gradient(135deg, var(--mrt-red-bright), var(--mrt-red-dark)) !important;
  box-shadow: 0 22px 40px -22px rgba(220, 38, 38, .7);
  transition: transform .35s var(--mrt-ease), box-shadow .35s;
}
.main-content :is(.discount-card, .mobile-app-card, .work-with-us-card, .checkup-card):hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -22px rgba(220, 38, 38, .75);
}
.main-content :is(.discount-card, .mobile-app-card, .work-with-us-card, .checkup-card),
.main-content :is(.discount-card, .mobile-app-card, .work-with-us-card, .checkup-card) p { color: rgba(255, 255, 255, .92); }
.main-content :is(.discount-card, .mobile-app-card, .work-with-us-card, .checkup-card) h4 { font-weight: 800; }
.main-content .bg-main svg [fill="#061f5c"],
.main-content .bg-main svg [fill="#061F5C"] { fill: #fff; }

/* Photos in the page text get the home page's rounded corners (icons and logos are left alone). */
.main-content .container img:not(.icon img):not([src*=logo]):not([src*=icon]) { border-radius: 20px; }
.main-content .container iframe { border-radius: 20px; overflow: hidden; }

/* ---------------------------------------------------------------------------------------------------------------
 * Photo heroes at the top of service pages: the home page's dark fade under bolder white text.
 * ------------------------------------------------------------------------------------------------------------- */
.home-slider-area.slider-default .bg-filter {
  background: linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .5) 50%, rgba(0, 0, 0, .15) 100%) !important;
  opacity: 1 !important;
}
.home-slider-area.slider-default h2 {
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.2px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}
.home-slider-area.slider-default h4 {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(229, 43, 47, .92);
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 1.2px;
}
.home-slider-area.slider-default p { color: rgba(255, 255, 255, .92); font-weight: 600; }

/* ---------------------------------------------------------------------------------------------------------------
 * Red bands (Vision, Mission, calls to action): the home page's red banner with two soft circles.
 * ------------------------------------------------------------------------------------------------------------- */
.divider-area.bgcolor-theme {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--mrt-red) !important;
  background-image: none !important;
}
.divider-area.bgcolor-theme::before,
.divider-area.bgcolor-theme::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  pointer-events: none;
}
.divider-area.bgcolor-theme::before { top: -110px; left: -90px; }
.divider-area.bgcolor-theme::after { right: -100px; bottom: -120px; }
.divider-area.bgcolor-theme h2 { font-weight: 800; letter-spacing: -.6px; }
.divider-area.bgcolor-theme h2 span { font-weight: inherit; opacity: .85; }

/* ---------------------------------------------------------------------------------------------------------------
 * Forms on Website Control pages (contact, surveys, provider addition): rounded fields with a red focus ring.
 * ------------------------------------------------------------------------------------------------------------- */
.main-content .form-control,
.main-content .form-select,
.main-content .contact-form-wrapper textarea,
.main-content .contact-form textarea,
.main-content .contact-form .form-group .form-control {
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid #D1D5DB;
  border-radius: 12px;
  background-color: #fff;
  color: var(--mrt-ink);
  font-size: 15px;
  box-shadow: none;
  transition: border-color .2s, box-shadow .2s;
}
.main-content .contact-form-wrapper textarea,
.main-content .contact-form textarea { width: 100%; }
.main-content .form-control:focus,
.main-content .contact-form .form-group .form-control:focus,
.main-content .form-select:focus,
.main-content .contact-form-wrapper textarea:focus,
.main-content .contact-form textarea:focus {
  border-color: var(--mrt-red);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .12);
}
.main-content .form-control::placeholder,
.main-content .contact-form-wrapper textarea::placeholder,
.main-content .contact-form textarea::placeholder { color: #9CA3AF; }
.main-content .form-check-input:checked { border-color: var(--mrt-red); background-color: var(--mrt-red); }
.main-content .form-check-input:focus { border-color: var(--mrt-red); box-shadow: 0 0 0 4px rgba(220, 38, 38, .12); }
.main-content input[type=range] { accent-color: var(--mrt-red); }

/* Form cards (contact, surveys, provider addition) and the contact page's office card, dark like the title band. */
.main-content .contact-form-wrapper {
  border: 1px solid #EEF0F3;
  border-radius: 24px;
  box-shadow: var(--mrt-card-shadow);
}
.contact-area { background-color: var(--mrt-soft) !important; }
.main-content .contact-info-content {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 24px;
  background: radial-gradient(rgba(255, 255, 255, .07) 1px, rgba(255, 255, 255, 0) 1.6px) 0 0 / 26px 26px, var(--mrt-night);
  box-shadow: 0 30px 60px -30px rgba(17, 24, 39, .6);
}
.main-content .contact-info-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -240px;
  right: -160px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: rgba(220, 38, 38, .32);
  filter: blur(110px);
  pointer-events: none;
}
.main-content .contact-info-content .title { font-weight: 800; }
.main-content .contact-info-content a:hover { color: #F87171 !important; }
.main-content .contact-info-content a:hover span { color: inherit !important; }
.main-content .contact-info-content hr { opacity: .15; }

/* ---------------------------------------------------------------------------------------------------------------
 * Tables (medical provider network, member dashboard): a rounded card, a light header, a soft red row on hover.
 * ------------------------------------------------------------------------------------------------------------- */
.main-content .table {
  --bs-table-hover-bg: var(--mrt-red-soft);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #EEF0F3;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--mrt-card-shadow);
}
.main-content .table > thead th {
  padding: 16px 14px;
  border-bottom: 1px solid var(--mrt-line);
  background: var(--mrt-soft);
  color: var(--mrt-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  white-space: nowrap;
}
.main-content .table > tbody > tr > * { padding: 14px; border-bottom: 1px solid #F1F2F4; color: var(--mrt-text); vertical-align: middle; }
.main-content .table > tbody > tr:last-child > * { border-bottom: 0; }
.main-content .table > tbody a { color: var(--mrt-red); font-weight: 600; }

/* Select boxes with search (select2) and the provider network's Reset button. */
.main-content .select2-container--default .select2-selection--single {
  height: 50px;
  border: 1px solid #D1D5DB;
  border-radius: 12px;
}
.main-content .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0 16px; color: var(--mrt-ink); line-height: 48px; }
.main-content .select2-container--default .select2-selection--single .select2-selection__arrow { top: 11px; right: 10px; }
[dir=rtl] .main-content .select2-container--default .select2-selection--single .select2-selection__arrow { right: auto; left: 10px; }
.main-content .select2-container--default.select2-container--focus .select2-selection--single,
.main-content .select2-container--default.select2-container--open .select2-selection--single { border-color: var(--mrt-red); box-shadow: 0 0 0 4px rgba(220, 38, 38, .12); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background-color: var(--mrt-red); }
.main-content #resetButton {
  min-height: 50px;
  border: 1px solid var(--mrt-red);
  border-radius: 12px;
  background: #fff;
  color: var(--mrt-red);
  font-weight: 700;
  transition: background-color .25s, color .25s;
}
.main-content #resetButton:hover,
.main-content #resetButton:focus-visible { background: var(--mrt-red); color: #fff; }

/* Member sign-in (css/member-login.css keeps the ticketing card): the red button and focus of the rest of the site. */
body .ml-page .ml-btn { background: var(--mrt-red); font-weight: 600; transition: background-color .2s; }
body .ml-page .ml-btn:hover { background: var(--mrt-red-dark); opacity: 1; }
body .ml-page .ml-btn:focus-visible { outline-color: var(--mrt-red); }

/* ---------------------------------------------------------------------------------------------------------------
 * Phones and tablets.
 * ------------------------------------------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  section.breadcrumb-sec { padding: 64px 0 56px !important; }
  section.breadcrumb-sec h1,
  section.breadcrumb-sec h2 { font-size: 42px; }
  section.breadcrumb-sec::after { width: 200px; height: 200px; right: 3%; }
  [dir=rtl] section.breadcrumb-sec::after { right: auto; left: 3%; }
}
@media (max-width: 767.98px) {
  section.breadcrumb-sec { padding: 48px 0 44px !important; }
  section.breadcrumb-sec h1,
  section.breadcrumb-sec h2 { margin-bottom: 16px; font-size: 32px; letter-spacing: -.5px; }
  section.breadcrumb-sec::after { top: auto; right: -40px; bottom: -60px; width: 180px; height: 180px; transform: none; }
  [dir=rtl] section.breadcrumb-sec::after { right: auto; left: -40px; }
  section.breadcrumb-sec .breadcrumb { padding: 7px 14px; font-size: 13px; }
  .main-content .icon-box-item { padding: 26px 20px !important; }
  .main-content [data-bs-toggle=collapse].bg-main { padding: 14px 16px !important; font-size: 14px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .main-content .icon-box-item,
  .main-content .icon-box-item .icon i,
  .main-content :is(.discount-card, .mobile-app-card, .work-with-us-card, .checkup-card),
  .btn-theme,
  .main-content [data-bs-toggle=collapse].bg-main::after { transition: none; }
}
