/* Freelance Rate Calculator — page-specific styles */
/* Base styles (reset, typography, forms, buttons, faq, seo-content) are in style.css */

/* Expense Rows */
.expense-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}

.expense-row label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0;
  min-width: 140px;
}

.expense-input-wrap {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: 6px;
  width: 170px;
  flex-shrink: 0;
}

.expense-input-wrap input {
  width: 100%;
  text-align: right;
}

.input-dollar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-dollar-wrap::before {
  content: '$';
  position: absolute;
  left: 8px;
  color: #9ca3af;
  font-size: 0.813rem;
  pointer-events: none;
}

.input-dollar-wrap input {
  width: 100%;
  padding-left: 18px;
  text-align: right;
}

.expense-freq {
  font-size: 0.75rem;
  color: #6b7280;
  white-space: nowrap;
}

.expense-custom-freq {
  width: auto;
  padding: 4px;
  font-size: 0.75rem;
}

.expense-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  margin-top: 8px;
  border-top: 2px solid #e5e7eb;
  font-size: 0.938rem;
}

.expense-total strong {
  color: #111827;
  font-size: 1.125rem;
}

/* Time Summary */
.time-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  margin-top: 8px;
  border-top: 2px solid #e5e7eb;
  font-size: 0.938rem;
}

.time-summary strong {
  color: #111827;
  font-size: 1.125rem;
}

/* Rate Tiers */
.rate-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}

@media (max-width: 480px) {
  .rate-tiers {
    grid-template-columns: 1fr;
  }
}

.rate-tier {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.rate-tier.recommended {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.rate-tier-name {
  font-size: 0.813rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 2px;
}

.rate-tier.recommended .rate-tier-name {
  color: #16a34a;
}

.rate-tier-desc {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 12px;
}

.rate-tier-hourly {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}

.rate-tier.recommended .rate-tier-hourly {
  color: #15803d;
}

.rate-tier-daily,
.rate-tier-project {
  font-size: 0.813rem;
  color: #6b7280;
  margin-bottom: 2px;
}

/* Market Comparison Chart */
.market-row {
  margin-bottom: 16px;
}

.market-label {
  font-size: 0.813rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.market-bar-container {
  position: relative;
  height: 24px;
  background: #f3f4f6;
  border-radius: 4px;
  margin-bottom: 16px;
}

.market-bar-range {
  position: absolute;
  top: 4px;
  height: 16px;
  background: #dbeafe;
  border-radius: 3px;
}

.market-bar-median {
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  background: #3b82f6;
  border-radius: 1px;
}

.market-bar-user {
  position: absolute;
  top: 0;
  width: 3px;
  height: 24px;
  background: #16a34a;
  border-radius: 2px;
}

.market-bar-labels {
  position: relative;
  height: 16px;
}

.market-bar-labels span {
  position: absolute;
  font-size: 0.688rem;
  color: #9ca3af;
  transform: translateX(-50%);
}

.market-legend {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 0.75rem;
  color: #6b7280;
}

.market-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.market-legend-range {
  display: inline-block;
  width: 16px;
  height: 8px;
  background: #dbeafe;
  border-radius: 2px;
}

.market-legend-median {
  display: inline-block;
  width: 2px;
  height: 12px;
  background: #3b82f6;
}

.market-legend-user {
  display: inline-block;
  width: 3px;
  height: 12px;
  background: #16a34a;
}

/* Range slider */
input[type="range"] {
  width: 100%;
  margin: 4px 0;
}
