:root {
  --ma-red: #EB313B;
  --ma-dark: #1F1A17;
  --ma-text: #5F6368;
  --ma-bg: #F6F6F6;
  --ma-white: #FFFFFF;
  --ma-border: #E9E9E9;
  --ma-shadow: 0 14px 40px rgba(31, 26, 23, .10);
}

body.customers {
  background: var(--ma-bg) !important;
  color: var(--ma-text);
  font-family: Inter, "Open Sans", Arial, sans-serif;
}

body.customers #wrapper,
body.customers #content {
  background: var(--ma-bg) !important;
}

body.customers .ma-footer,
body.customers footer.ma-footer,
body.customers .portal-footer,
body.customers footer.portal-footer {
  background: var(--ma-dark) !important;
  color: rgba(255,255,255,.78) !important;
}

body.customers .ma-footer *,
body.customers footer.ma-footer *,
body.customers .portal-footer *,
body.customers footer.portal-footer * {
  background-color: transparent;
}

body.customers .portal-footer a,
body.customers footer.portal-footer a,
body.customers .ma-footer a,
body.customers footer.ma-footer a {
  color: rgba(255,255,255,.82) !important;
}

body.customers .portal-footer h3,
body.customers footer.portal-footer h3,
body.customers .ma-footer h3,
body.customers footer.ma-footer h3,
body.customers .portal-logo--footer .portal-logo__name,
body.customers .portal-logo--footer .portal-logo__subtitle {
  color: #fff !important;
}

.ma-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.ma-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 24px rgba(31, 26, 23, .08);
  backdrop-filter: blur(12px);
}

.ma-header__bar {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.ma-logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  min-width: 170px;
  text-decoration: none !important;
}

.ma-logo__name {
  color: var(--ma-dark);
  font-size: 23px;
  font-weight: 900;
}

.ma-logo__accent {
  color: var(--ma-red);
}

.ma-logo__subtitle {
  margin-top: 4px;
  color: var(--ma-text);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.ma-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex: 1;
}

.ma-nav a,
.ma-account a {
  color: var(--ma-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
}

.ma-nav a:hover,
.ma-account a:hover {
  color: var(--ma-red);
}

.ma-actions,
.ma-account {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ma-selection-link,
.ma-account-login,
.ma-account-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(31, 26, 23, .12);
  border-radius: 999px;
  background: var(--ma-dark);
  color: var(--ma-red);
  text-decoration: none !important;
  font-weight: 900;
}

.ma-selection-link,
.ma-account-login,
.ma-account-trigger,
.ma-icon-link {
  width: 42px;
  padding: 0;
}

.ma-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--ma-border);
  background: var(--ma-white);
  color: var(--ma-dark);
  text-decoration: none !important;
}

.ma-icon-link--whatsapp {
  color: #25D366;
}

.ma-selection-link span,
.ma-account-trigger span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.ma-selection-link small,
.ma-account-trigger small {
  margin-top: 3px;
  color: var(--ma-text);
  font-size: 11px;
  font-weight: 700;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ma-selection-link em {
  position: absolute;
  top: -6px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--ma-red);
  color: var(--ma-white);
  font-size: 11px;
  font-style: normal;
}

.ma-selection-link {
  position: relative;
}

.ma-selection-link:hover,
.ma-account-login:hover,
.ma-account-trigger:hover {
  color: var(--ma-red);
  border-color: rgba(235, 49, 59, .5);
  background: #111;
}

.ma-account-dropdown {
  position: relative;
}

.ma-account-trigger {
  cursor: pointer;
}

.ma-account-login i,
.ma-account-trigger i {
  color: var(--ma-red) !important;
}

.ma-account-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 1100;
  display: none;
  min-width: 238px;
  padding: 8px;
  border: 1px solid var(--ma-border);
  border-radius: 14px;
  background: var(--ma-white);
  box-shadow: var(--ma-shadow);
}

.ma-account-menu__identity {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--ma-border);
  margin-bottom: 6px;
}

.ma-account-menu__identity strong,
.ma-account-menu__identity small {
  display: block;
}

.ma-account-menu__identity strong {
  color: var(--ma-dark);
  font-size: 13px;
  font-weight: 900;
}

.ma-account-menu__identity small {
  margin-top: 3px;
  color: var(--ma-text);
  font-size: 12px;
  font-weight: 700;
}

.ma-account-dropdown.is-open .ma-account-menu {
  display: block;
}

.ma-account-dropdown:hover .ma-account-menu {
  display: block;
}

.ma-account-menu a {
  display: block;
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--ma-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
}

.ma-account-menu a:hover {
  background: rgba(235, 49, 59, .08);
  color: var(--ma-red);
}

