/* =========================
   STAFFING CALCULATOR
========================= */

.staffing-calculator {
  --calculator-surface:
    rgba(14, 35, 58, 0.72);

  --calculator-surface-strong:
    rgba(20, 45, 73, 0.92);

  --calculator-surface-soft:
    rgba(255, 255, 255, 0.045);

  --calculator-border:
    rgba(148, 184, 226, 0.16);

  --calculator-border-active:
    rgba(96, 165, 250, 0.48);

  --calculator-blue:
    #60a5fa;

  --calculator-green:
    #34d399;

  --calculator-purple:
    #a78bfa;

  position: relative;

  display: grid;
  gap: 24px;

  width: 100%;

  padding: 30px;

  overflow: hidden;

  border:
    1px solid var(--calculator-border);

  border-radius: 28px;

  background:
    linear-gradient(
      145deg,
      rgba(25, 55, 89, 0.78),
      rgba(7, 22, 39, 0.88)
    );

  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.staffing-calculator::before {
  content: "";

  position: absolute;

  top: -220px;
  right: -170px;

  width: 520px;
  height: 520px;

  border-radius: 999px;

  background:
    radial-gradient(
      circle,
      rgba(59, 130, 246, 0.18),
      transparent 68%
    );

  pointer-events: none;
}

.staffing-calculator::after {
  content: "";

  position: absolute;

  left: -180px;
  bottom: -260px;

  width: 480px;
  height: 480px;

  border-radius: 999px;

  background:
    radial-gradient(
      circle,
      rgba(139, 92, 246, 0.08),
      transparent 68%
    );

  pointer-events: none;
}

.staffing-calculator > * {
  position: relative;
  z-index: 1;
}

/* =========================
   CALCULATOR HEADER
========================= */

.calculator-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;

  gap: 22px;

  width: 100%;

  padding:
    2px
    2px
    0;
}

.calculator-header-copy {
  display: grid;
  gap: 8px;

  min-width: 0;
}

.calculator-eyebrow,
.calculator-panel-kicker {
  display: inline-flex;
  align-items: center;

  width: fit-content;
  min-height: 26px;

  padding:
    5px
    10px;

  border:
    1px solid rgba(96, 165, 250, 0.22);

  border-radius: 999px;

  background:
    rgba(59, 130, 246, 0.1);

  color: #93c5fd;

  font-size: 0.68rem;
  font-weight: 950;

  line-height: 1;

  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.staffing-calculator h2 {
  position: relative;

  display: flex;
  align-items: center;

  gap: 13px;

  margin: 0;

  color: #ffffff;

  font-size:
    clamp(
      1.7rem,
      2vw,
      2.25rem
    );

  font-weight: 950;

  line-height: 1.1;
  letter-spacing: -0.045em;
}

.staffing-calculator h2::before {
  content: "";

  width: 5px;
  height: 34px;

  flex-shrink: 0;

  border-radius: 999px;

  background:
    linear-gradient(
      180deg,
      #60a5fa,
      #2563eb
    );

  box-shadow:
    0 0 20px rgba(59, 130, 246, 0.38);
}

.calculator-intro {
  max-width: 660px;

  margin: 0;

  color: #aebfdb;

  font-size: 0.9rem;
  line-height: 1.6;
}

.calculator-header-status {
  display: inline-flex;
  align-items: center;

  gap: 9px;

  min-height: 38px;

  padding:
    9px
    13px;

  border:
    1px solid rgba(52, 211, 153, 0.18);

  border-radius: 999px;

  background:
    rgba(16, 185, 129, 0.075);

  color: #a7f3d0;

  font-size: 0.74rem;
  font-weight: 850;

  white-space: nowrap;
}

.calculator-status-indicator {
  width: 8px;
  height: 8px;

  flex-shrink: 0;

  border-radius: 999px;

  background: #34d399;

  box-shadow:
    0 0 0 4px rgba(52, 211, 153, 0.11),
    0 0 14px rgba(52, 211, 153, 0.48);
}

/* =========================
   CALCULATOR PANELS
========================= */

.calculator-panel {
  display: grid;
  gap: 18px;

  width: 100%;

  padding: 20px;

  border:
    1px solid rgba(148, 184, 226, 0.13);

  border-radius: 24px;

  background:
    linear-gradient(
      145deg,
      rgba(7, 24, 42, 0.55),
      rgba(12, 31, 52, 0.38)
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 16px 38px rgba(0, 0, 0, 0.12);
}

.calculator-input-panel {
  border-color:
    rgba(96, 165, 250, 0.15);
}

.calculator-result-panel {
  border-color:
    rgba(52, 211, 153, 0.13);
}

.calculator-panel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;

  gap: 16px;

  padding-bottom: 15px;

  border-bottom:
    1px solid rgba(148, 184, 226, 0.09);
}

.calculator-panel-header > div {
  display: grid;
  gap: 7px;
}

.calculator-panel-header h3 {
  margin: 0;

  color: #ffffff;

  font-size: 1.08rem;
  font-weight: 950;

  line-height: 1.2;
  letter-spacing: -0.025em;
}

.calculator-panel-header p {
  max-width: 460px;

  margin: 0;

  color: #92a8c5;

  font-size: 0.8rem;
  line-height: 1.5;

  text-align: right;
}

/* =========================
   INPUT AREA
========================= */

.calculator-inputs {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(180px, 1fr)
    );

  gap: 13px;

  width: 100%;

  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 0;

  background: transparent;

  box-shadow: none;
}

