.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

.icon-fill {
  font-variation-settings:
    "FILL" 1;
}

body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#mobile-menu {
  transform: translateX(-100%);
}

#mobile-menu.open {
  transform: translateX(0);
}

#drawer-overlay {
  transition:
    opacity 200ms ease,
    visibility 200ms ease;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #94d0e0;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  #mobile-menu {
    width: min(20rem, 88vw);
  }

  table {
    font-size: 0.875rem;
  }

  input {
    min-height: 2.75rem;
  }

  button,
  a {
    min-height: 2.75rem;
  }
}

@media (min-width: 1600px) {
  body {
    font-size: 1.1rem;
  }
}

.calculator-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.calculator-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  text-align: left;
}

.calculator-table th,
.calculator-table td {
  padding: 12px;
  border-bottom: 1px solid #cfc3cc;
  vertical-align: middle;
}

.calculator-table th {
  color: #4c444c;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.calculator-table input {
  width: 100%;
  min-width: 120px;
  padding: 10px;
  color: #161d1f;
  background: #f4fafd;
  border: 1px solid #cfc3cc;
  border-radius: 4px;
}

.calculator-table input:focus {
  border-color: #276675;
  outline: 3px solid rgba(176, 236, 253, 0.6);
}

.row-result {
  min-width: 130px;
  color: #276675;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.calculator-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.calculator-button {
  padding: 12px 20px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.calculator-button-primary {
  color: #ffffff;
  background: #705274;
}

.calculator-button-secondary {
  color: #ffffff;
  background: #276675;
}

.calculator-button-danger {
  color: #ffffff;
  background: #ba1a1a;
}

.calculator-button:hover {
  filter: brightness(0.9);
}

.calculator-button-save {
  color: #ffffff;
  background: #5e5c51;
}

@media (max-width: 600px) {
  .calculator-actions {
    justify-content: stretch;
  }

  .calculator-button {
    flex: 1 1 100%;
  }
}

#mobile-menu {
  transform: translateX(-100%);
  transition: transform 300ms ease;
}

#mobile-menu.open {
  transform: translateX(0);
}

#drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  visibility: hidden;
  background: rgba(22, 29, 31, 0.5);
  opacity: 0;
  transition:
    opacity 200ms ease,
    visibility 200ms ease;
}

#drawer-overlay.visible {
  visibility: visible;
  opacity: 1;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 8px;
  padding: 12px 24px;
  color: #4c444c;
  border-radius: 999px;
  text-decoration: none;
}

.menu-link:hover,
.menu-link.active {
  color: #705274;
  background: #eef5f7;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  color: #ffffff;
  background: #705274;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.back-button:hover {
  background: #593d5e;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #cfc3cc;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(22, 29, 31, 0.08);
}

.contact-link {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  color: #705274;
  background: #eef5f7;
  border: 1px solid #cfc3cc;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

.contact-link:hover {
  color: #ffffff;
  background: #705274;
  transform: translateY(-2px);
}

.technical-support {
  max-width: 720px;
  margin-top: 40px;
  color: #4c444c;
  text-align: center;
}

.technical-support a {
  color: #276675;
  text-decoration: underline;
}