.ma-account-menu .ma-account-logout {
  margin-top: 8px;
  border-top: 1px solid var(--ma-border);
  border-radius: 0 0 8px 8px;
  color: var(--ma-red);
}

.ma-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ma-border);
  border-radius: 8px;
  background: var(--ma-white);
  color: var(--ma-dark);
}

.ma-btn,
.btn.ma-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none !important;
  transition: all .2s ease;
}

.ma-btn--primary,
.btn.ma-btn--primary {
  background: var(--ma-red) !important;
  border-color: var(--ma-red) !important;
  color: var(--ma-white) !important;
  box-shadow: 0 10px 24px rgba(235, 49, 59, .25);
}

.ma-btn--dark,
.btn.ma-btn--dark {
  background: var(--ma-dark) !important;
  border-color: var(--ma-dark) !important;
  color: var(--ma-white) !important;
}

.ma-btn--outline,
.btn.ma-btn--outline {
  background: var(--ma-white) !important;
  border-color: var(--ma-border) !important;
  color: var(--ma-dark) !important;
}

.ma-auth {
  padding: 46px 0 74px;
}

.ma-auth__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, .94fr);
  gap: 30px;
  align-items: stretch;
}

.ma-auth__hero {
  min-height: 590px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  border-radius: 8px;
  background-image: linear-gradient(135deg, rgba(31, 26, 23, .84), rgba(235, 49, 59, .74)), url("../images/home4/slide1.jpg");
  background-position: center;
  background-size: cover;
  color: var(--ma-white);
}

.ma-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: var(--ma-white);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ma-auth__hero h1,
.ma-page-title h1 {
  margin: 0;
  color: inherit;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  font-weight: 900;
}

.ma-auth__hero p {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 17px;
  line-height: 1.7;
}

.ma-card {
  border: 0;
  border-radius: 8px;
  background: var(--ma-white);
  box-shadow: var(--ma-shadow);
}

.ma-card__body {
  padding: 32px;
}

.ma-auth-card {
  align-self: center;
}

.ma-card h2 {
  margin: 0 0 8px;
  color: var(--ma-dark);
  font-size: 28px;
  font-weight: 900;
}

.ma-card p {
  color: var(--ma-text);
  line-height: 1.65;
}

.ma-card label {
  color: var(--ma-dark);
  font-weight: 800;
}

.ma-card .form-control,
.ma-input {
  min-height: 46px;
  border: 1px solid var(--ma-border);
  border-radius: 8px;
  box-shadow: none;
}

.ma-auth-links {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.ma-auth-links a {
  color: var(--ma-text);
  font-weight: 800;
}

.ma-register {
  padding: 42px 0 74px;
}

.ma-register__head,
.ma-page-title {
  margin-bottom: 24px;
}

.ma-register__head h1,
.ma-page-title h1 {
  color: var(--ma-dark);
}

.ma-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ma-form-grid .is-full {
  grid-column: 1 / -1;
}

.ma-field-help {
  display: block;
  margin-top: 6px;
  color: var(--ma-red);
  font-size: 12px;
  font-weight: 800;
}

.ma-dashboard {
  padding: 42px 0 74px;
}

.ma-dashboard__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 30px;
  border-radius: 8px;
  background: var(--ma-white);
  box-shadow: var(--ma-shadow);
}

.ma-dashboard__hero h1 {
  margin: 0;
  color: var(--ma-dark);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
}

.ma-dashboard__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ma-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.ma-stat {
  padding: 22px;
  border-radius: 8px;
  background: var(--ma-white);
  box-shadow: 0 8px 24px rgba(31, 26, 23, .06);
}

.ma-stat span {
  display: block;
  color: var(--ma-text);
  font-size: 13px;
  font-weight: 800;
}

.ma-stat strong {
  display: block;
  margin-top: 8px;
  color: var(--ma-dark);
  font-size: 34px;
  font-weight: 900;
}

.ma-footer {
  background: var(--ma-dark) !important;
  color: rgba(255,255,255,.76) !important;
  margin-top: 0;
}

.ma-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
  gap: 34px;
  padding: 52px 0 40px;
}

.ma-footer .ma-logo__name,
.ma-footer .ma-logo__subtitle {
  color: var(--ma-white);
}

.ma-footer h3 {
  margin: 0 0 12px;
  color: var(--ma-white);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.ma-footer p,
.ma-footer span {
  color: rgba(255,255,255,.72);
  line-height: 1.7;
}

.ma-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ma-footer a {
  color: rgba(255,255,255,.78);
  text-decoration: none !important;
}

.ma-footer a:hover {
  color: var(--ma-white);
}

.ma-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  background: var(--ma-dark) !important;
}