.staffing-calculator .form-group {
  position: relative;

  display: grid;
  align-content: start;

  gap: 8px;

  min-width: 0;
  min-height: 96px;

  margin: 0;
  padding: 13px;

  border:
    1px solid rgba(148, 184, 226, 0.12);

  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.052),
      rgba(255, 255, 255, 0.026)
    );

  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.11);

  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.staffing-calculator .form-group:hover {
  transform:
    translateY(-1px);

  border-color:
    rgba(96, 165, 250, 0.27);

  background:
    linear-gradient(
      145deg,
      rgba(59, 130, 246, 0.085),
      rgba(255, 255, 255, 0.035)
    );

  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.15);
}

.staffing-calculator .form-group label {
  margin: 0;

  color: #b9cbe3;

  font-size: 0.72rem;
  font-weight: 900;

  line-height: 1.3;

  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.staffing-calculator input,
.staffing-calculator select {
  min-width: 0;
  min-height: 44px;

  padding: 10px 12px;

  border:
    1px solid rgba(148, 184, 226, 0.16);

  border-radius: 13px;

  background:
    rgba(5, 18, 32, 0.48);

  color: #f8fafc;

  font-size: 0.91rem;
  font-weight: 750;

  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.16);
}

.staffing-calculator input:hover,
.staffing-calculator select:hover {
  border-color:
    rgba(96, 165, 250, 0.34);
}

.staffing-calculator input:focus,
.staffing-calculator select:focus {
  border-color:
    rgba(96, 165, 250, 0.8);

  background:
    rgba(8, 27, 48, 0.78);

  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.12),
    inset 0 1px 3px rgba(0, 0, 0, 0.16);
}

.staffing-calculator select option {
  color: #111827;
  background: #ffffff;
}

/* =========================
   ACTIVE / DISABLED MODE
========================= */

.staffing-calculator
.form-group:has(
  input:disabled
),
.staffing-calculator
.form-group:has(
  select:disabled
) {
  opacity: 0.28;

  background:
    rgba(255, 255, 255, 0.018);

  border-color:
    rgba(148, 163, 184, 0.075);

  box-shadow: none;

  transform: none;
}

.staffing-calculator
.form-group:has(
  input:disabled
):hover,
.staffing-calculator
.form-group:has(
  select:disabled
):hover {
  transform: none;

  border-color:
    rgba(148, 163, 184, 0.075);

  background:
    rgba(255, 255, 255, 0.018);

  box-shadow: none;
}

.staffing-calculator input:disabled,
.staffing-calculator select:disabled {
  cursor: not-allowed;

  color:
    rgba(203, 213, 225, 0.52);

  background:
    rgba(2, 10, 20, 0.24);

  border-color:
    rgba(148, 163, 184, 0.08);
}

