/*
Theme Name: CanClaim
Theme URI: https://yourdomain.ca
Author: CanClaim
Author URI: https://yourdomain.ca
Description: A premium WordPress theme for CanClaim — Canadian Benefits Eligibility Checker. Features the eligibility checker as the homepage with full blog and page support. Clean, modern fintech-inspired design.
Version: 1.0.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: canclaim
Tags: one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ========================================
   CSS CUSTOM PROPERTIES
   ======================================== */
:root {
  --color-bg: #F8F6F1;
  --color-surface: #FFFFFF;
  --color-text: #2C2C2C;
  --color-text-muted: #6B6B6B;
  --color-accent: #C9A84C;
  --color-accent-hover: #B8943D;
  --color-federal: #1B3A5C;
  --color-provincial: #1B4D3E;
  --color-border: #E5E2DB;
  --color-card-shadow: rgba(44, 44, 44, 0.08);
  --color-error: #C53030;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --spacing-unit: 8px;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--color-accent); text-decoration: none; transition: color 150ms ease; }
a:hover { color: var(--color-accent-hover); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }

/* ========================================
   LAYOUT
   ======================================== */
.cc-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.cc-container {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.cc-container--narrow {
  max-width: 680px;
}

.cc-content-area {
  flex: 1;
  padding: 40px 0;
}

.cc-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.cc-content-grid.has-sidebar {
  grid-template-columns: 1fr 300px;
}

/* ========================================
   SITE HEADER
   ======================================== */
.cc-site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px var(--color-card-shadow);
}

.cc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.cc-site-branding {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.cc-site-branding:hover { color: var(--color-text); }

.cc-site-branding .cc-maple {
  font-size: 24px;
  line-height: 1;
}

.cc-site-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

.cc-site-description {
  display: none;
}

/* Custom Logo */
.custom-logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-logo {
  max-height: 40px;
  width: auto;
}

/* ========================================
   NAVIGATION
   ======================================== */
.cc-main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cc-main-nav a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color 150ms ease, background-color 150ms ease;
}

.cc-main-nav a:hover,
.cc-main-nav .current-menu-item > a,
.cc-main-nav .current_page_item > a {
  color: var(--color-text);
  background: rgba(201, 168, 76, 0.08);
}

/* Dropdown submenus */
.cc-main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px var(--color-card-shadow);
  padding: 8px 0;
  min-width: 200px;
  z-index: 101;
}

.cc-main-nav li { position: relative; }

.cc-main-nav li:hover > .sub-menu { display: block; }

.cc-main-nav .sub-menu a {
  padding: 8px 20px;
  font-size: 14px;
  border-radius: 0;
}

.cc-main-nav .sub-menu a:hover {
  background: rgba(201, 168, 76, 0.08);
}

/* Mobile nav toggle */
.cc-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
}

.cc-nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ========================================
   BREADCRUMBS
   ======================================== */
.cc-breadcrumbs {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  padding: 12px 0;
}

.cc-breadcrumbs a {
  color: var(--color-accent);
}

.cc-breadcrumbs span {
  margin: 0 6px;
  color: var(--color-border);
}

/* ========================================
   CARDS (Blog posts, pages)
   ======================================== */
.cc-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px var(--color-card-shadow);
  overflow: hidden;
  transition: box-shadow 150ms ease;
}

.cc-card:hover {
  box-shadow: 0 4px 20px rgba(44, 44, 44, 0.12);
}

.cc-card-thumbnail {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.cc-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 150ms ease;
}

.cc-card:hover .cc-card-thumbnail img {
  transform: scale(1.02);
}

.cc-card-body {
  padding: 24px;
}