.ma-footer__bottom .ma-container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 13px;
}

.ma-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.ma-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
}

.ma-estimate-qr {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--ma-border);
  border-radius: 8px;
  background: #fff;
}

.ma-estimate-qr img {
  width: 132px;
  height: 132px;
}

.estimate-html-logo img,
.estimate-html-logo .logo img {
  max-height: 68px;
  width: auto;
}

body.customers .ma-footer,
body.customers footer.ma-footer,
body.customers .portal-footer,
body.customers footer.portal-footer {
  overflow: hidden;
  background: var(--ma-dark) !important;
  background-color: var(--ma-dark) !important;
  color: rgba(255, 255, 255, .84) !important;
  filter: none !important;
  opacity: 1 !important;
}

body.customers .ma-footer .ma-container,
body.customers .ma-footer__grid,
body.customers .ma-footer__bottom,
body.customers .ma-footer__bottom .ma-container,
body.customers .portal-footer .portal-container,
body.customers .portal-footer__grid,
body.customers .portal-footer__bottom,
body.customers .portal-footer__bottom .portal-container {
  background: var(--ma-dark) !important;
  background-color: var(--ma-dark) !important;
}

body.customers .ma-footer *,
body.customers .portal-footer * {
  filter: none !important;
  opacity: 1 !important;
}

body.customers .ma-footer p,
body.customers .ma-footer span,
body.customers .ma-footer a,
body.customers .portal-footer p,
body.customers .portal-footer span,
body.customers .portal-footer a {
  color: rgba(255, 255, 255, .84) !important;
}

body.customers .ma-footer h3,
body.customers .portal-footer h3,
body.customers .ma-footer .ma-logo__name,
body.customers .ma-footer .ma-logo__subtitle,
body.customers .portal-footer .portal-logo__name,
body.customers .portal-footer .portal-logo__subtitle {
  color: #fff !important;
}

body.customers .ma-footer .ma-logo__accent,
body.customers .portal-footer .portal-logo__accent {
  color: var(--ma-red) !important;
}

body.customers .ma-footer a:hover,
body.customers .portal-footer a:hover {
  color: var(--ma-red) !important;
}

body.customers .ma-social a,
body.customers .portal-footer__social a {
  background: rgba(255, 255, 255, .12) !important;
  color: #fff !important;
}

body.customers .ma-social a:hover,
body.customers .portal-footer__social a:hover {
  background: var(--ma-red) !important;
  color: #fff !important;
}

@media print {
  .ma-header,
  .ma-footer,
  .preview-top-wrapper .top,
  .action-button,
  .go-to-portal {
    display: none !important;
  }

  body.customers,
  body.customers #wrapper,
  body.customers #content {
    background: #fff !important;
  }

  .panel_s,
  .panel-body {
    border: 0 !important;
    box-shadow: none !important;
  }

  .ma-estimate-qr {
    break-inside: avoid;
  }
}

@media (max-width: 980px) {
  .ma-header__bar {
    min-height: 66px;
  }

  .ma-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .ma-nav,
  .ma-actions {
    position: absolute;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--ma-white);
    padding: 14px 20px;
  }

  .ma-nav {
    top: 66px;
    box-shadow: 0 18px 28px rgba(31,26,23,.1);
  }

  .ma-actions {
    top: 268px;
  }

  .ma-selection-link,
  .ma-account-login,
  .ma-account-trigger {
    width: 100%;
    justify-content: flex-start;
    border-radius: 10px;
  }

  .ma-account-dropdown {
    width: 100%;
  }

  .ma-account-menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    box-shadow: 0 10px 24px rgba(31, 26, 23, .08);
  }

  .ma-header.is-open .ma-nav,
  .ma-header.is-open .ma-actions {
    display: flex;
  }

  .ma-auth__layout,
  .ma-dashboard__hero,
  .ma-footer__grid {
    grid-template-columns: 1fr;
  }

  .ma-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ma-container {
    width: min(100% - 24px, 1180px);
  }

  .ma-logo {
    min-width: 134px;
  }

  .ma-logo__name {
    font-size: 21px;
  }

  .ma-logo__subtitle {
    font-size: 10px;
  }

  .ma-auth__hero {
    min-height: 360px;
    padding: 28px;
  }

  .ma-card__body,
  .ma-dashboard__hero {
    padding: 22px;
  }

  .ma-form-grid,
  .ma-stat-grid {
    grid-template-columns: 1fr;
  }

  .ma-footer__bottom .ma-container,
  .ma-auth-links {
    flex-direction: column;
  }
}