.staffing-calculator
.form-group:has(
  #scenarioPreset
) {
  border-color:
    rgba(96, 165, 250, 0.24);

  background:
    linear-gradient(
      145deg,
      rgba(59, 130, 246, 0.12),
      rgba(255, 255, 255, 0.03)
    );
}

.staffing-calculator
.form-group:has(
  #companyName
) {
  border-color:
    rgba(148, 184, 226, 0.18);
}

/* Lønnsgrunnlag */

.staffing-calculator
.form-group:has(
  #salaryBasisType:not(:disabled)
) {
  border-color:
    rgba(96, 165, 250, 0.34);

  background:
    linear-gradient(
      145deg,
      rgba(59, 130, 246, 0.13),
      rgba(255, 255, 255, 0.03)
    );
}

/* Timelønn / årslønn */

.staffing-calculator
.form-group:has(
  #recruitmentHourlyRate:not(:disabled)
),
.staffing-calculator
.form-group:has(
  #annualSalary:not(:disabled)
) {
  border-color:
    rgba(167, 139, 250, 0.34);

  background:
    linear-gradient(
      145deg,
      rgba(139, 92, 246, 0.13),
      rgba(255, 255, 255, 0.03)
    );
}

/* Stillingsprosent */

.staffing-calculator
.form-group:has(
  #employmentPercentage:not(:disabled)
) {
  border-color:
    rgba(34, 211, 238, 0.3);

  background:
    linear-gradient(
      145deg,
      rgba(6, 182, 212, 0.11),
      rgba(255, 255, 255, 0.03)
    );
}

/* Pris av årslønn */

.staffing-calculator
.form-group:has(
  #feePercentage:not(:disabled)
) {
  border-color:
    rgba(192, 132, 252, 0.34);

  background:
    linear-gradient(
      145deg,
      rgba(168, 85, 247, 0.13),
      rgba(255, 255, 255, 0.03)
    );
}

/* Antall */

.staffing-calculator
.form-group:has(
  #recruitmentCount:not(:disabled)
) {
  border-color:
    rgba(251, 191, 36, 0.28);

  background:
    linear-gradient(
      145deg,
      rgba(245, 158, 11, 0.1),
      rgba(255, 255, 255, 0.03)
    );
}

/* Rabatt */

.staffing-calculator
.form-group:has(
  #discountPercentage:not(:disabled)
) {
  border-color:
    rgba(52, 211, 153, 0.32);

  background:
    linear-gradient(
      145deg,
      rgba(16, 185, 129, 0.12),
      rgba(255, 255, 255, 0.03)
    );
}

/* =========================
   STANDARD STAFFING POLISH
========================= */

/*
  Vanlig bemanning:
  12 kolonner / 6 felt per rad.
*/

.staffing-calculator:not(
  :has(
    #salaryBasisType:not(:disabled)
  )
)
.calculator-inputs {
  grid-template-columns:
    repeat(
      12,
      minmax(0, 1fr)
    ) !important;
}

.staffing-calculator:not(
  :has(
    #salaryBasisType:not(:disabled)
  )
)
.form-group:has(
  #companyName
),
.staffing-calculator:not(
  :has(
    #salaryBasisType:not(:disabled)
  )
)
.form-group:has(
  #scenarioPreset
),
.staffing-calculator:not(
  :has(
    #salaryBasisType:not(:disabled)
  )
)
.form-group:has(
  #hourlyRate
),
.staffing-calculator:not(
  :has(
    #salaryBasisType:not(:disabled)
  )
)
.form-group:has(
  #hoursPerDay
),
.staffing-calculator:not(
  :has(
    #salaryBasisType:not(:disabled)
  )
)
.form-group:has(
  #people
),
.staffing-calculator:not(
  :has(
    #salaryBasisType:not(:disabled)
  )
)
.form-group:has(
  #days
),
.staffing-calculator:not(
  :has(
    #salaryBasisType:not(:disabled)
  )
)
.form-group:has(
  #factor1
),
.staffing-calculator:not(
  :has(
    #salaryBasisType:not(:disabled)
  )
)
.form-group:has(
  #factor2
),
.staffing-calculator:not(
  :has(
    #salaryBasisType:not(:disabled)
  )
)
.form-group:has(
  #factor3
),
.staffing-calculator:not(
  :has(
    #salaryBasisType:not(:disabled)
  )
)
.form-group:has(
  #includeVat
),
.staffing-calculator:not(
  :has(
    #salaryBasisType:not(:disabled)
  )
)
.form-group:has(
  #dayType
),
.staffing-calculator:not(
  :has(
    #salaryBasisType:not(:disabled)
  )
)
.form-group:has(
  #selectedOfferFactor
) {
  grid-column:
    span 2;

  min-width: 0;
}