.cc-card-meta {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cc-card-meta a { color: var(--color-accent); }

.cc-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.cc-card-title a {
  color: var(--color-text);
}

.cc-card-title a:hover {
  color: var(--color-accent);
}

.cc-card-excerpt {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.cc-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

.cc-read-more:hover { color: var(--color-accent-hover); }

/* Post grid */
.cc-post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* ========================================
   SINGLE POST / PAGE
   ======================================== */
.cc-article {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px var(--color-card-shadow);
  overflow: hidden;
}


.cc-article-title {
  font-size: 28px;
  margin-bottom: 12px;
}

.cc-article-meta {
  font-size: 13px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.cc-article-meta a { color: var(--color-accent); }

.cc-featured-image {
  margin: 24px 32px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.cc-featured-image img {
  width: 100%;
  height: auto;
}

.cc-article-content {
  padding: 24px 32px 32px;
  font-size: 16px;
  line-height: 1.8;
}

.cc-article-content p { margin-bottom: 16px; }
.cc-article-content h2 { margin: 32px 0 12px; font-size: 26px; }
.cc-article-content h3 { margin: 24px 0 10px; font-size: 18px; }
.cc-article-content ul, .cc-article-content ol { margin: 0 0 16px 24px; }
.cc-article-content li { margin-bottom: 6px; }
.cc-article-content blockquote {
  margin: 20px 0;
  padding: 16px 24px;
  border-left: 4px solid var(--color-accent);
  background: rgba(201, 168, 76, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--color-text-muted);
}
.cc-article-content pre {
  background: var(--color-text);
  color: #F8F6F1;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin-bottom: 16px;
  font-size: 14px;
}
.cc-article-content code {
  background: rgba(201, 168, 76, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 14px;
}
.cc-article-content pre code {
  background: none;
  padding: 0;
}
.cc-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.cc-article-content th, .cc-article-content td {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  text-align: left;
}
.cc-article-content th {
  background: rgba(201, 168, 76, 0.08);
  font-weight: 600;
}
.cc-article-content img {
  border-radius: var(--radius-sm);
  margin: 16px 0;
}

/* Tags */
.cc-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 32px 32px;
  border-top: 1px solid var(--color-border);
}

.cc-tag {
  display: inline-flex;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-lg);
}

.cc-tag:hover {
  background: var(--color-accent);
  color: #FFF;
}

/* Post Navigation */
.cc-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.cc-post-nav a {
  display: block;
  padding: 16px 20px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px var(--color-card-shadow);
  color: var(--color-text);
  font-size: 14px;
}

.cc-post-nav a:hover { box-shadow: 0 4px 16px rgba(44,44,44,0.12); }

.cc-post-nav .nav-label {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cc-post-nav .nav-title { font-weight: 600; }

.cc-post-nav .next-post { text-align: right; }

/* ========================================
   SIDEBAR
   ======================================== */
.cc-sidebar .widget {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px var(--color-card-shadow);
  padding: 24px;
  margin-bottom: 24px;
}

.cc-sidebar .widget-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
}

.cc-sidebar .widget ul {
  list-style: none;
}

.cc-sidebar .widget li {
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.cc-sidebar .widget li:last-child { border-bottom: none; }

.cc-sidebar .widget li a {
  color: var(--color-text-muted);
}

.cc-sidebar .widget li a:hover { color: var(--color-accent); }

/* Search widget */
.cc-sidebar .search-form {
  display: flex;
  gap: 0;
}

.cc-sidebar .search-field {
  flex: 1;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  outline: none;
  background: var(--color-bg);
}

.cc-sidebar .search-field:focus {
  border-color: var(--color-accent);
}

.cc-sidebar .search-submit {
  padding: 10px 16px;
  background: var(--color-accent);
  color: #FFF;
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
}

.cc-sidebar .search-submit:hover { background: var(--color-accent-hover); }

/* ========================================
   COMMENTS
   ======================================== */
.cc-comments {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px var(--color-card-shadow);
  padding: 32px;
  margin-top: 32px;
}

.cc-comments-title {
  font-size: 20px;
  margin-bottom: 24px;
}

.comment-list {
  list-style: none;
}

.comment-list .comment {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.comment-list .comment:last-child { border-bottom: none; }

.comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-author img {
  border-radius: 50%;
  width: 36px;
  height: 36px;
}

.comment-author .fn {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
}

.comment-metadata {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.comment-content {
  font-size: 15px;
  line-height: 1.6;
}

.comment-content p { margin-bottom: 8px; }

.comment-reply-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
}

/* Children comments */
.comment-list .children {
  list-style: none;
  margin-left: 32px;
}

/* Comment form */
.comment-respond {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.comment-respond .comment-reply-title {
  font-size: 18px;
  margin-bottom: 16px;
}

.comment-form p {
  margin-bottom: 16px;
}

.comment-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 15px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  outline: none;
  transition: border-color 150ms ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.15);
}

.comment-form textarea { min-height: 120px; resize: vertical; }

.comment-form .submit {
  background: var(--color-accent);
  color: #FFF;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 150ms ease;
}

.comment-form .submit:hover { background: var(--color-accent-hover); }

/* ========================================
   PAGINATION
   ======================================== */
.cc-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
}

.cc-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: all 150ms ease;
}

.cc-pagination .page-numbers:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.cc-pagination .page-numbers.current {
  background: var(--color-accent);
  color: #FFF;
  border-color: var(--color-accent);
}

/* ========================================
   SITE FOOTER
   ======================================== */
.cc-site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 40px 0 0;
}

.cc-footer-widgets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 32px;
}

