/* /tools/podcast-pricing/embed.css
 * White background, compact layout, iframe-friendly.
 * No header/footer.
 */

:root{
  --bg: #ffffff;
  --panel: #ffffff;
  --border: rgba(15, 23, 42, 0.12);
  --muted: rgba(15, 23, 42, 0.70);
  --muted-2: rgba(15, 23, 42, 0.55);
  --text: rgba(15, 23, 42, 0.92);
  --shadow: 0 8px 18px rgba(2, 6, 23, 0.08);

  --accent: #99cc33;

  --radius: 12px;
  --radius-sm: 10px;

  --pad: 16px;
  --pad-sm: 12px;

  --max: 980px;
}

* { box-sizing: border-box; }

html, body{
  height: 100%;
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  line-height: 1.35;
}

/* Wrapper sized to fit inside iframes cleanly */
.embed-wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px;
}

.embed-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
  align-items: start;
}

@media (max-width: 920px){
  .embed-grid{
    grid-template-columns: 1fr;
  }
}

.card{
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: var(--pad);
}

.embed-title{
  margin: 0 0 12px 0;
  font-size: 20px;
  letter-spacing: 0.1px;
}

.results-title{
  margin: 0 0 12px 0;
  font-size: 18px;
  letter-spacing: 0.1px;
}

.divider{
  border: none;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}

.field{
  margin-bottom: 12px;
}

label{
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: rgba(15, 23, 42, 0.92);
  font-size: 13px;
}

select{
  width: 100%;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #ffffff;
  color: var(--text);
  outline: none;
  font-size: 14px;
}

select:focus{
  border-color: rgba(153,204,51,0.75);
  box-shadow: 0 0 0 4px rgba(153,204,51,0.18);
}

.hint{
  margin: 6px 0 0 0;
  color: var(--muted-2);
  font-size: 12px;
}

.field-actions{
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 520px){
  .field-actions{
    flex-direction: column;
  }
}

.btn{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.04s ease, background 0.15s ease, border-color 0.15s ease;
  font-size: 13px;
}

.btn:active{
  transform: translateY(1px);
}

.btn-secondary{
  background: rgba(15, 23, 42, 0.04);
  color: rgba(15, 23, 42, 0.92);
}

.btn-secondary:hover{
  background: rgba(15, 23, 42, 0.07);
}

.validation{
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  padding: 10px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.validation.error{
  border-color: rgba(220, 38, 38, 0.22);
  background: rgba(220, 38, 38, 0.06);
  color: rgba(15, 23, 42, 0.92);
}

/* Results */
.results-card{
  position: sticky;
  top: 12px;
}

@media (max-width: 920px){
  .results-card{
    position: static;
  }
}

.result-grid{
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.result-row{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.result-label{
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.result-value{
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 14px;
}

.result-value.emph{
  color: rgba(87, 142, 0, 1);
}

.block-note{
  margin-top: 12px;
  padding: 10px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--muted);
  font-size: 12px;
}

.embed-footnote{
  margin: 12px 0 0 0;
  font-size: 12px;
  color: var(--muted-2);
}
