/* Franking Credit & After-Tax Dividend Calculator | Macro GM Securities */
:root {
  --fc-brand1: #ff8b2c;      /* Primary orange */
  --fc-brand2: #ffb65c;      /* Gradient accent */
  --fc-dark: #0f172a;        /* Text / headings */
  --fc-muted: #475569;       /* Muted text */
  --fc-bg: #fffaf6;          /* Subtle warm background */
  --fc-card: #ffffff;        /* Card base */
  --fc-border: #e2e8f0;
  --fc-radius: 1rem;
  --fc-shadow: 0 8px 22px -8px rgba(0,0,0,0.1);
}

body { background: var(--fc-bg); font-family: 'Inter', sans-serif; color: var(--fc-dark); }


/* Headings */
#fc-title {
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  color: var(--fc-dark);
  margin-bottom: 0.3rem;
}
#fc-sub {
  text-align: center;
  color: var(--fc-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* Card containers */
.fc-card {
  background: var(--fc-card);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--fc-shadow);
}

/* Field layout */

/* make input columns breathe on wider screens */
.fc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem 1.5rem;
}


.fc-field label {
  font-weight: 600;
  color: var(--fc-dark);
  font-size: 0.95rem;
}
.fc-field input,
.fc-field select {
  width: 100%;
  border: 2px solid var(--fc-border);
  border-radius: 8px;
  padding: .65rem .75rem;
  font-size: 1rem;
  background: #f9fafb;
  transition: all .2s ease;
}
.fc-field input:focus,
.fc-field select:focus {
  border-color: var(--fc-brand1);
  box-shadow: 0 0 0 3px rgba(255,139,44,0.2);
  outline: none;
  background: #fff;
}

/* KPI results */
.fc-results {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 1rem;
}
.fc-kpi {
  border: 2px solid var(--fc-border);
  border-radius: var(--fc-radius);
  padding: 1rem;
  text-align: center;
  background: #fff9f4;
}
.fc-kpi .kpi-label {
  color: var(--fc-muted);
  font-size: .9rem;
}
.fc-kpi .kpi-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fc-brand1);
  margin-top: .3rem;
}

/* Buttons */
.fc-actions {
  text-align: center;
  margin-top: 1rem;
}
.fc-btn {
  background: linear-gradient(90deg,var(--fc-brand1),var(--fc-brand2));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .75rem 1.25rem;
  margin: .25rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.fc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(255,139,44,0.3);
}
.fc-btn.secondary {
  background: var(--fc-dark);
}

/* Table */
.fc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  margin-top: 1rem;
}
.fc-table th,
.fc-table td {
  border: 1px solid var(--fc-border);
  padding: .65rem .6rem;
}
.fc-table th {
  background: #fff2e4;
  color: var(--fc-dark);
  font-weight: 700;
}
.fc-table td:first-child,
.fc-table th:first-child {
  text-align: left;
}
.fc-table td {
  text-align: right;
}

/* Notes & disclaimer */
.fc-note,
.fc-disclaimer {
  color: var(--fc-muted);
  font-size: .85rem;
  text-align: center;
  margin-top: 1rem;
}

/* Override WordPress theme content width so calculator matches header */
.wp-block-html,
.wp-block-group,
.entry-content .wp-block-html {
  max-width: none !important;
  width: 100% !important;
}

#franking-calculator {
  width: 100%;
  margin: 0 auto;
  display: block;
}