.cc-footer-widgets .widget-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cc-footer-widgets ul {
  list-style: none;
}

.cc-footer-widgets li {
  padding: 4px 0;
  font-size: 14px;
}

.cc-footer-widgets a {
  color: var(--color-text-muted);
}

.cc-footer-widgets a:hover { color: var(--color-accent); }

.cc-footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px;
  text-align: center;
}

.cc-footer-copyright {
  font-size: 13px;
  color: var(--color-text-muted);
}

.cc-footer-copyright a { color: var(--color-accent); }

/* Footer nav */
.cc-footer-nav {
  margin-top: 8px;
}

.cc-footer-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cc-footer-nav a {
  font-size: 13px;
  color: var(--color-text-muted);
}

.cc-footer-nav a:hover { color: var(--color-accent); }

/* Disclaimer */
.cc-disclaimer-bar {
  max-width: 580px;
  margin: 0 auto;
  padding: 16px 20px 24px;
  text-align: center;
}

.cc-disclaimer-text {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.cc-disclaimer-text a { color: var(--color-accent); text-decoration: underline; }

/* ========================================
   SEARCH FORM (inline)
   ======================================== */
.cc-search-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
}

.cc-search-form .search-field {
  flex: 1;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  outline: none;
  background: var(--color-surface);
}

.cc-search-form .search-field:focus {
  border-color: var(--color-accent);
}

.cc-search-form .search-submit {
  padding: 12px 24px;
  background: var(--color-accent);
  color: #FFF;
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
}

.cc-search-form .search-submit:hover { background: var(--color-accent-hover); }

/* ========================================
   404 PAGE
   ======================================== */
.cc-404 {
  text-align: center;
  padding: 60px 20px;
}

.cc-404-icon { font-size: 64px; margin-bottom: 20px; display: block; }
.cc-404 h1 { font-size: 32px; margin-bottom: 12px; }
.cc-404 p { color: var(--color-text-muted); font-size: 16px; margin-bottom: 24px; }

.cc-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: var(--color-accent);
  color: #FFF;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color 150ms ease;
}

