/* Cost calculators: styles shared by the Instagram and Facebook calculators (iac- and fcc- prefixes).
 * Colours and type come from landing-page-analyzer.css, linked first. */
.iac-tool { font-family: Inter, sans-serif; width: 100%; max-width: 1120px; margin: 0 auto; }
.iac-noscript { color: #fca5a5; text-align: center; margin: 0 0 1rem; }
.iac-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: stretch; }
.iac-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 1.75rem;
  box-sizing: border-box;
}
.iac-card h2 { font-size: 1.125rem; margin: 0 0 1.25rem; color: #fff; text-align: left; }
.iac-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0 0 1rem; }
.iac-field { min-width: 0; }
.iac-field.is-wide { grid-column: 1 / -1; }
.iac-label { display: block; font-family: inherit; line-height: 1.3; margin: 0 0 0.4rem; font-size: 0.8125rem; font-weight: 500; color: #d7dbe6; }
.iac-input-wrap { position: relative; }
.iac-input {
  display: block; width: 100%; height: auto; margin: 0; box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px; color: #fff; font-family: inherit; font-size: 0.9375rem;
  line-height: 1.4; padding: 14px 16px; outline: none;
}
.iac-input:focus { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.22); }
.iac-input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.iac-unit { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #b0b6c3; font-size: 0.875rem; pointer-events: none; }
.iac-hint { font-size: 0.8125rem; line-height: 1.4; color: #b0b6c3; margin: 0.4rem 0 0; }
.iac-lead { margin: 0 0 1.5rem; }
.iac-lead-label { font-size: 0.875rem; color: #b0b6c3; margin: 0 0 0.25rem; }
.iac-lead-value { font-size: 3.5rem; line-height: 1.05; font-weight: 600; color: #fff; margin: 0; }
.iac-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; margin: 0 0 1.5rem; }
.iac-stat-label { font-size: 0.8125rem; color: #b0b6c3; margin: 0 0 0.2rem; }
.iac-stat-value { font-size: 1.75rem; line-height: 1.1; font-weight: 600; color: #fff; margin: 0; }
.iac-divider { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); margin: 0 0 1.25rem; }
.iac-math { margin: 1rem 0 0; font-size: 0.875rem; color: #b0b6c3; }
.iac-source { max-width: 1120px; margin: 1rem auto 0; font-size: 0.8125rem; color: #b0b6c3; text-align: center; }
.iac-source a { color: #a5b4fc; }
@media (max-width: 860px) {
  .iac-layout { grid-template-columns: 1fr; }
  .iac-lead-value { font-size: 2.75rem; }
}
@media (max-width: 478px) {
  .iac-grid, .iac-stats { grid-template-columns: 1fr; }
}

/* Dark dropdown list and no spin arrows over the unit labels */
.iac-input { color-scheme: dark; }
select.iac-input option { background-color: #0b0b1a; color: #fff; }
.iac-input[type="number"]::-webkit-outer-spin-button,
.iac-input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.iac-input-wrap .iac-input { padding-right: 4.25rem; }
.iac-range { font-size: 0.9375rem; font-weight: 500; color: #a5b4fc; margin: 0.4rem 0 0; }
.iac-wide { grid-column: 1 / -1; margin: 0; }

/* Facebook calculator: mode tabs, card head, wide hint */
.fcc-tabs {
  display: flex; gap: 0.375rem; width: fit-content; max-width: 100%; margin: 0 auto 1.5rem;
  padding: 0.3rem; background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 99px;
}
.fcc-tab {
  background: transparent; border: 1px solid transparent; border-radius: 99px;
  color: rgba(255, 255, 255, 0.65); font-family: inherit; font-size: 0.9375rem; line-height: 1.3;
  padding: 0.55rem 1.4rem; cursor: pointer;
}
.fcc-tab:hover { color: #a5b4fc; }
.fcc-tab[aria-selected="true"] {
  background: rgba(129, 140, 248, 0.15); border-color: rgba(129, 140, 248, 0.4); color: #a5b4fc;
}
.fcc-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.fcc-card-head h2 { margin-bottom: 1.25rem; }
.fcc-period { width: auto; min-width: 7.5rem; padding: 10px 14px; }
.fcc-wide { grid-column: 1 / -1; margin: 0; }
[data-modes][hidden] { display: none !important; }
@media (max-width: 478px) {
  .fcc-tabs { flex-direction: column; border-radius: 24px; width: 100%; }
  .fcc-card-head { flex-direction: column; }
}