/* Bedrift */

.staffing-calculator
.form-group:has(
  #companyName
) {
  border-color:
    rgba(96, 165, 250, 0.25);

  background:
    linear-gradient(
      145deg,
      rgba(59, 130, 246, 0.09),
      rgba(255, 255, 255, 0.03)
    );
}

/* Scenario */

.staffing-calculator
.form-group:has(
  #scenarioPreset:not(:disabled)
) {
  border-color:
    rgba(96, 165, 250, 0.38);

  background:
    linear-gradient(
      145deg,
      rgba(37, 99, 235, 0.14),
      rgba(255, 255, 255, 0.03)
    );
}

/* Timelønn */

.staffing-calculator
.form-group:has(
  #hourlyRate:not(:disabled)
) {
  border-color:
    rgba(167, 139, 250, 0.3);

  background:
    linear-gradient(
      145deg,
      rgba(139, 92, 246, 0.11),
      rgba(255, 255, 255, 0.03)
    );
}

/* Timer per dag */

.staffing-calculator
.form-group:has(
  #hoursPerDay:not(:disabled)
) {
  border-color:
    rgba(34, 211, 238, 0.26);

  background:
    linear-gradient(
      145deg,
      rgba(6, 182, 212, 0.09),
      rgba(255, 255, 255, 0.03)
    );
}

/* Antall personer */

.staffing-calculator
.form-group:has(
  #people:not(:disabled)
) {
  border-color:
    rgba(251, 191, 36, 0.27);

  background:
    linear-gradient(
      145deg,
      rgba(245, 158, 11, 0.09),
      rgba(255, 255, 255, 0.03)
    );
}

/* Antall dager */

.staffing-calculator
.form-group:has(
  #days:not(:disabled)
) {
  border-color:
    rgba(251, 146, 60, 0.27);

  background:
    linear-gradient(
      145deg,
      rgba(249, 115, 22, 0.09),
      rgba(255, 255, 255, 0.03)
    );
}

/* Faktor 1 */

.staffing-calculator
.form-group:has(
  #factor1:not(:disabled)
) {
  border-color:
    rgba(96, 165, 250, 0.3);

  background:
    linear-gradient(
      145deg,
      rgba(59, 130, 246, 0.11),
      rgba(255, 255, 255, 0.03)
    );
}

/* Faktor 2 */

.staffing-calculator
.form-group:has(
  #factor2:not(:disabled)
) {
  border-color:
    rgba(167, 139, 250, 0.3);

  background:
    linear-gradient(
      145deg,
      rgba(139, 92, 246, 0.11),
      rgba(255, 255, 255, 0.03)
    );
}

/* Faktor 3 */

.staffing-calculator
.form-group:has(
  #factor3:not(:disabled)
) {
  border-color:
    rgba(52, 211, 153, 0.28);

  background:
    linear-gradient(
      145deg,
      rgba(16, 185, 129, 0.1),
      rgba(255, 255, 255, 0.03)
    );
}

/* MVA */

.staffing-calculator
.form-group:has(
  #includeVat:not(:disabled)
) {
  border-color:
    rgba(34, 211, 238, 0.24);

  background:
    linear-gradient(
      145deg,
      rgba(6, 182, 212, 0.08),
      rgba(255, 255, 255, 0.03)
    );
}

/* Dagtype */

.staffing-calculator
.form-group:has(
  #dayType:not(:disabled)
) {
  border-color:
    rgba(251, 146, 60, 0.26);

  background:
    linear-gradient(
      145deg,
      rgba(249, 115, 22, 0.09),
      rgba(255, 255, 255, 0.03)
    );
}