.cc-btn:hover { background: var(--color-accent-hover); color: #FFF; }

/* ========================================
   ARCHIVE HEADER
   ======================================== */
.cc-archive-header {
  margin-bottom: 32px;
}

.cc-archive-title {
  font-size: 26px;
  margin-bottom: 8px;
}

.cc-archive-description {
  color: var(--color-text-muted);
  font-size: 15px;
}

/* ========================================
   CANCLAIM APP — FORM STYLES
   (homepage eligibility checker)
   ======================================== */
.cc-checker-intro {
  text-align: center;
  margin-bottom: 32px;
}

.cc-checker-intro h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.cc-checker-intro p {
  color: var(--color-text-muted);
  font-size: 15px;
  max-width: 540px;
  margin: 0 auto;
}

.cc-form { display: flex; flex-direction: column; gap: 28px; }
.cc-field { display: flex; flex-direction: column; }
.cc-fieldset { border: none; padding: 0; margin: 0; }
.cc-label { font-size: 15px; font-weight: 600; color: var(--color-text); margin-bottom: 8px; display: block; }
.cc-helper { font-size: 13px; color: var(--color-text-muted); margin-bottom: 10px; line-height: 1.5; }

.cc-app-input, .cc-app-select {
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 150ms ease;
  width: 100%;
  outline: none;
}

.cc-app-input:focus, .cc-app-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.15);
}

.cc-app-input--error { border-color: var(--color-error) !important; }
.cc-app-input::placeholder { color: #B0ADA6; }
.cc-app-input[type="number"]::-webkit-outer-spin-button,
.cc-app-input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cc-app-input[type="number"] { -moz-appearance: textfield; }

.cc-app-select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B6B6B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Pill buttons */
.cc-pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; min-height: 44px;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-lg);
  font-size: 14px; font-weight: 500; color: var(--color-text);
  cursor: pointer; user-select: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
  background: var(--color-surface);
}
.cc-pill:hover { border-color: var(--color-accent); background: rgba(201, 168, 76, 0.06); }
.cc-pill.selected { background: var(--color-accent); color: #FFF; border-color: var(--color-accent); font-weight: 600; }
.cc-pill.selected:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.cc-pill:focus-within { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.cc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Number stepper */
.cc-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); width: fit-content; }
.cc-stepper-btn { display: flex; align-items: center; justify-content: center; width: 48px; height: 44px; border: none; background: transparent; font-size: 20px; font-weight: 600; color: var(--color-text); cursor: pointer; transition: background-color 150ms ease; font-family: inherit; }
.cc-stepper-btn:hover:not(:disabled) { background: rgba(201, 168, 76, 0.1); }
.cc-stepper-btn:disabled { color: var(--color-border); cursor: not-allowed; }
.cc-stepper-value { min-width: 48px; text-align: center; font-size: 18px; font-weight: 600; color: var(--color-text); border-left: 1.5px solid var(--color-border); border-right: 1.5px solid var(--color-border); line-height: 44px; }

/* Form error */
.cc-app-error { font-size: 13px; color: var(--color-error); margin-top: 6px; font-weight: 500; display: none; }
.cc-app-error.visible { display: block; }

