:root {
  --brand: #004b55;
  --brand-soft: #37b4c8;
  --text: #0f1f24;
  --muted: #8b9499;
  --line: #dce3e6;
  --bg-soft: #f8f9fa;
  --white: #ffffff;
  --disabled: #c7c9c7;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background: #f2f2f2;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1170px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar-dark {
  background: var(--brand);
  color: var(--white);
}

.topbar-main {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-mark {
  width: 56px;
  height: 43px;
  display: block;
}

.user-box {
  text-align: left;
}

.user-box p {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  transform: scale(0.45);
  transform-origin: right center;
}

.user-box a {
  display: block;
  margin-top: -6px;
  font-size: 30px;
  line-height: 1.1;
  opacity: 0.9;
  transform: scale(0.45);
  transform-origin: right center;
}

.topbar-light {
  background: #f5f5f5;
  border-bottom: 1px solid #d6d6d6;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.12);
}

.topbar-menu {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn {
  border: 0;
  background: transparent;
  color: var(--brand);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
  min-width: 24px;
}

.icon-btn span {
  width: 24px;
  height: 3px;
  border-radius: 4px;
  background: currentColor;
  display: block;
}

.service-nav {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  white-space: nowrap;
  width: 100%;
  scrollbar-width: thin;
}

.service-nav::-webkit-scrollbar {
  height: 0;
}

.service-nav a {
  font-size: 14px;
  color: #004b55;
  font-weight: 500;
  padding-right: 18px;
  margin-right: 18px;
  position: relative;
}

.service-nav a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 2px;
  width: 1px;
  height: 24px;
  background: #dadada;
}

.service-nav a:first-child {
  font-weight: 700;
}

.main-content {
  padding: 16px 0 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: #5aa9ba;
  font-size: 14px;
  font-weight: 500;
}

.breadcrumb span {
  color: #9db4bc;
  font-size: 13px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 482px 562px;
  justify-content: space-between;
  gap: 36px;
}

.panel {
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(34, 60, 80, 0.12);
  overflow: hidden;
  border: 1px solid #ebedef;
}

.panel-bar {
  height: 18px;
  background: var(--brand);
}

.panel-body {
  padding: 38px 46px 44px;
}

.panel-right .panel-body {
  padding: 38px 44px 30px;
}

.panel h1,
.panel h2 {
  margin: 0;
  text-align: center;
  font-size: 18px;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.panel-right h2 {
  text-align: left;
}

.lead {
  margin: 24px 0 42px;
  color: #9a9a9a;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}

.lead-center {
  text-align: center;
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
}

.field {
  display: block;
  margin-bottom: 18px;
}

.field span {
  display: block;
  margin-bottom: 10px;
  color: #004b55;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.field input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 16px;
  color: #27251f;
  background: #fff;
}

.field input:focus {
  outline: 0;
  border-color: #0a646f;
  box-shadow: 0 0 0 2px rgba(55, 180, 200, 0.18);
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  color: #68b7c7;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.remember input {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #8ad2df;
  background: #52c3d7;
  position: relative;
  margin: 0;
}

.remember input::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  top: 4px;
  left: 3px;
}

.btn-primary {
  margin-top: 22px;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--disabled);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: not-allowed;
}

.btn-primary.enabled,
.btn-primary:not(:disabled) {
  background: var(--brand-soft);
  cursor: pointer;
}

.login-call {
  margin: 24px 0 22px;
  color: #999999;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}

.login-call a {
  color: #5ab0c2;
  text-decoration: underline;
}

.cards-top {
  display: flex;
  gap: 16px;
  margin-top: 0;
}

.service-card {
  border: 1px solid #c7c9c7;
  border-radius: 16px;
  background: #ffffff;
  color: var(--brand);
}

.service-card.small {
  width: 142px;
  min-height: 146px;
  padding: 11px 0 11px 14px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.service-card.small h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 15px;
  white-space: normal;
  width: auto;
}

.service-card.small p {
  margin: 0;
  color: #004b55;
  font-size: 10px;
  font-weight: 500;
  line-height: 12px;
  width: auto;
}

.service-card.small > div:last-child {
  max-width: 88px;
  display: grid;
  gap: 4px;
}

.card-icon {
  width: 24px;
  height: 24px;
}

.service-card.small .card-icon {
  width: auto;
  height: auto;
  min-width: 16px;
  min-height: 16px;
}

.service-card.small .card-icon img,
.service-card.small .card-icon svg {
  width: auto;
  height: auto;
  max-width: 29px;
  max-height: 25px;
}

.card-icon img,
.card-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.service-card.featured {
  margin-top: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-color: var(--brand);
  background: #005764;
  color: #ffffff;
  min-height: 112px;
  padding: 11px 20px 11px 14px;
}

.service-card.featured .card-icon img,
.service-card.featured .card-icon svg {
  filter: none;
}

.service-card.featured h3 {
  margin: 2px 0 8px;
  color: #ffffff;
  font-size: 34px;
  transform: scale(0.42);
  transform-origin: left center;
  white-space: nowrap;
  line-height: 1.1;
}

.service-card.featured p {
  margin: 0;
  color: #ffffff;
  font-size: 29px;
  transform: scale(0.42);
  transform-origin: left top;
  line-height: 1.2;
}

.footer {
  margin-top: 20px;
  background: var(--bg-soft);
  border-top: 1px solid #d8dfe3;
  padding: 22px 0 18px;
}

.footer-top,
.footer-mid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.logo {
  font-size: 24px;
  color: var(--brand);
  font-weight: 700;
}

.city-select {
  width: 170px;
}

.city-select label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #6a7279;
}

.city-select select {
  width: 100%;
  height: 32px;
  border: 1px solid #c7c9c7;
  border-radius: 5px;
  padding: 0 9px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #999999;
  background: transparent;
}

.footer-mid {
  margin-top: 18px;
}

.footer-mid p {
  margin: 0;
  color: #6a7279;
  font-size: 13px;
}

.socials {
  display: flex;
  gap: 8px;
}

.socials a {
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #cfd8dc;
  color: #4d5d63;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  background: var(--white);
}

.footer-links {
  margin-top: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #6a7279;
  font-size: 13px;
}

.footer-links a {
  color: #5f6f75;
}

.captcha-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: #8a9499;
}

