/* ============================================================
   cloudsprint/assets/css/cms.css — admin-managed pages:
   category landing (category.php), CMS pages (page.php) and the
   home-page category highlight. All selectors use the cms- prefix
   so nothing in main.css is affected.
   ============================================================ */

/* category title link on services.php */
.service-category-title .cms-cat-link { color: inherit; text-decoration: none; }
.service-category-title .cms-cat-link:hover { color: var(--accent-color); }

/* intro band */
.cms-intro { display: flex; gap: 24px; align-items: flex-start; }
.cms-intro-icon {
  flex: 0 0 72px; height: 72px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent-color), transparent 88%); color: var(--accent-color); font-size: 34px;
}
.cms-intro-text { font-size: 1.1rem; color: var(--default-color); margin: 0; }
.cms-hero-img { width: 100%; border-radius: 16px; margin-bottom: 28px; }

/* rich text body (sanitised HTML from the admin) */
.cms-body { font-size: 1rem; line-height: 1.75; }
.cms-body h2, .cms-body h3, .cms-body h4 { font-family: var(--heading-font); color: var(--heading-color); margin: 1.6rem 0 .7rem; }
.cms-body h3 { font-size: 1.35rem; }
.cms-body ul { padding-left: 1.2rem; }
.cms-body li { margin-bottom: .35rem; }
.cms-body img { max-width: 100%; height: auto; border-radius: 10px; }
.cms-body a { color: var(--accent-color); }
.cms-body table { width: 100%; }

/* service tiles (category page + home highlight) */
.cms-tile {
  height: 100%; background: var(--surface-color); border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  border-radius: 14px; padding: 24px; position: relative; transition: transform .2s, box-shadow .2s;
}
.cms-tile:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0, 0, 0, .08); }
.cms-tile-icon {
  width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  background: color-mix(in srgb, var(--accent-color), transparent 88%); color: var(--accent-color); font-size: 24px;
}
.cms-tile h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.cms-tile h4 a { color: var(--heading-color); }
.cms-tile h4 a:hover { color: var(--accent-color); }
.cms-tile p { font-size: .93rem; margin: 0; color: var(--default-color); }

/* call to action band */
.cms-cta {
  border-radius: 16px; padding: 32px; text-align: center;
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
}
.cms-cta h3 { font-weight: 700; margin-bottom: 8px; }
.cms-cta p { margin-bottom: 18px; }

/* side menu on CMS pages */
.cms-side { position: sticky; top: 110px; }
.cms-side h5 { font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; color: color-mix(in srgb, var(--default-color), transparent 40%); }
.cms-side a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--default-color); }
.cms-side a.active, .cms-side a:hover { background: color-mix(in srgb, var(--accent-color), transparent 90%); color: var(--accent-color); }

@media (max-width: 575px) {
  .cms-intro { flex-direction: column; gap: 14px; }
  .cms-cta { padding: 24px 16px; }
}

/* ── Request-a-quote page (get-quote.php) ─────────────────────────────── */
.quote-page .cms-quote-side { background: var(--surface-color, #fff); border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; height: 100%; }
.quote-page .cms-quote-side h3 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.quote-page .cms-quote-steps { padding-left: 18px; margin-bottom: 20px; }
.quote-page .cms-quote-steps li { margin-bottom: 12px; color: #4b5563; font-size: 15px; }
.quote-page .cms-quote-contact { font-size: 15px; line-height: 2; margin: 0; }
.quote-page .cms-quote-contact i { color: var(--accent-color); margin-right: 6px; }
.quote-page .php-email-form .form-select { padding: 10px 15px; border-radius: 0; font-size: 14px; }
.quote-page .captcha-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 16px; }
.quote-page .captcha-label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #374151; margin: 0; white-space: nowrap; }
.quote-page .captcha-question { background: var(--accent-color); color: #fff; padding: 4px 12px; border-radius: 8px; font-size: 14px; font-weight: 700; min-width: 80px; text-align: center; }
.quote-page .php-email-form .captcha-input { width: 90px; flex-shrink: 0; text-align: center; font-weight: 600; }
.quote-page .captcha-refresh { flex-shrink: 0; border: 1px solid #e5e7eb; background: #fff; color: #6b7280; border-radius: 8px; padding: 6px 10px; }
.quote-page .captcha-refresh:hover { background: var(--accent-color); color: #fff; border-color: var(--accent-color); }
.quote-page .captcha-refresh.spinning i { display: inline-block; animation: cms-spin .5s linear; }
@keyframes cms-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (max-width: 575.98px) {
  .quote-page .captcha-row { flex-direction: column; align-items: flex-start; }
  .quote-page .php-email-form .captcha-input { width: 100%; }
}