/* Pris i tilbud */

.staffing-calculator
.form-group:has(
  #selectedOfferFactor:not(:disabled)
) {
  border-color:
    rgba(52, 211, 153, 0.34);

  background:
    linear-gradient(
      145deg,
      rgba(16, 185, 129, 0.12),
      rgba(255, 255, 255, 0.03)
    );

  box-shadow:
    0 12px 30px rgba(5, 150, 105, 0.08);
}

/* =========================
   STANDARD RESULT POLISH
========================= */

.staffing-calculator:not(
  :has(
    #salaryBasisType:not(:disabled)
  )
)
#calculatorResults
.factor-result {
  min-height: 310px;

  background:
    linear-gradient(
      145deg,
      rgba(27, 57, 91, 0.92),
      rgba(12, 34, 59, 0.96)
    );
}

.staffing-calculator:not(
  :has(
    #salaryBasisType:not(:disabled)
  )
)
#calculatorResults
.factor-result:nth-child(1) {
  border-color:
    rgba(96, 165, 250, 0.32);

  box-shadow:
    0 20px 48px rgba(37, 99, 235, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.staffing-calculator:not(
  :has(
    #salaryBasisType:not(:disabled)
  )
)
#calculatorResults
.factor-result:nth-child(2) {
  border-color:
    rgba(167, 139, 250, 0.3);

  box-shadow:
    0 20px 48px rgba(124, 58, 237, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.staffing-calculator:not(
  :has(
    #salaryBasisType:not(:disabled)
  )
)
#calculatorResults
.factor-result:nth-child(3) {
  border-color:
    rgba(52, 211, 153, 0.3);

  box-shadow:
    0 20px 48px rgba(5, 150, 105, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.staffing-calculator:not(
  :has(
    #salaryBasisType:not(:disabled)
  )
)
#calculatorResults
.factor-result
.calculator-total {
  margin-top: 20px;
}

.staffing-calculator:not(
  :has(
    #salaryBasisType:not(:disabled)
  )
)
#calculatorResults
.factor-result
.calculator-total strong {
  text-shadow:
    0 8px 24px rgba(0, 0, 0, 0.24);
}

/* =========================
   STANDARD RESPONSIVE
========================= */

@media (max-width: 1100px) {

  .staffing-calculator:not(
    :has(
      #salaryBasisType:not(:disabled)
    )
  )
  .calculator-inputs {
    grid-template-columns:
      repeat(
        6,
        minmax(0, 1fr)
      ) !important;
  }

}

@media (max-width: 760px) {

  .staffing-calculator:not(
    :has(
      #salaryBasisType:not(:disabled)
    )
  )
  .calculator-inputs {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      ) !important;
  }

  .staffing-calculator:not(
    :has(
      #salaryBasisType:not(:disabled)
    )
  )
  .calculator-inputs
  .form-group {
    grid-column:
      span 1;
  }

}

@media (max-width: 620px) {

  .staffing-calculator:not(
    :has(
      #salaryBasisType:not(:disabled)
    )
  )
  .calculator-inputs {
    grid-template-columns:
      1fr !important;
  }

}

/* =========================
   RECRUITMENT LAYOUT
========================= */

/*
  TIMELØNN:
  12 kolonner / 6 felt = 2 kolonner per felt
*/

.staffing-calculator:has(
  #salaryBasisType:not(:disabled)
)
.calculator-inputs {
  grid-template-columns:
    repeat(
      12,
      minmax(0, 1fr)
    ) !important;
}

/* Hide ordinary staffing fields */

.staffing-calculator:has(
  #salaryBasisType:not(:disabled)
)
.form-group:has(
  input:disabled
),
.staffing-calculator:has(
  #salaryBasisType:not(:disabled)
)
.form-group:has(
  select:disabled
) {
  display: none;
}

/* Company and scenario */

.staffing-calculator:has(
  #salaryBasisType:not(:disabled)
)
.form-group:has(
  #companyName
),
.staffing-calculator:has(
  #salaryBasisType:not(:disabled)
)
.form-group:has(
  #scenarioPreset
) {
  grid-column:
    span 6;
}

/* All recruitment fields get equal width */

.staffing-calculator:has(
  #salaryBasisType:not(:disabled)
)
.form-group:has(
  #salaryBasisType
),
.staffing-calculator:has(
  #salaryBasisType:not(:disabled)
)
.form-group:has(
  #recruitmentHourlyRate
),
.staffing-calculator:has(
  #salaryBasisType:not(:disabled)
)
.form-group:has(
  #annualSalary
),
.staffing-calculator:has(
  #salaryBasisType:not(:disabled)
)
.form-group:has(
  #employmentPercentage
),
.staffing-calculator:has(
  #salaryBasisType:not(:disabled)
)
.form-group:has(
  #feePercentage
),
.staffing-calculator:has(
  #salaryBasisType:not(:disabled)
)
.form-group:has(
  #recruitmentCount
),
.staffing-calculator:has(
  #salaryBasisType:not(:disabled)
)
.form-group:has(
  #discountPercentage
) {
  grid-column:
    span 2;

  min-width: 0;
}

/*
  ÅRSLØNN:
  10 kolonner / 5 synlige felt = 2 kolonner per felt
*/

.staffing-calculator:has(
  .form-group:has(
    #annualSalary
  ):not(
    [style*="display: none"]
  )
)
.calculator-inputs {
  grid-template-columns:
    repeat(
      10,
      minmax(0, 1fr)
    ) !important;
}

.staffing-calculator:has(
  .form-group:has(
    #annualSalary
  ):not(
    [style*="display: none"]
  )
)
.form-group:has(
  #companyName
),
.staffing-calculator:has(
  .form-group:has(
    #annualSalary
  ):not(
    [style*="display: none"]
  )
)
.form-group:has(
  #scenarioPreset
) {
  grid-column:
    span 5;
}

/* Tablet */

@media (max-width: 900px) {

  .staffing-calculator:has(
    #recruitmentHourlyRate:not(:disabled)
  )
  .calculator-inputs {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      ) !important;
  }

  .staffing-calculator:has(
    #recruitmentHourlyRate:not(:disabled)
  )
  .form-group:has(
    #companyName
  ),
  .staffing-calculator:has(
    #recruitmentHourlyRate:not(:disabled)
  )
  .form-group:has(
    #scenarioPreset
  ),
  .staffing-calculator:has(
    #recruitmentHourlyRate:not(:disabled)
  )
  .form-group:has(
    #recruitmentHourlyRate
  ),
  .staffing-calculator:has(
    #recruitmentHourlyRate:not(:disabled)
  )
  .form-group:has(
    #employmentPercentage
  ),
  .staffing-calculator:has(
    #recruitmentHourlyRate:not(:disabled)
  )
  .form-group:has(
    #feePercentage
  ),
  .staffing-calculator:has(
    #recruitmentHourlyRate:not(:disabled)
  )
  .form-group:has(
    #recruitmentCount
  ),
  .staffing-calculator:has(
    #recruitmentHourlyRate:not(:disabled)
  )
  .form-group:has(
    #discountPercentage
  ) {
    grid-column:
      span 1;
  }

}

/* Mobile */

@media (max-width: 620px) {

  .staffing-calculator:has(
    #recruitmentHourlyRate:not(:disabled)
  )
  .calculator-inputs {
    grid-template-columns:
      1fr !important;
  }

}

/* =========================
   RESULTS AREA
========================= */

#calculatorResults {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;

  gap: 14px;

  width: 100%;

  margin: 0;
}

.factor-result,
.comparison-result {
  position: relative;
  overflow: hidden;

  flex:
    1 1 290px;

  min-width: 260px;
  min-height: 280px;

  padding: 20px;

  border:
    1px solid rgba(148, 184, 226, 0.15);

  border-radius: 22px;

  background:
    linear-gradient(
      145deg,
      rgba(23, 49, 79, 0.82),
      rgba(10, 29, 50, 0.88)
    );

  color: #eef6ff;

  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);

  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.factor-result::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;
  right: 0;

  height: 3px;

  background:
    linear-gradient(
      90deg,
      #60a5fa,
      #2563eb
    );
}

.factor-result::after {
  content: "";

  position: absolute;

  right: -70px;
  bottom: -90px;

  width: 190px;
  height: 190px;

  border-radius: 999px;

  background:
    radial-gradient(
      circle,
      rgba(59, 130, 246, 0.13),
      transparent 68%
    );

  pointer-events: none;
}

.factor-result:nth-child(2)::before {
  background:
    linear-gradient(
      90deg,
      #a78bfa,
      #7c3aed
    );
}

.factor-result:nth-child(3)::before {
  background:
    linear-gradient(
      90deg,
      #34d399,
      #059669
    );
}

.factor-result:hover {
  transform:
    translateY(-2px);

  border-color:
    rgba(96, 165, 250, 0.3);

  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.factor-result > *,
.comparison-result > * {
  position: relative;
  z-index: 1;
}

.factor-result h3,
.comparison-result h3 {
  margin:
    0
    0
    18px;

  color: #ffffff;

  font-size: 1.02rem;
  font-weight: 950;

  line-height: 1.3;
  letter-spacing: -0.015em;
}

.factor-result p,
.comparison-result p {
  display: flex;
  justify-content: space-between;

  gap: 16px;

  margin: 8px 0;

  padding-bottom: 8px;

  border-bottom:
    1px solid rgba(148, 184, 226, 0.08);

  color: #b9cbe3;

  font-size: 0.86rem;
  line-height: 1.45;
}

.factor-result p:last-of-type {
  border-bottom: 0;
}

.calculator-total {
  display: grid;
  gap: 7px;

  margin-top: 18px;
  padding-top: 15px;

  border-top:
    1px solid rgba(96, 165, 250, 0.2);

  color: #93c5fd;

  font-size: 0.68rem;
  font-weight: 950;

  line-height: 1.3;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calculator-total strong {
  color: #ffffff;

  font-size:
    clamp(
      1.8rem,
      2.6vw,
      2.7rem
    );

  font-weight: 950;

  line-height: 1;
  letter-spacing: -0.055em;

  text-transform: none;
}

.calculator-total small {
  color: #94a3b8;

  font-size: 0.7rem;
  font-weight: 750;

  line-height: 1.45;

  letter-spacing: 0;
  text-transform: none;
}

.calculator-savings {
  display: grid;
  gap: 5px;

  margin-top: 16px;
  padding: 12px 13px;

  border:
    1px solid rgba(52, 211, 153, 0.18);

  border-radius: 14px;

  background:
    rgba(16, 185, 129, 0.075);

  color: #a7f3d0;

  font-size: 0.75rem;
  font-weight: 850;
}

.calculator-savings strong {
  color: #6ee7b7;

  font-size: 1.3rem;
  font-weight: 950;

  line-height: 1.1;
}

.calculator-savings small {
  color: #9fb8ae;
}

/* =========================
   ACTION AREA
========================= */

.comparison-result.calculator-actions {
  display: flex !important;
  flex:
    1 1 100%;

  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap;

  gap: 12px !important;

  width: 100% !important;
  min-width: 0;
  min-height: 0;

  margin-top: 4px !important;
  padding: 16px !important;

  grid-column:
    1 / -1 !important;

  border:
    1px solid rgba(148, 184, 226, 0.12);

  border-radius: 20px;

  background:
    rgba(6, 20, 35, 0.48);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.calculator-actions button {
  min-width: 190px !important;
  min-height: 46px;

  padding:
    12px
    20px !important;

  border-radius:
    13px !important;

  font-size:
    0.88rem !important;

  font-weight:
    900 !important;

  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.18);
}

.calculator-actions button:disabled {
  opacity: 0.4;

  cursor: not-allowed;

  transform: none;

  box-shadow: none;
}

/* COPY BUTTONS */

#copyPricingBtn,
#copyRecruitmentPricingBtn {
  border:
    1px solid rgba(147, 197, 253, 0.24) !important;

  background:
    linear-gradient(
      135deg,
      #3b82f6,
      #1d4ed8
    ) !important;

  color:
    #ffffff !important;
}

#copyPricingBtn:hover,
#copyRecruitmentPricingBtn:hover {
  background:
    linear-gradient(
      135deg,
      #60a5fa,
      #2563eb
    ) !important;

  box-shadow:
    0 14px 32px rgba(37, 99, 235, 0.3);
}

#copyPricingBtn:visited,
#copyPricingBtn:active,
#copyPricingBtn:focus,
#copyPricingBtn *,
#copyRecruitmentPricingBtn:visited,
#copyRecruitmentPricingBtn:active,
#copyRecruitmentPricingBtn:focus,
#copyRecruitmentPricingBtn * {
  color:
    #ffffff !important;
}

/* PDF BUTTONS */

#downloadPdfBtn,
#downloadRecruitmentPdfBtn {
  border:
    1px solid rgba(110, 231, 183, 0.24) !important;

  background:
    linear-gradient(
      135deg,
      #10b981,
      #047857
    ) !important;

  color:
    #ffffff !important;
}