.chat-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  font-size: 0;
  background: #1f1f26;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 20;
}

.chat-float::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 18px;
  border: 2px solid #ffffff;
  border-radius: 10px;
  left: 17px;
  top: 17px;
}

.chat-float::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg);
  left: 24px;
  top: 30px;
}

.page-faturas .faturas-main {
  padding-top: 16px;
}

.page-faturas .user-box {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.page-faturas .user-box-text {
  display: grid;
}

.page-faturas .user-box p {
  margin: 0;
  font-size: 14px;
  line-height: 17px;
  font-weight: 600;
  color: #ffffff;
  transform: none;
}

.page-faturas .user-box a {
  margin: 0;
  font-size: 14px;
  line-height: 17px;
  font-weight: 400;
  color: #c7c9c7;
  opacity: 1;
  transform: none;
}

.page-faturas .user-box-toggle {
  width: 16px;
  height: 9px;
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.faturas-wrap {
  display: flex;
  justify-content: center;
}

.faturas-card {
  width: 700px;
  background: #fff;
  border: 1px solid #d5d6d8;
  border-radius: 18px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.11);
  overflow: hidden;
}

.faturas-topbar {
  height: 18px;
  background: #005766;
}

.faturas-card h1 {
  margin: 16px 80px;
  font-size: 28px;
  line-height: 42px;
  color: #004b55;
  font-weight: 400;
  white-space: nowrap;
}

.faturas-content {
  border-top: 1px solid #cfd3d6;
  padding: 26px 80px 56px;
}

.faturas-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tab-btn {
  height: 28px;
  border-radius: 8px;
  border: 1px solid #004b55;
  background: #fff;
  color: #004b55;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
}

.tab-btn.active {
  background: #004b55;
  color: #fff;
}

.faturas-subtitle {
  margin: 16px 0 0;
  color: #8f9094;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  white-space: nowrap;
}

.bill-card {
  display: flex;
  margin-top: 16px;
  border: 1px solid #d9dbde;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.bill-left {
  width: 9px;
  background: #8c1f27;
}

.bill-main {
  flex: 1;
  padding: 0;
}

.bill-row-top,
.bill-row-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bill-row-top {
  min-height: 33px;
  padding: 8px 14px 7px 14px;
}

.bill-month {
  color: #c2c3c7;
  font-size: 12px;
  line-height: 15px;
  font-weight: 500;
  text-transform: none;
}

.bill-due {
  color: #6f262b;
  font-size: 12px;
  line-height: 15px;
  font-weight: 600;
}

.bill-divider {
  height: 1px;
  margin: 0 14px;
  background: #e0e3e6;
}

.bill-row-bottom {
  min-height: 54px;
  padding: 8px 12px 8px 14px;
}

.bill-value {
  color: #6f262b;
  font-size: 28px;
  line-height: 33px;
  font-weight: 700;
  letter-spacing: -0.6px;
}

.bill-pay {
  min-width: 102px;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: #eceff1;
  color: #161616;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  line-height: 17px;
  font-family: inherit;
  font-weight: 300;
}

.bill-pay svg {
  flex: 0 0 auto;
}

.faturas-back {
  display: block;
  margin: 30px auto 0;
  border: 0;
  background: transparent;
  color: #999999;
  font-size: 17px;
  line-height: 21px;
  font-weight: 600;
  font-family: inherit;
}

.page-faturas .logo-igua-footer {
  width: 170px;
  height: 56px;
  display: block;
}

.page-pagamento .user-box {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.page-pagamento .user-box-text {
  display: grid;
}

.page-pagamento .user-box p {
  margin: 0;
  font-size: 14px;
  line-height: 17px;
  font-weight: 600;
  color: #ffffff;
  transform: none;
}

.page-pagamento .user-box a {
  margin: 0;
  font-size: 14px;
  line-height: 17px;
  font-weight: 400;
  color: #c7c9c7;
  opacity: 1;
  transform: none;
}

.page-pagamento .user-box-toggle {
  width: 16px;
  height: 9px;
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pagamento-main {
  padding-top: 16px;
}

.pagamento-wrap {
  display: flex;
  justify-content: center;
}

.pagamento-card {
  width: 1012px;
  background: #ffffff;
  border: 1px solid #d9dddf;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 8px 20px rgba(24, 54, 68, 0.18);
  overflow: hidden;
  padding: 0 0 10px;
}

.pagamento-topbar {
  height: 30px;
  background: #005766;
}

.pagamento-card h1 {
  margin: 30px 40px 0;
  text-align: left;
  color: #004b55;
  font-size: 28px;
  line-height: 42px;
  font-weight: 400;
}

.pagamento-card h2 {
  margin: 32px 0 0;
  padding: 0 40px;
  text-align: left;
  color: #004b55;
  font-size: 18px;
  line-height: 27px;
  font-weight: 600;
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
}

.pagamento-card h2::before,
.pagamento-card h2::after {
  content: "";
  height: 1px;
  background: #d5dadd;
  flex: 1 1 auto;
}

.pagamento-card h2::before {
  max-width: 78px;
}

.pagamento-label {
  margin: 34px 40px 0;
  text-align: left;
  color: #8f9094;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 18px 40px 0;
}

.payment-method {
  height: 46px;
  border: 1px solid #dde1e4;
  border-radius: 8px;
  background: #ffffff;
  color: #004b55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 12px;
  line-height: 15px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.payment-method-credit .payment-method-icon {
  color: #0e6070;
}

.payment-method-boleto .payment-method-icon {
  color: #1a1a1a;
}

.payment-method.active {
  border-color: #004b55;
  box-shadow: inset 0 0 0 1px #004b55;
  background: #ffffff;
}

.payment-method-icon {
  display: inline-flex;
  color: currentColor;
}

.payment-method-icon svg {
  width: 24px;
  height: 24px;
}

.payment-method.active .payment-method-icon {
  color: #4fcfe0;
}

.payment-total-bar {
  margin-top: 22px;
  padding: 0 28px 0 40px;
  background: #f3f4f5;
  border-top: 1px solid #e3e6e8;
  border-bottom: 1px solid #e3e6e8;
}

.payment-total {
  margin: 0;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: #70757a;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  gap: 4px;
}

.payment-total strong {
  color: #5f6c73;
  font-weight: 700;
}

.pix-panel {
  margin: 24px 40px 0;
  display: grid;
  grid-template-columns: 294px 1fr;
  gap: 20px;
  align-items: start;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.pix-qr-frame {
  width: 290px;
  height: 220px;
  position: relative;
}

.pix-qr-box::before,
.pix-qr-box::after,
.pix-qr::before,
.pix-qr::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: #c3c9cc;
  border-style: solid;
  pointer-events: none;
}

.pix-qr-box::before {
  top: -18px;
  left: -18px;
  border-width: 3px 0 0 3px;
  border-radius: 16px 0 0 0;
}

.pix-qr-box::after {
  top: -18px;
  right: -18px;
  border-width: 3px 3px 0 0;
  border-radius: 0 16px 0 0;
}

.pix-qr {
  width: 290px;
  height: 220px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: #ffffff;
  position: relative;
  display: grid;
  place-items: center;
}

.pix-qr::before {
  left: 42px;
  bottom: 11px;
  border-width: 0 0 3px 3px;
  border-radius: 0 0 0 16px;
}

.pix-qr::after {
  right: 42px;
  bottom: 11px;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 16px 0;
}

.pix-qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pix-qr-box {
  position: relative;
  width: 160px;
  height: 160px;
}

.pix-qr img {
  display: block;
  width: 160px;
  height: 160px;
  margin: 0;
}

.pix-instructions {
  max-width: none;
  border: 1px solid #d9dddf;
  background: #fcfcfc;
  min-height: 220px;
}

.pix-instructions h3 {
  margin: 0;
  padding: 7px 22px;
  background: #a7deea;
  color: #004b55;
  font-size: 17px;
  line-height: 22px;
  font-weight: 700;
  white-space: nowrap;
}

.pix-instructions-body {
  padding: 30px 22px 16px;
  min-height: 190px;
}

.pix-instructions p {
  margin: 0 0 8px;
  color: #33515b;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.pix-instructions .pix-note {
  margin-top: 54px;
  color: #7c8489;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
}

.pix-code-box {
  margin: 18px 40px 0;
  border: 1px solid #d8dcde;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  align-items: center;
}

.pix-code-content {
  min-width: 0;
}

.pix-code-title {
  display: block;
  margin-bottom: 6px;
  color: #004b55;
  font-size: 12px;
  line-height: 15px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.pix-code-content p {
  margin: 0;
  color: #6e7277;
  font-size: 10px;
  line-height: 15px;
  word-break: break-all;
}

.pix-copy {
  flex: 0 0 auto;
  min-width: 88px;
  height: 31px;
  border: 0;
  border-radius: 8px;
  background: #eceff1;
  color: #1e2427;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.payment-alert {
  margin: 16px 40px 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #9b6b02;
}

.payment-alert-icon {
  display: inline-flex;
  margin-top: 1px;
}

.payment-alert-title {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 17px;
  font-weight: 700;
}

.payment-alert-text {
  margin: 0;
  color: #866d34;
  font-size: 13px;
  line-height: 19px;
  font-weight: 500;
}

.payment-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 40px 0;
  padding-bottom: 18px;
}

.payment-back,
.payment-download {
  height: 40px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  line-height: 17px;
}

.payment-back {
  min-width: 126px;
  border: 1px solid #c9d0d3;
  background: #ffffff;
  color: #80878d;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.payment-download {
  min-width: 250px;
  border: 0;
  background: #d9dcdf;
  color: #fefefe;
  font-weight: 600;
}

.payment-download:disabled {
  cursor: not-allowed;
}

.page-pagamento .logo-igua-footer {
  width: 170px;
  height: 56px;
  display: block;
}

@media (max-width: 1200px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .cards-top {
    flex-wrap: wrap;
  }

  .service-card.small {
    width: calc(50% - 8px);
    min-width: 160px;
  }
}

@media (max-width: 980px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .panel-body {
    padding: 26px 24px;
  }

  .service-card.small {
    width: 100%;
  }

  .chat-float {
    right: 12px;
    bottom: 12px;
  }

  .payment-methods,
  .pix-panel,
  .payment-actions,
  .pix-code-box {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .pix-copy,
  .payment-download,
  .payment-back {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(1170px, calc(100% - 20px));
  }

  .topbar-main,
  .topbar-menu {
    min-height: 58px;
  }

  .logo-mark {
    width: 48px;
    height: 37px;
  }

  .footer-top,
  .footer-mid {
    flex-direction: column;
    align-items: flex-start;
  }

  .city-select {
    width: 100%;
  }

  .pagamento-card {
    width: 100%;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }

  .pix-panel,
  .pix-code-box {
    padding: 16px;
  }
}
