:root {
  --brand-gradient-consistent: linear-gradient(135deg, #f15a29 0%, #c6392d 33%, #7d2844 66%, #264066 100%);
  --font-serif: 'Merriweather', serif;
  --font-sans: 'Montserrat', sans-serif;

  --brand-700: #264066;
  --brand-600: #7d2844;
  --brand-500: #c6392d;
  --brand-400: #f15a29;
  --brand-300: #fcd5ce;

  --bg: #FFFFFF;
  --text: #1F2937;
  --muted: #6B7280;
  --border: #E5E7EB;
  --surface: #F8FAFC;
  --card: #FFFFFF;
  --shadow: 0 6px 28px rgba(18, 18, 18, .08);
  --focus: 0 0 0 3px rgba(125, 40, 68, .25);
  --border-light: #E5E7EB;

  --hst-rate: 0.13;
}

body {
  margin: 0;
  padding: 40px 20px;
  font-family: var(--font-sans);
  background: var(--brand-400);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

html,
body {
  height: 100%;
}

.main-wrapper {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
}

.container {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 40px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-sizing: border-box;
}

.header-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.firm-logo {
  height: 48px;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}

.firm-logo:hover {
  transform: scale(1.05);
}

h1.title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 2.2rem;
  background: var(--brand-gradient-consistent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

/* Form Elements */
label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
  text-align: left;
  font-size: 0.95rem;
}

.checkbox-label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  margin-bottom: 1rem;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.checkbox-label:hover {
  background: rgba(0, 0, 0, 0.03);
}

input:not([type="checkbox"]),
.input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  font-size: 1rem;
  font-family: var(--font-sans);
  background: var(--card);
  color: var(--text);
  margin-bottom: 1.25rem;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

input:not([type="checkbox"]):focus,
.input:focus {
  outline: none;
  border-color: var(--brand-600);
  background: var(--card);
  box-shadow: 0 0 0 4px rgba(125, 40, 68, 0.1);
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--brand-600);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

input[type="checkbox"]:checked {
  transform: scale(1.1);
}

/* Buttons */
.toggle-container {
  display: flex;
  background: var(--surface);
  padding: 6px;
  border-radius: 14px;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.toggle-container button {
  flex: 1;
  padding: 12px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.toggle-container button.active {
  background: var(--card);
  color: var(--brand-600);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-brand,
button.calculate-btn {
  width: 100%;
  padding: 16px;
  background: var(--brand-gradient-consistent);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(125, 40, 68, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 1rem;
}

.btn-brand:hover,
button.calculate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(125, 40, 68, 0.2);
}

.btn-brand:active,
button.calculate-btn:active {
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

.error-message {
  margin: 0 0 20px 0;
  padding: 12px 16px;
  border: 1px solid rgba(161, 43, 61, .45);
  background: rgba(161, 43, 61, .08);
  color: #7a1a28;
  border-radius: 10px;
  font-size: 14px;
}

/* Shimmer Effect */
@keyframes shimmer-pass {
  0% {
    left: -30%;
  }

  100% {
    left: 130%;
  }
}

.calculate-btn {
  position: relative;
  overflow: hidden;
}

.calculate-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  pointer-events: none;
}

.calculate-btn.shimmer::after {
  animation: shimmer-pass 1s ease-in-out;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-6px);
  }

  40% {
    transform: translateX(6px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }
}

.shake {
  animation: shake 0.4s ease-in-out;
}

/* Hints adjustments */
.helper-text-styled {
  font-size: 0.85em;
  color: var(--muted);
  margin-top: -12px;
  margin-bottom: 16px;
  text-align: left;
  font-style: italic;
}

/* Print styles */
@media print {
  body {
    background: none;
    color: #000;
    box-shadow: none;
    animation: none;
    padding: 0;
  }

  .container {
    box-shadow: none;
    border: none;
    max-width: 100%;
    padding: 0;
  }
}