/* Font Declarations */
@font-face {
  font-family: 'Lucida Sans Unicode';
  src: url('./fonts/Lucida-Sans-Unicode.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lucida Grande';
  src: url('./fonts/LucidaGrande.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lucida Grande Bold';
  src: url('./fonts/LucidaGrandeBold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* Pfizer Brand Colors */
:root {
  --pfizer-blue: #0072CE;
  --pfizer-dark-blue: #0000c9;
  --pfizer-dark-blue-hover: #00009D;
  --pfizer-blue-20: #CFDFFF;
  --pfizer-light-gray: #F5F5F5;
  --pfizer-white: #FFFFFF;
  --pfizer-black: #000000;
  --pfizer-text-dark: #383838;
  --pfizer-text-light: #666666;
  --pfizer-border: #E0E0E0;
  --pfizer-accent: #005A9C;

  /* Font Families */
  --font-family-heading: 'Lucida Grande', sans-serif;
  --font-family-heading-bold: 'Lucida Grande Bold', sans-serif;
  --font-family-heading-italic: 'Lucida Grande', sans-serif;
  --font-family-body: 'Lucida Grande', sans-serif;
  --font-family-body-bold: 'Lucida Grande Bold', sans-serif;

  /* Spacing and Sizing (rem units) */
  --spacing-one: 0.0625rem;
  /* 1px */
  --spacing-xxs: 0.125rem;
  /* 2px */
  --spacing-xs: 0.25rem;
  /* 4px */
  --spacing-sm: 0.5rem;
  /* 8px */
  --spacing-base: 0.875rem;
  /* 14px */
  --spacing-md: 0.75rem;
  /* 12px */
  --spacing-lg: 1rem;
  /* 16px */
  --spacing-xl: 1.25rem;
  /* 20px */
  --spacing-2xl: 1.5rem;
  /* 24px */
  --spacing-3xl: 2rem;
  /* 32px */
  --spacing-4xl: 2.5rem;
  /* 40px */
  --spacing-5xl: 3.75rem;
  /* 60px */

  /* Font Sizes (rem units) */
  --font-xxs: 0.625rem;
  /* 10px */
  --font-xs: 0.75rem;
  /* 12px */
  --font-sm: 0.8125rem;
  /* 13px */
  --font-base: 0.875rem;
  /* 14px */
  --font-md: 0.9375rem;
  /* 15px */
  --font-lg: 1rem;
  /* 16px */
  --font-xl: 1.125rem;
  /* 18px */
  --font-2xl: 1.25rem;
  /* 20px */
  --font-3xl: 1.375rem;
  /* 22px */
  --font-4xl: 1.625rem;
  /* 26px */
  --font-5xl: 2rem;
  /* 32px */
  --font-6xl: 2.25rem;
  /* 36px */
  --font-7xl: 2.5rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  /* 4px */
  --radius-md: 0.375rem;
  /* 6px */
  --radius-lg: 0.5rem;
  /* 8px */
  --radius-xl: 1rem;
  /* 16px */

  /* Heights and Widths */
  --height-sm: 2rem;
  /* 32px */
  --height-md: 2.25rem;
  /* 36px */
  --height-lg: 2.8125rem;
  /* 45px */
  --height-xl: 3.125rem;
  /* 50px */
  --width-xs: 0.375rem;
  /* 6px */
  --width-sm: 2.5rem;
  /* 40px */
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-body);
  color: var(--pfizer-text-dark);
  line-height: 1.4;
  font-size: var(--font-base);
}

/* App Container */
.app {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  background: var(--pfizer-white);
}

/* Header */
.header {
  color: var(--pfizer-dark-blue);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding: var(--spacing-xxs) ;
}

.header-content {
  max-width: 75rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-direction: row;
  justify-content: center;
  text-align: center;
}

.logo {
  height: var(--height-sm);
  width: auto;
}

.header-title {
  font-family: var(--font-family-heading-bold);
  font-size: var(--font-4xl);
}

/* Main Content */
.main {
  flex: 1;
  padding: var(--spacing-xs);
  margin: 0 auto;
  width: 100%;
}

/* Page Styles */
.page {
  background: var(--pfizer-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 var(--spacing-xs) var(--spacing-sm) rgba(0, 0, 0, 0.1);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  border: var(--spacing-one) solid var(--pfizer-border);
}

/* Information Page */
.info-content {
  text-align: left;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.info-header-section {
  background: var(--pfizer-dark-blue);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.info-title-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  width: 100%;
}

.info-title {
  font-family: var(--font-family-heading-bold);
  font-size: var(--font-2xl);
  color: var(--pfizer-white);
  text-align: center;
  margin-bottom: var(--spacing-xs);
  line-height: 1.25;
}

.info-subtitle {
  font-family: var(--font-family-body-bold);
  font-size: var(--font-base);
  color: var(--pfizer-blue);
  margin-bottom: var(--spacing-lg);
}

.info-description {
  font-size: var(--font-xs);
  color: var(--pfizer-white);
  text-align: center;
  line-height: 1.75;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
  max-width: 900px;
  text-align: center;
}

/* Information Page Sections */
.section-title {
  font-family: var(--font-family-heading);
  font-size: var(--font-md);
  color: var(--pfizer-dark-blue);
  padding-bottom: var(--spacing-sm);
  margin: var(--spacing-sm) 0 0;
  line-height: 1.25;
}

.estimator-page .section-title-note-wrapper {
  border-bottom: var(--spacing-xxs) solid var(--pfizer-border);
  display: flex;
  flex-direction: column;
  line-height: 1;
  margin: var(--spacing-sm) 0 var(--spacing-md);
}

.info-page .section-title {
  border-bottom: var(--spacing-xxs) solid var(--pfizer-border);
  margin: var(--spacing-xl) 0 var(--spacing-sm);
}

.main-title {
  font-family: var(--font-family-heading);
  font-size: var(--font-md);
  color: var(--pfizer-dark-blue);
  padding-bottom: var(--spacing-xs);
  line-height: .75;
  margin: var(--spacing-sm) 0;
  transition: ease-in-out 0.3s;
}

.info-text {
  font-size: var(--font-sm);
  color: var(--pfizer-text-dark);
  margin-bottom: var(--spacing-sm);
  line-height: 1.25;
  text-align: left;
}

.periods-list,
.estimation-list {
  margin: var(--spacing-xl) 0;
  padding-left: var(--spacing-xl);
  background: var(--pfizer-blue-20);
  border-radius: var(--radius-md);
  padding: var(--spacing-2xl) var(--spacing-3xl);
}

.periods-list li,
.estimation-list li {
  font-size: var(--font-sm);
  color: var(--pfizer-text-dark);
  line-height: 1.5;
  padding: var(--radius-sm) 0;
}

.periods-list li:last-child,
.estimation-list li:last-child {
  margin-bottom: 0;
}

/* Definitions styling */

.definitions-section h3.section-title {
  background: var(--pfizer-blue-20);
  color: var(--pfizer-text-dark);
  padding: 1rem;
}

.definition-title {
  font-family: var(--font-family-body-bold);
  font-size: var(--font-base);
  color: var(--pfizer-dark-blue);
  padding: var(--spacing-md) 0;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.definition-text {
  font-size: var(--font-sm);
  color: var(--pfizer-text-dark);
  line-height: 1.5;
  border-left: 3px solid var(--pfizer-border);
  background: #fafafa;
  padding: 0 var(--spacing-lg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: var(--spacing-lg);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin: var(--spacing-xl) 0;
}

.feature-card {
  background: var(--pfizer-light-gray);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  text-align: center;
  border: var(--spacing-one) solid var(--pfizer-border);
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-1px);
}

.feature-icon {
  width: var(--width-sm);
  height: var(--width-sm);
  background: var(--pfizer-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  font-size: var(--font-lg);
  color: var(--pfizer-white);
}

.feature-title {
  font-family: var(--font-family-body-bold);
  font-size: var(--font-sm);
  color: var(--pfizer-dark-blue);
  margin-bottom: var(--spacing-xs);
}

.feature-description {
  font-size: var(--font-xs);
  color: var(--pfizer-text-light);
  line-height: 1.4;
}

/* Custom Dropdown Styles */
.custom-dropdown {
  position: relative;
  width: 100%;
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  background-color: #ffffff;
  border: var(--spacing-xxs) solid #e0e0e0;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: var(--font-md);
  box-sizing: border-box;
}

.dropdown-header:hover {
  border-color: var(--pfizer-dark-blue-hover);
  background-color: #f8f9fa;
}

.dropdown-header:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.dropdown-selected {
  flex: 1;
  color: #383838;
  max-height: var(--spacing-xl);
  overflow: hidden;
  font-size: var(--font-sm);
  line-height: 1.6;
}

.dropdown-selected:empty::before {
  content: attr(data-placeholder);
  color: #999999;
  font-weight: normal;
}

.dropdown-arrow {
  color: #666666;
  font-size: var(--font-xs);
  transition: transform 0.3s ease;
  margin-left: var(--spacing-sm);
}

.dropdown-header:hover .dropdown-arrow {
  color: var(--pfizer-dark-blue);
}

/* Rotate arrow when dropdown is open */
.custom-dropdown:not(.hidden) .dropdown-options:not(.hidden)~.dropdown-header .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border: var(--spacing-xs) solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 var(--spacing-xs) var(--spacing-md) rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 15.625rem;
  overflow-y: auto;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-0.625rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-options.hidden {
  display: none;
}

.dropdown-option {
  padding: var(--spacing-md) var(--spacing-lg);
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: var(--spacing-one) solid #f0f0f0;
  font-size: var(--font-lg);
}

.dropdown-option:last-child {
  border-bottom: none;
}

.dropdown-option:hover {
  background-color: #f8f9fa;
  color: var(--pfizer-dark-blue);
}

.dropdown-option.active {
  background-color: var(--pfizer-dark-blue);
  color: #ffffff;
}

.dropdown-option.active:hover {
  background-color: var(--pfizer-dark-blue-hover);
}

/* Disabled dropdown styles */
.custom-dropdown.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.custom-dropdown.disabled .dropdown-header {
  background-color: #f5f5f5;
  border-color: #d6d6d6;
  cursor: not-allowed;
  color: #999999;
}

.custom-dropdown.disabled .dropdown-header:hover {
  background-color: var(--pfizer-blue-20);
  border-color: #d6d6d6;
}

.custom-dropdown.disabled .dropdown-selected {
  color: #999999;
}

.custom-dropdown.disabled .dropdown-arrow {
  color: #999999;
}

/* Placeholder styling for dropdown */
.dropdown-selected.placeholder {
  color: #999999;
  font-style: italic;
}

/* Custom scrollbar for dropdown options */
.dropdown-options::-webkit-scrollbar {
  width: var(--width-xs);
}

.dropdown-options::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.dropdown-options::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.dropdown-options::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.dropdown-option {
  padding: var(--spacing-sm) var(--spacing-base);
  font-size: var(--font-base);
}

.dropdown-options {
  max-height: 12.5rem;
}

/* Focus styles for accessibility */
.dropdown-option:focus {
  outline: 2px solid #0066cc;
  outline-offset: -2px;
  background-color: #f8f9fa;
}

/* Disabled state */
.custom-dropdown.disabled .dropdown-header {
  background-color: #f5f5f5;
  color: #999999;
  cursor: not-allowed;
  border-color: #d0d0d0;
}

.custom-dropdown.disabled .dropdown-header:hover {
  border-color: #d0d0d0;
  background-color: #f5f5f5;
}

.custom-dropdown.disabled .dropdown-selected {
  color: #999999;
}

.custom-dropdown.disabled .dropdown-arrow {
  color: #cccccc;
}

/* Error state */
.custom-dropdown.error .dropdown-header {
  border-color: #dc3545;
}

.custom-dropdown.error .dropdown-header:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Success state */
.custom-dropdown.success .dropdown-header {
  border-color: #28a745;
}

.custom-dropdown.success .dropdown-header:focus {
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}


/* estimator Page */
.estimator-content {
  max-width: 68.75rem;
  margin: 0 auto;
}

.estimator-title {
  font-family: var(--font-family-heading);
  font-size: var(--font-xl);
  color: var(--pfizer-dark-blue);
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

/* Top Controls Section */
.top-controls {
  background: var(--pfizer-dark-blue);
  color: var(--pfizer-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-xl);
}

.controls-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.control-label {
  font-family: var(--font-family-body-bold);
  font-size: 0.6875rem;
  color: var(--pfizer-white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.control-select {
  padding: var(--spacing-sm) var(--spacing-md);
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--font-sm);
  font-family: var(--font-family-body);
  background: var(--pfizer-white);
  color: var(--pfizer-text-dark);
}

.control-select:focus {
  outline: var(--spacing-xs) solid var(--pfizer-blue);
}

/* Results Section */
.results-container {
  background: var(--pfizer-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  border: var(--spacing-one) solid var(--pfizer-border);
}

.results-header {
  background: var(--pfizer-light-gray);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.results-title {
  font-family: var(--font-family-heading);
  font-size: var(--font-base);
  color: var(--pfizer-dark-blue);
  margin-bottom: var(--spacing-xs);
}

.results-subtitle {
  font-size: 0.6875rem;
  color: var(--pfizer-text-light);
  line-height: 1.3;
}

.main-result {
  background: var(--pfizer-blue);
  color: var(--pfizer-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.main-result-text {
  font-size: var(--font-xs);
  margin-bottom: var(--spacing-sm);
  opacity: 0.9;
}

.main-result-value {
  font-family: var(--font-family-heading);
  font-size: var(--font-lg);
  font-weight: 700;
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-sm);
}

.result-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--pfizer-light-gray);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--pfizer-border);
}

.result-label {
  font-size: var(--font-xs);
  color: var(--pfizer-text-dark);
}

.result-value {
  font-family: var(--font-family-body-bold);
  font-size: var(--font-sm);
  color: var(--pfizer-blue);
  text-align: right;
}

/* Section Headers */
.section-header {
  font-family: var(--font-family-body-bold);
  font-size: var(--font-sm);
  color: var(--pfizer-dark-blue);
  margin: var(--spacing-lg) 0 var(--spacing-sm) 0;
  padding-bottom: var(--spacing-xs);
  border-bottom: var(--spacing-one) solid var(--pfizer-border);
}

.btn-container {
  display: flex;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-xl);
  font-family: var(--font-family-body-bold);
  font-size: var(--font-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: var(--spacing-xs);
}

.btn-primary {
  background: var(--pfizer-dark-blue);
  color: var(--pfizer-white);
  border: var(--spacing-one) solid var(--pfizer-blue);
}

.btn-primary:hover {
  background: var(--pfizer-blue);
  border: var(--spacing-one) solid var(--pfizer-blue);
}

.btn-secondary {
  background: var(--pfizer-white);
  color: var(--pfizer-blue);
  border: var(--spacing-one) solid var(--pfizer-blue);
  margin-bottom: var(--font-lg);
}

.btn-secondary:hover {
  background: var(--pfizer-blue-20);
  color: var(--pfizer-dark-blue);
}

/* Information page button container */
.info-content .btn {
  display: block;
  max-width: 12.5rem;
}

/* Footer */
.footer {
  background: var(--pfizer-dark-blue);
  color: var(--pfizer-white);
  padding: var(--spacing-lg);
  text-align: center;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.footer-content {
  max-width: 75rem;
  margin: 0 auto;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.footer-nav button {
  background: none;
  border: none;
  color: var(--pfizer-white);
  font-family: var(--font-family-body);
  font-size: var(--font-xs);
  cursor: pointer;
  transition: color 0.2s ease;
  padding: var(--spacing-xs) var(--spacing-sm);
}

.footer-nav button:hover {
  color: var(--pfizer-blue);
}

/* Utilities */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.asterisk {
  color: red;
  font-weight: bold;
}


/* estimator Page Specific Styles */
.estimator-page {
  margin: 0 auto;
}

.page-title {
  font-family: var(--font-family-heading-bold);
  color: var(--pfizer-white);
  text-align: center;
  line-height: 1.25;
  font-size: var(--font-lg);
  margin-bottom: var(--spacing-sm);
}

.page-subtitle {
  font-size: var(--font-xs);
  line-height: 1.25;
  color: var(--pfizer-white);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  text-align: center;
}

/* Form Styles */
.form-section {
  background: var(--pfizer-dark-blue);
  padding: var(--spacing-lg);
  border-radius: var(--radius-xl);
  margin-bottom: var(--spacing-lg);
  border: var(--spacing-one) solid var(--pfizer-border);
  display: flex;
  flex-direction: column;
}

.form-top-section {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  align-items: center;
}

.estimator-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  padding: var(--spacing-2xl) 0 0;
  border-top: solid var(--spacing-one) #3c3fff;
  margin-top: var(--spacing-sm);
}

.form-group-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-lg);
  flex-direction: column;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  width: 100%;
  flex: 1 1 0;
  min-width: 0;
}

.form-label {
  font-family: var(--font-family-body-bold);
  font-size: var(--font-xs);
  color: var(--pfizer-blue-20);
  font-weight: normal;
  letter-spacing: -.35px;
}

.form-control {
  padding: var(--spacing-sm) var(--spacing-md);
  border: var(--spacing-xxs) solid var(--pfizer-border);
  border-radius: var(--radius-lg);
  font-size: var(--font-sm);
  font-family: var(--font-family-body);
  background: var(--pfizer-white);
  color: var(--pfizer-text-dark);
  transition: border-color 0.2s ease;
  box-sizing: border-box;
  line-height: 1.6;
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--pfizer-blue);
  box-shadow: 0 0 0 3px rgba(0, 114, 206, 0.1);
}

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right var(--spacing-md) center;
  background-repeat: no-repeat;
  background-size: var(--spacing-lg);
  padding-right: var(--spacing-4xl);
  appearance: none;
}

.results-section.hidden {
  display: none;
}

/* Main Output */
.main-output {
  border-bottom: var(--spacing-xxs) solid var(--pfizer-border);
  margin: 0 var(--spacing-md);
}

#main-output-content {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#main-output-content.visible {
  opacity: 1;
}

.main-output-text {
  background: var(--pfizer-blue-20);
  color: var(--pfizer-text-dark);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  font-size: var(--font-base);
  line-height: 1.5;
  margin-bottom: var(--font-md);
}

/* Data Sections */
.data-section {
  padding: var(--spacing-xs) var(--spacing-md);
}

.data-section:last-child {
  border-bottom: none;
}

.section-subtitle {
  font-family: var(--font-family-body-bold);
  font-size: var(--font-sm);
  color: var(--pfizer-text-dark);
  margin-bottom: var(--spacing-md);
  font-weight: bold;
}

.section-note {
  font-size: var(--font-xs);
  color: var(--pfizer-text-light);
  font-style: italic;
}

/* Data Tables */
.data-table {
  border: var(--spacing-one) solid var(--pfizer-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-bottom: var(--spacing-one) solid var(--pfizer-border);
  background: var(--pfizer-white);
  font-size: var(--font-xs);
}

.table-row:last-child {
  border-bottom: none;
}

.table-row:nth-child(even) {
  background: #fafafa;
}

.table-label {
  flex: 1;
  color: var(--pfizer-text-dark);
  padding-right: var(--spacing-md);
  line-height: 1.4;
}

.table-value {
  font-family: var(--font-family-body-bold);
  font-weight: 600;
  color: var(--pfizer-text-dark);
  text-align: right;
  min-width: 3.75rem;
}

.table-subtitle {
  font-family: var(--font-family-body-bold);
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--pfizer-text-dark);
  margin-bottom: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--pfizer-light-gray);
  border: var(--spacing-one) solid var(--pfizer-border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.print-btn-container {
  padding: var(--spacing-xs) var(--spacing-md);
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
}

.sample-size-info {
  font-size: var(--font-xs);
  color: var(--pfizer-blue-20);
  font-style: italic;
  text-align: right;
  display: flex;
  justify-content: flex-end;
  margin-top: var(--spacing-sm);
}

.sample-size-info-text {
  max-width: max-content;
  padding: var(--spacing-sm);
  text-align: right;
  line-height: normal;
}

.result-footnote {
  text-align: right;
  font-size: var(--font-xxs);
  font-style: italic;
}

button:disabled,
button[disabled],
button[aria-disabled="true"] {
  background: var(--pfizer-light-gray);
  color: var(--pfizer-text-light);
  cursor: not-allowed;
}

button:disabled:hover,
button[disabled]:hover,
button[aria-disabled="true"]:hover {
  background: var(--pfizer-light-gray);
  color: var(--pfizer-text-light);
  cursor: not-allowed;
}

input {
  height: 40px;
  font-size: var(--font-md);
  color: var(--pfizer-text-dark);
}


/* Tablet and Desktop */
@media (min-width: 575px) {

  .form-group-row {
    flex-direction: row;
  }
}
@media (min-width: 768px) {
  .app {
    max-width: 1140px;
  }

  .table-row {
    font-size: var(--font-sm);
  }

  .header {
    padding: var(--spacing-lg) var(--spacing-lg) 0;
  }

  .main {
    padding: var(--spacing-lg);
  }

  .header-title {
    font-size: var(--font-5xl);
  }

  .logo {
    height: var(--height-lg);
  }

  .page {
    padding: var(--spacing-lg);
  }

  .definition-title {
    font-size: var(--font-md);
  }

  .estimator-title {
    font-size: var(--font-2xl);
  }

  .controls-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
  }

  .results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  .footer-nav {
    gap: var(--spacing-2xl);
  }

  .table-label {
    padding-right: var(--spacing-lg);
  }

  .table-value {
    min-width: 5rem;
  }

  .info-header-section {
    align-items: flex-start;
  }

  .info-description {
    font-size: var(--font-sm);
    color: var(--pfizer-white);
    text-align: center;
    line-height: 1.75;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
    max-width: 900px;
    text-align: center;
    margin-bottom: var(--spacing-lg);
  }

  .page-title {
    font-size: var(--font-2xl);
    margin-bottom: var(--spacing-lg);
  }

  .page-subtitle {
    font-size: var(--font-sm);
    line-height: 1.5;
  }

  .section-title,
  .main-title {
    font-size: var(--font-xl);
    line-height: .75;
  }

  .estimator-page .section-title-note-wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

.estimator-form {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-lg);
    padding: var(--spacing-2xl) 0 0;
    border-top: solid var(--spacing-one) #3c3fff;
    margin-top: var(--spacing-sm);
}

  .form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
  }
}

@media (min-width: 1024px) {

  .controls-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
  }

  .results-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .main-result {
    padding: var(--spacing-xl);
  }

  .main-result-value {
    font-size: var(--font-xl);
  }
}


.pdf-progress-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.pdf-progress-main {
  color: var(--pfizer-dark-blue);
  font-size: var(--font-3xl);
  font-weight: bold;
  margin-bottom: 1rem;
}

.pdf-progress-sub {
  color: var(--pfizer-dark-blue);
  font-size: var(--font-md);
}

.pdf-loading-dots {
  display: inline-block;
  margin-top: var(--spacing-md);
}

.pdf-loading-dots span {
  display: inline-block;
  width: var(--font-xs);
  height: var(--font-xs);
  margin: 0 2px;
  background: #007bff;
  border-radius: 50%;
  opacity: 0.6;
  animation: loading-dots 1s infinite;
}

.pdf-loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.pdf-loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes loading-dots {

  0%,
  80%,
  100% {
    opacity: 0.6;
  }

  40% {
    opacity: 1;
  }
}


.app.pdf-export .info-text {
  font-size: var(--font-md);
  margin-bottom: var(--spacing-sm);
  line-height: 1.5;
}

.app.pdf-export .main {
  width: 100%;
  padding: 0;
  margin: 0;
  background: var(--pfizer-white);
  box-shadow: none;
}

.app.pdf-export .info-page,
.app.pdf-export .estimator-page {
  width: 100%;
  box-shadow: none;
  margin-bottom: 0;
  margin: 0;
}

.app.pdf-export .estimator-form, .app.pdf-export .form-group-row {
  flex-direction: row;
}

.app.pdf-export .table-row {
  padding: var(--radius-md) var(--spacing-md);
}

.app.pdf-export .main-output-text {
  background: var(--pfizer-blue-20);
  color: var(--pfizer-text-dark);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  font-size: var(--font-sm);
  line-height: 1.25;
  margin: var(--spacing-sm) 0;
  padding: var(--spacing-md);
  font-size: var(--font-sm);
}

.app.pdf-export .main-output {
  padding: 0;
}

.app.pdf-export .info-page .section-title {
  border-bottom: var(--spacing-xxs) solid var(--pfizer-border);
  margin: var(--spacing-xl) 0;
}

.app.pdf-export button,
.app.pdf-export .dropdown-arrow {
  opacity: 0;
}

.app.pdf-export {
  width: 1340px;
  max-width: 1340px;
  margin: 0 auto;
  background: var(--pfizer-white);
}

/* Print styles for Safari and all browsers */
@media print {
  body, html {
    background: #fff !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .app, .main, .info-page, .estimator-page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }
  .header, .footer, .btn, .print-btn-container, .dropdown-arrow {
    display: none !important;
  }
  .results-section, .main-output, .data-section, .data-table {
    box-shadow: none !important;
    background: #fff !important;
    color: #000 !important;
    border-color: #ccc !important;
  }
  .main-output-text, .table-row, .table-label, .table-value {
    color: #000 !important;
    background: #fff !important;
  }
  /* Remove sticky/fixed overlays */
  .pdf-progress-overlay {
    display: none !important;
  }
}