/* Submit */
.cc-submit { width: 100%; background: var(--color-accent); color: #FFF; font-family: inherit; font-size: 18px; font-weight: 700; padding: 16px; border: none; border-radius: var(--radius-md); cursor: pointer; transition: background-color 150ms ease; margin-top: 4px; }
.cc-submit:hover { background: var(--color-accent-hover); }
.cc-submit:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Results */
.cc-results { outline: none; }
.cc-results-title { font-size: 26px; font-weight: 700; color: var(--color-text); margin-bottom: 16px; }
.cc-summary-bar { background: rgba(201, 168, 76, 0.08); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 24px; }
.cc-summary-bar p { font-size: 13px; color: var(--color-text-muted); line-height: 1.5; word-break: break-word; }
.cc-benefits-list { display: flex; flex-direction: column; gap: 16px; }

.cc-benefit-card { background: var(--color-surface); border-radius: var(--radius-md); box-shadow: 0 2px 8px var(--color-card-shadow); padding: 20px 24px; border-left: 4px solid var(--color-accent); }
.cc-benefit-card.federal { border-left-color: var(--color-federal); }
.cc-benefit-card.provincial { border-left-color: var(--color-provincial); }
.cc-benefit-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.cc-badge { display: inline-flex; align-items: center; border-radius: 4px; padding: 2px 8px; font-size: 12px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.cc-badge.federal { background: #EBF0F7; color: var(--color-federal); }
.cc-badge.provincial { background: #EBF3EF; color: var(--color-provincial); }
.cc-benefit-name { font-size: 18px; font-weight: 700; color: var(--color-text); line-height: 1.3; }
.cc-benefit-desc { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; margin-bottom: 14px; }
.cc-benefit-details { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.cc-benefit-detail { font-size: 14px; color: var(--color-text); line-height: 1.5; display: flex; gap: 8px; }
.cc-detail-icon { flex-shrink: 0; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--color-accent); }
.cc-benefit-note { font-size: 13px; color: var(--color-text-muted); font-style: italic; padding-left: 28px; line-height: 1.5; }

.cc-learn-more { display: inline-flex; align-items: center; padding: 8px 16px; border: 1.5px solid var(--color-accent); border-radius: var(--radius-sm); color: var(--color-accent); font-size: 14px; font-weight: 600; text-decoration: none; background: transparent; cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
.cc-learn-more:hover { background: var(--color-accent); color: #FFF; }

.cc-zero-results { text-align: center; padding: 40px 24px; }
.cc-zero-icon { font-size: 48px; display: block; margin-bottom: 16px; }
.cc-zero-heading { font-size: 22px; font-weight: 700; color: var(--color-text); margin-bottom: 12px; }
.cc-zero-text { font-size: 15px; color: var(--color-text-muted); line-height: 1.6; max-width: 480px; margin: 0 auto 20px; }

.cc-results-footer { text-align: center; margin-top: 32px; }
.cc-ghost-btn { font-family: inherit; font-size: 15px; font-weight: 600; color: var(--color-text-muted); background: transparent; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); padding: 10px 24px; cursor: pointer; transition: border-color 150ms ease, color 150ms ease; min-height: 44px; }
.cc-ghost-btn:hover { border-color: var(--color-text-muted); color: var(--color-text); }
.cc-results-disclaimer-text { font-size: 13px; color: var(--color-text-muted); margin-top: 16px; }

.hidden { display: none !important; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .cc-content-grid.has-sidebar {
    grid-template-columns: 1fr;
  }
  .cc-footer-widgets {
    grid-template-columns: 1fr;
  }
  .cc-post-nav {
    grid-template-columns: 1fr;
  }
  .cc-article-header,
  .cc-article-content,
  .cc-tag-list {
    padding-left: 20px;
    padding-right: 20px;
  }
  .cc-featured-image {
    margin-left: 20px;
    margin-right: 20px;
  }
  .cc-nav-toggle {
    display: flex;
  }
  .cc-main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 4px 16px var(--color-card-shadow);
    padding: 12px 0;
  }
  .cc-main-nav.active {
    display: block;
  }
  .cc-main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .cc-main-nav a {
    padding: 12px 20px;
    border-radius: 0;
  }
  .cc-main-nav .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 20px;
  }
  .cc-main-nav li:hover > .sub-menu {
    display: block;
  }
}

@media (max-width: 480px) {
  .cc-checker-intro h1 { font-size: 24px; }
  .cc-card { padding: 20px 16px; }
  .cc-benefit-card { padding: 16px; }
  .cc-pill { padding: 8px 14px; font-size: 13px; }
  .cc-benefit-header { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ========================================
   WORDPRESS ALIGNMENT CLASSES
   ======================================== */
.alignleft { float: left; margin-right: 20px; margin-bottom: 12px; }
.alignright { float: right; margin-left: 20px; margin-bottom: 12px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--color-text-muted); padding: 6px 0; }

/* Screen reader text (WordPress) */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