#downloadPdfBtn:hover,
#downloadRecruitmentPdfBtn:hover {
  background:
    linear-gradient(
      135deg,
      #34d399,
      #059669
    ) !important;

  box-shadow:
    0 14px 32px rgba(5, 150, 105, 0.28);
}

/* RESET BUTTON */

#resetRecruitmentCalculatorBtn {
  border:
    1px solid rgba(196, 181, 253, 0.2) !important;

  background:
    linear-gradient(
      135deg,
      rgba(139, 92, 246, 0.25),
      rgba(91, 33, 182, 0.26)
    ) !important;

  color:
    #ede9fe !important;
}

#resetRecruitmentCalculatorBtn:hover {
  border-color:
    rgba(196, 181, 253, 0.38) !important;

  background:
    linear-gradient(
      135deg,
      rgba(167, 139, 250, 0.34),
      rgba(109, 40, 217, 0.34)
    ) !important;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {

  .staffing-calculator {
    padding: 24px;
  }

  .calculator-inputs {
    grid-template-columns:
      repeat(
        3,
        minmax(0, 1fr)
      );
  }

}

@media (max-width: 850px) {

  .calculator-inputs {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

  .factor-result,
  .comparison-result {
    flex-basis:
      calc(50% - 8px);
  }

}

@media (max-width: 760px) {

  .calculator-header {
    align-items: stretch;
    flex-direction: column;
  }

  .calculator-header-status {
    width: fit-content;
  }

  .calculator-panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .calculator-panel-header p {
    max-width: none;

    text-align: left;
  }

}

@media (max-width: 620px) {

  .staffing-calculator {
    gap: 16px;

    padding: 16px;

    border-radius: 22px;
  }

  .calculator-header {
    gap: 16px;

    padding: 0;
  }

  .calculator-header-copy {
    gap: 7px;
  }

  .staffing-calculator h2 {
    font-size: 1.55rem;
  }

  .staffing-calculator h2::before {
    height: 29px;
  }

  .calculator-intro {
    font-size: 0.84rem;
  }

  .calculator-header-status {
    width: 100%;

    justify-content: center;
  }

  .calculator-panel {
    gap: 15px;

    padding: 15px;

    border-radius: 20px;
  }

  .calculator-panel-header {
    gap: 10px;

    padding-bottom: 12px;
  }

  .calculator-panel-header h3 {
    font-size: 1rem;
  }

  .calculator-inputs {
    grid-template-columns:
      1fr;

    gap: 10px;

    padding: 0;
  }

  .staffing-calculator .form-group {
    min-height: 0;

    padding: 12px;

    border-radius: 16px;
  }

  .staffing-calculator input,
  .staffing-calculator select {
    min-height: 46px;
  }

  #calculatorResults {
    display: grid;

    grid-template-columns:
      1fr;

    gap: 12px;
  }

  .factor-result,
  .comparison-result {
    width: 100%;
    min-width: 0;
    min-height: 0;

    padding: 17px;

    border-radius: 19px;
  }

  .calculator-total strong {
    font-size: 2rem;
  }

  .comparison-result.calculator-actions {
    align-items: stretch !important;
    flex-direction: column;

    padding: 13px !important;
  }

  .calculator-actions button {
    width: 100%;
    min-width: 0 !important;
  }

}