/* ==========================================================================
   FREE PR & POINTS ASSESSMENT CALCULATOR TOOL STYLES (CANADA, AUSTRALIA & NZ)
   ========================================================================== */

.crs-calc-section,
.gsm-calc-section,
.smc-calc-section {
  background: var(--bg-slate);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 5rem 0;
  position: relative;
}

.crs-calc-header,
.gsm-calc-header,
.smc-calc-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3rem;
}

.crs-calc-header h2,
.gsm-calc-header h2,
.smc-calc-header h2 {
  font-family: var(--font-heading, 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.crs-calc-header p,
.gsm-calc-header p,
.smc-calc-header p {
  color: var(--text-muted);
  font-size: 1.025rem;
  line-height: 1.6;
}

.crs-calc-layout,
.gsm-calc-layout,
.smc-calc-layout {
  display: grid;
  grid-template-columns: 1.22fr 0.88fr;
  gap: 2.75rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

/* Calculator Form Card */
.crs-form-card,
.gsm-form-card,
.smc-form-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.25rem;
  box-shadow: 0 10px 30px -5px rgba(6, 43, 30, 0.06);
  position: relative;
}

.crs-form-header,
.gsm-form-header,
.smc-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.crs-form-header-badge,
.gsm-form-header-badge,
.smc-form-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.crs-form-header-badge {
  background: #fef2f2;
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #dc2626;
}

.gsm-form-header-badge {
  background: #fffbeb;
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #b45309;
}

.smc-form-header-badge {
  background: #f0fdf4;
  border: 1px solid rgba(5, 150, 105, 0.35);
  color: #047857;
}

.crs-form-title,
.gsm-form-title,
.smc-form-title {
  font-family: var(--font-heading, 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.crs-form-fields,
.gsm-form-fields,
.smc-form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.crs-form-group,
.gsm-form-group,
.smc-form-group {
  display: flex;
  flex-direction: column;
}

.crs-label-row,
.gsm-label-row,
.smc-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.crs-field-label,
.gsm-field-label,
.smc-field-label {
  font-weight: 700;
  color: var(--primary-navy);
  font-size: 0.915rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.crs-field-step,
.gsm-field-step,
.smc-field-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.crs-field-step {
  background: #ecfdf5;
  color: #047857;
}

.gsm-field-step {
  background: #eff6ff;
  color: #1d4ed8;
}

.smc-field-step {
  background: #ecfdf5;
  color: #047857;
}

.crs-field-hint,
.gsm-field-hint,
.smc-field-hint {
  font-size: 0.765rem;
  color: var(--text-muted);
  font-weight: 500;
}

.crs-select-wrap,
.gsm-select-wrap,
.smc-select-wrap {
  position: relative;
}

.crs-select,
.gsm-select,
.smc-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  color: var(--text-dark);
  font-family: inherit;
  font-size: 0.915rem;
  font-weight: 500;
  line-height: 1.45;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

.crs-select:focus,
.smc-select:focus {
  outline: none;
  border-color: #047857;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.gsm-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Sticky Live Score Card */
.crs-sticky-col,
.gsm-sticky-col,
.smc-sticky-col {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.crs-score-card,
.gsm-score-card,
.smc-score-card {
  background: linear-gradient(145deg, #091a13 0%, #062b1e 55%, #1e3a8a 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  color: #ffffff;
  box-shadow: 0 14px 34px -5px rgba(6, 43, 30, 0.35);
  position: relative;
  overflow: hidden;
}

.smc-score-card {
  background: linear-gradient(145deg, #091a13 0%, #062b1e 50%, #0d5f49 100%);
  border-color: rgba(5, 150, 105, 0.4);
}

.crs-score-card::before,
.gsm-score-card::before,
.smc-score-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.crs-score-card-header,
.gsm-score-card-header,
.smc-score-card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.crs-score-badge,
.gsm-score-badge,
.smc-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #fde68a;
  font-size: 0.785rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.65rem;
}

.crs-score-title,
.gsm-score-title,
.smc-score-title {
  font-family: var(--font-heading, 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.crs-score-display,
.gsm-score-display,
.smc-score-display {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin: 1.25rem 0;
}

.crs-score-num,
.gsm-score-num,
.smc-score-num {
  font-family: var(--font-heading, 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}

.crs-score-max,
.gsm-score-max,
.smc-score-max {
  font-size: 1.15rem;
  color: #cbd5e1;
  font-weight: 600;
}

.smc-status-banner {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fde68a;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.crs-feedback-box,
.gsm-feedback-box,
.smc-feedback-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-bottom: 1.35rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #e2e8f0;
}

/* Category Benchmark Card */
.crs-category-benchmark {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.15rem;
  font-size: 0.85rem;
  color: #f1f5f9;
}
.crs-benchmark-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--accent-gold);
}
.crs-benchmark-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.crs-benchmark-badge.high {
  background: #10b981;
  color: #ffffff;
}
.crs-benchmark-badge.moderate {
  background: #f59e0b;
  color: #1e293b;
}
.crs-benchmark-badge.boost {
  background: #ef4444;
  color: #ffffff;
}

/* Booster Simulator Box */
.crs-booster-panel {
  background: rgba(15, 23, 42, 0.5);
  border: 1px dashed rgba(212, 175, 55, 0.5);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}
.crs-booster-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}
.crs-booster-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.825rem;
  color: #e2e8f0;
  cursor: pointer;
  margin-bottom: 0.45rem;
}
.crs-booster-item:last-child {
  margin-bottom: 0;
}
.crs-booster-item input[type="checkbox"] {
  accent-color: var(--accent-gold);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.crs-booster-sim-score {
  font-size: 0.85rem;
  color: #6ee7b7;
  font-weight: 700;
  margin-top: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

/* Australia Subclass Multi-Visa Grid */
.au-subclass-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 480px) {
  .au-subclass-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}
.au-subclass-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.55rem;
  text-align: center;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
  cursor: pointer;
  user-select: none;
}
.au-subclass-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.5);
}
.au-subclass-card.active {
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.14);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}
.au-subclass-name {
  font-size: 0.735rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
}
.au-subclass-pts {
  font-family: var(--font-heading, 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}
.au-subclass-card.active .au-subclass-pts {
  color: var(--accent-gold);
}
.au-subclass-state {
  font-size: 0.685rem;
  font-weight: 700;
  margin-top: 0.25rem;
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  display: inline-block;
}
.au-subclass-state.pass {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
}
.au-subclass-state.border {
  background: rgba(245, 158, 11, 0.25);
  color: #fde68a;
}
.au-subclass-state.fail {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

/* Direct WhatsApp Consult Button in Calculator Cards */
.btn-calc-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.72rem 1rem;
  border-radius: var(--radius-md);
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.885rem;
  text-decoration: none;
  margin-top: 0.45rem;
  transition: background 0.2s, transform 0.15s;
}
.btn-calc-wa:hover {
  background: #20bd5a;
  color: #ffffff;
  transform: translateY(-1px);
}

/* SMC Audit Breakdown Card */
.smc-breakdown-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-bottom: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.smc-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.smc-breakdown-label {
  color: #cbd5e1;
}

.smc-breakdown-val {
  font-weight: 700;
  color: #ffffff;
}

.crs-perks-list,
.gsm-perks-list,
.smc-perks-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.crs-perk-item,
.gsm-perk-item,
.smc-perk-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.crs-perk-icon,
.gsm-perk-icon,
.smc-perk-icon {
  color: #d4af37;
  flex-shrink: 0;
}

.crs-cta-btn,
.gsm-cta-btn,
.smc-cta-btn {
  width: 100%;
  justify-content: center;
}

.crs-wa-btn,
.gsm-wa-btn,
.smc-wa-btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.crs-trust-meta,
.gsm-trust-meta,
.smc-trust-meta {
  text-align: center;
  font-size: 0.775rem;
  color: #94a3b8;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* Strategic Tip Card */
.crs-tip-card,
.gsm-tip-card,
.smc-tip-card {
  background: var(--bg-white);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 0.835rem;
  color: var(--text-dark);
  line-height: 1.55;
  box-shadow: 0 4px 14px -2px rgba(6, 43, 30, 0.04);
}

.crs-tip-card strong,
.gsm-tip-card strong,
.smc-tip-card strong {
  color: var(--primary-navy);
}

/* Metrics Ribbon Strip */
.crs-metrics-strip,
.gsm-metrics-strip,
.smc-metrics-strip {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  box-shadow: 0 4px 16px -2px rgba(6, 43, 30, 0.04);
}

.crs-metric-col,
.gsm-metric-col,
.smc-metric-col {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-right: 1px solid var(--border-color);
  padding-right: 1.25rem;
}

.crs-metric-col:last-child,
.gsm-metric-col:last-child,
.smc-metric-col:last-child {
  border-right: none;
  padding-right: 0;
}

.crs-metric-icon,
.gsm-metric-icon,
.smc-metric-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.crs-metric-icon {
  background: #fef2f2;
  color: #dc2626;
}

.gsm-metric-icon {
  background: #eff6ff;
  color: #1d4ed8;
}

.smc-metric-icon {
  background: #ecfdf5;
  color: #047857;
}

.crs-metric-val,
.gsm-metric-val,
.smc-metric-val {
  font-family: var(--font-heading, 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.2;
}

.crs-metric-sub,
.gsm-metric-sub,
.smc-metric-sub {
  font-size: 0.765rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 0.15rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .crs-calc-layout,
  .gsm-calc-layout,
  .smc-calc-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .crs-sticky-col,
  .gsm-sticky-col,
  .smc-sticky-col {
    position: static;
  }
  .crs-metrics-strip,
  .gsm-metrics-strip,
  .smc-metrics-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .crs-metric-col:nth-child(2),
  .gsm-metric-col:nth-child(2),
  .smc-metric-col:nth-child(2) {
    border-right: none;
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .crs-form-card,
  .gsm-form-card,
  .smc-form-card {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-lg);
  }
  .crs-calc-header h2,
  .gsm-calc-header h2,
  .smc-calc-header h2 {
    font-size: 1.65rem;
  }
  .crs-score-card,
  .gsm-score-card,
  .smc-score-card {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-lg);
  }
  .crs-score-num,
  .gsm-score-num,
  .smc-score-num {
    font-size: 3.25rem;
  }
  .crs-metrics-strip,
  .gsm-metrics-strip,
  .smc-metrics-strip {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem;
  }
  .crs-metric-col,
  .gsm-metric-col,
  .smc-metric-col {
    border-right: none !important;
    padding-right: 0 !important;
  }
}

/* ==============================================================================
   CANADA PR PRELIMINARY ASSESSMENT REPORT & REDESIGNED CREDENTIALS CARD
   ============================================================================== */
.crs-fieldset {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem;
  margin-bottom: 1.25rem;
  transition: border-color var(--transition-fast);
}

.crs-fieldset:hover {
  border-color: #cbd5e1;
}

.crs-fieldset-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading, 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-navy);
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.crs-step-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-navy);
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.crs-fieldset-badge {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.crs-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.crs-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.crs-form-group {
  min-width: 0;
}

.crs-select,
.crs-input {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 768px) {
  .crs-grid-2,
  .crs-grid-3 {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.crs-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  color: var(--text-dark);
  font-family: inherit;
  font-size: 0.915rem;
  font-weight: 500;
  line-height: 1.45;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.crs-input:focus {
  outline: none;
  border-color: #047857;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.crs-band-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.crs-band-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  font-size: 0.825rem;
  color: var(--text-muted);
}

.crs-band-pill strong {
  color: var(--primary-navy);
}

.crs-sample-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--primary-navy);
  font-size: 0.785rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.crs-sample-btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

/* Dual Meters on Live Card */
.crs-dual-meters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

@media (max-width: 480px) {
  .crs-dual-meters {
    grid-template-columns: 1fr;
  }
}

.crs-meter-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.crs-meter-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.crs-meter-val {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.crs-num-accent {
  font-family: var(--font-heading, 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
  font-size: 2.35rem;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1;
}

.crs-score-card .crs-score-num {
  font-size: 2.35rem;
}

.crs-max-denom {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 600;
}

.crs-fsw-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 0.15rem 0.5rem;
  margin-top: 0.45rem;
  width: fit-content;
}

.crs-fsw-pill.pass {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.crs-fsw-pill.fail {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.crs-crs-subtext {
  font-size: 0.75rem;
  color: #cbd5e1;
  margin-top: 0.45rem;
  line-height: 1.35;
}

.btn-report-primary {
  width: 100%;
  background: linear-gradient(135deg, #d4af37 0%, #b89628 100%);
  color: #062b1e !important;
  font-weight: 800 !important;
  font-size: 0.95rem;
  padding: 0.9rem 1.15rem;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  margin-bottom: 0.65rem;
  text-decoration: none;
}

.btn-report-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(212, 175, 55, 0.4);
}

/* ==============================================================================
   REPORT MODAL & A4 VIEWER STYLES
   ============================================================================== */
.report-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.report-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 43, 30, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1;
}

.report-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  background: #1e293b;
  overflow: hidden;
}

.report-modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.75rem;
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  flex-shrink: 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.toolbar-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toolbar-flag {
  font-size: 1.75rem;
  line-height: 1;
}

.toolbar-title {
  font-family: var(--font-heading, 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.toolbar-sub {
  font-size: 0.76rem;
  color: #94a3b8;
  display: block;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.toolbar-btn-print {
  background: linear-gradient(135deg, #d4af37 0%, #b89628 100%);
  color: #062b1e;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.toolbar-btn-print:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.45);
}

.toolbar-btn-wa {
  background: #25d366;
  color: #ffffff;
}

.toolbar-btn-wa:hover {
  background: #20ba59;
}

.toolbar-btn-copy {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.toolbar-btn-copy:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.crs-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: 1px dashed var(--border-color, #cbd5e1);
  color: var(--text-muted, #64748b);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  transition: all var(--transition-fast, 0.2s);
}

.crs-reset-btn:hover {
  color: var(--primary-navy, #0f172a);
  border-color: var(--primary-navy, #0f172a);
  background: var(--bg-slate, #f8fafc);
}

.toolbar-btn-close {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 0.55rem;
  border-radius: 50%;
}

.toolbar-btn-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.report-modal-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2.5rem 1.5rem 4rem;
  background: #334155;
  display: flex;
  justify-content: center;
}

@media (max-width: 840px) {
  .report-modal-body {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.5rem 1rem 3rem;
  }
  .canada-assessment-report-doc,
  .australia-assessment-report-doc {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .report-modal-toolbar {
    padding: 0.75rem 1rem;
    gap: 0.65rem;
  }
  .toolbar-title {
    font-size: 1rem;
  }
  .toolbar-sub {
    font-size: 0.75rem;
  }
  .toolbar-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 0.5rem;
  }
  .toolbar-btn {
    font-size: 0.78rem;
    padding: 0.45rem 0.75rem;
  }
}

.canada-assessment-report-doc,
.australia-assessment-report-doc {
  width: 210mm;
  min-width: 210mm;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.report-page-wrapper {
  position: relative;
}

.report-page-indicator {
  position: absolute;
  top: -1.5rem;
  left: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Individual A4 Page */
.report-page {
  width: 210mm;
  min-height: 297mm;
  height: 297mm;
  max-height: 297mm;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  padding: 14mm 18mm 16mm 18mm;
  font-family: 'Times New Roman', Times, 'Liberation Serif', serif;
  color: #111111;
  font-size: 11pt;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
}

.report-watermark-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.report-watermark-wrap picture {
  display: block;
  width: 100%;
  height: 100%;
}

.report-watermark-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.55;
}

.report-header-wrap {
  width: 100%;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.report-header-wrap picture {
  display: block;
  width: 100%;
}

.report-header-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.report-page-content {
  position: relative;
  z-index: 2;
  flex: 1;
}

.report-footer {
  position: absolute;
  bottom: 12mm;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: 'Times New Roman', Times, 'Liberation Serif', serif;
  font-size: 12pt;
  color: #111111;
  z-index: 2;
}

/* Cover Page Elements */
.report-cover-center {
  margin-top: 85px;
  text-align: center;
}

.report-cover-title {
  font-family: 'Times New Roman', Times, 'Liberation Serif', serif;
  font-size: 28pt;
  font-weight: bold;
  color: #000000;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.report-cover-subtitle {
  font-family: 'Times New Roman', Times, 'Liberation Serif', serif;
  font-size: 20pt;
  font-weight: normal;
  color: #888888;
  margin: 0;
}

.report-cover-confidential {
  position: absolute;
  right: 20mm;
  bottom: 45mm;
  text-align: right;
  line-height: 1.4;
  font-family: 'Times New Roman', Times, 'Liberation Serif', serif;
}

.confidential-title {
  font-size: 15pt;
  font-weight: bold;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.confidential-recipient,
.confidential-date {
  font-size: 14pt;
}

/* Tables inside Report */
.report-synopsis-table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0 18px 0;
  font-size: 11pt;
}

.report-synopsis-table td {
  border: 1px solid #111111;
  padding: 6px 12px;
  vertical-align: middle;
}

.report-synopsis-table td:first-child {
  width: 44%;
}

.report-synopsis-table td:last-child {
  width: 56%;
}

.report-factor-table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0 18px 0;
  font-size: 10pt;
}

.report-factor-table th,
.report-factor-table td {
  border: 1px solid #111111;
  padding: 6px 8px;
  vertical-align: middle;
}

.report-factor-table th {
  font-weight: bold;
  text-align: inherit;
}

.report-factor-total td {
  font-weight: bold;
}

.report-highlight-red {
  color: #dc2626;
  font-weight: 600;
}

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

/* Summary on Page 5 */
.report-summary-wrap {
  padding-top: 30mm;
}

.report-summary-heading {
  font-family: 'Times New Roman', Times, 'Liberation Serif', serif;
  font-size: 18pt;
  font-weight: bold;
  margin: 0 0 12px 0;
}

.report-summary-subheading {
  font-size: 12pt;
  margin-bottom: 14px;
}

.report-summary-scoreline {
  font-size: 12pt;
  font-weight: bold;
  margin-bottom: 24px;
}

.report-summary-paragraph {
  font-size: 11pt;
  line-height: 1.5;
  margin-bottom: 30px;
}

.report-signoff-block {
  margin-top: 20px;
  line-height: 1.45;
}

.report-sign-name {
  font-weight: bold;
  margin-top: 35px;
}

/* Web-Only Assessment Report CTAs */
.report-web-cta {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-lg, 16px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.08);
}

.report-web-cta-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #062b1e;
  margin: 0;
}

.report-web-cta-desc {
  font-size: 0.9rem;
  color: #4a6358;
  margin: 0;
  max-width: 580px;
  line-height: 1.5;
}

/* Print Rules: Exact 5-Page A4 Output */
@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }
  *, *::before, *::after {
    box-sizing: border-box !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  /* When assessment report modal is active, isolate report doc for clean 5-page PDF report */
  body.report-modal-open > *:not(#canadaReportModal):not(#australiaReportModal) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
  }

  /* When printing normal pages, hide interactive overlays & floating widgets */
  body:not(.report-modal-open) .floating-actions,
  body:not(.report-modal-open) #floatingActions,
  body:not(.report-modal-open) .floating-compare-bar,
  body:not(.report-modal-open) .social-proof-toast,
  body:not(.report-modal-open) .modal-overlay,
  body:not(.report-modal-open) .mobile-drawer,
  body:not(.report-modal-open) .mobile-drawer-overlay,
  body:not(.report-modal-open) .announcement-bar,
  body:not(.report-modal-open) .reading-progress-bar,
  body:not(.report-modal-open) .skip-link {
    display: none !important;
    visibility: hidden !important;
  }
  #canadaReportModal,
  #australiaReportModal {
    position: static !important;
    display: block !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: auto !important;
    inset: auto !important;
  }
  .report-modal-backdrop,
  .report-modal-toolbar,
  .report-page-indicator,
  .report-web-cta {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .report-modal-dialog {
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
    overflow: visible !important;
  }
  .report-modal-body {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
    overflow: visible !important;
  }
  .canada-assessment-report-doc,
  .australia-assessment-report-doc {
    display: block !important;
    width: 100% !important;
    max-width: 210mm !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 0 !important;
    box-shadow: none !important;
  }
  .report-page-wrapper {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    page-break-after: always !important;
    break-after: page !important;
  }
  .report-page-wrapper:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }
  .report-page {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 210mm !important;
    height: 272mm !important;
    min-height: 250mm !important;
    max-height: 275mm !important;
    page-break-after: auto !important;
    break-after: auto !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    margin: 0 auto !important;
    padding: 10mm 16mm 10mm 16mm !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: none !important;
    border: none !important;
    font-family: 'Times New Roman', Times, 'Liberation Serif', serif !important;
    color: #111111 !important;
    font-size: 10.5pt !important;
    line-height: 1.4 !important;
  }
  .report-watermark-wrap {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 0 !important;
    overflow: hidden !important;
    display: block !important;
  }
  .report-watermark-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    opacity: 0.55 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .report-header-wrap {
    width: 100% !important;
    margin-bottom: 12px !important;
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
  }
  .report-header-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .report-page-content {
    position: relative !important;
    z-index: 1 !important;
    flex: 1 1 auto !important;
    display: block !important;
  }
  .report-footer {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    color: #4a5568 !important;
    font-size: 8.5pt !important;
    text-align: right !important;
    border-top: 1px solid #cbd5e1 !important;
    padding-top: 6px !important;
    margin-top: auto !important;
  }
  .report-cover-center {
    margin-top: 55px !important;
  }
}

