/* =========================================================
   Customer feedback - home section, all reviews, form
   ========================================================= */
.cf-section { padding: 48px 0; background: #fff; }
.cf-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.cf-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.cf-title { margin: 0; font-size: 26px; font-weight: 700; color: #202124; }
.cf-sub { margin: 4px 0 0; color: #5f6368; font-size: 14px; }

.cf-summary { display: flex; align-items: center; gap: 14px; }
.cf-score { font-size: 40px; font-weight: 700; color: #202124; line-height: 1; }
.cf-score-meta { font-size: 13px; color: #5f6368; }

.cf-stars { display: inline-flex; gap: 2px; font-size: 18px; line-height: 1; letter-spacing: 1px; }
.cf-stars .on  { color: #fbbc04; }
.cf-stars .off { color: #dadce0; }

.cf-btn { display: inline-block; padding: 10px 20px; border-radius: 24px; border: 1px solid #1a73e8; background: #1a73e8; color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; transition: background .15s, box-shadow .15s; }
.cf-btn:hover { background: #1558b0; color: #fff; box-shadow: 0 2px 8px rgba(26, 115, 232, .35); }
.cf-btn.outline { background: #fff; color: #1a73e8; }
.cf-btn.outline:hover { background: #e8f0fe; color: #1558b0; box-shadow: none; }

/* ---------- Slider ---------- */
.cf-slider-wrap { position: relative; }
.cf-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 14px; -ms-overflow-style: none; scrollbar-width: none; }
.cf-track::-webkit-scrollbar { display: none; }

.cf-card { flex: 0 0 calc((100% - 32px) / 3); min-width: 280px; scroll-snap-align: start; background: #fff; border: 1px solid #e8eaed; border-radius: 12px; padding: 18px; box-shadow: 0 1px 3px rgba(60, 64, 67, .12); display: flex; flex-direction: column; }
.cf-card:hover { box-shadow: 0 4px 14px rgba(60, 64, 67, .18); }

.cf-user { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cf-avatar { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; color: #fff; font-weight: 600; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.cf-name { font-weight: 600; color: #202124; font-size: 15px; line-height: 1.2; }
.cf-meta { font-size: 12px; color: #70757a; }

.cf-rating-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cf-when { font-size: 12px; color: #70757a; }

.cf-review-title { font-weight: 600; color: #202124; margin: 0 0 4px; font-size: 14px; }
.cf-text { color: #3c4043; font-size: 14px; line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.cf-text.open { display: block; -webkit-line-clamp: unset; }
.cf-more { background: none; border: 0; padding: 0; margin-top: 6px; color: #1a73e8; font-size: 13px; cursor: pointer; align-self: flex-start; }

.cf-nav { position: absolute; top: 45%; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #dadce0; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); cursor: pointer; font-size: 18px; color: #3c4043; z-index: 2; }
.cf-nav:hover { background: #f1f3f4; }
.cf-nav.prev { left: -14px; }
.cf-nav.next { right: -14px; }

.cf-footer { text-align: center; margin-top: 18px; }

/* ---------- All reviews grid ---------- */
.cf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cf-grid .cf-card { flex: none; min-width: 0; }

/* ---------- Form page ---------- */
.cf-form-card { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid #e8eaed; border-radius: 14px; padding: 28px; box-shadow: 0 1px 4px rgba(60, 64, 67, .12); }
.cf-form-card h1 { font-size: 24px; margin: 0 0 4px; color: #202124; }
.cf-form-card .lead { color: #5f6368; font-size: 14px; margin-bottom: 20px; }
.cf-field { margin-bottom: 16px; }
.cf-field label { display: block; font-weight: 600; font-size: 13px; color: #3c4043; margin-bottom: 6px; }
.cf-field input[type=text], .cf-field input[type=email], .cf-field input[type=tel], .cf-field textarea { width: 100%; border: 1px solid #dadce0; border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.cf-field input:focus, .cf-field textarea:focus { outline: none; border-color: #1a73e8; box-shadow: 0 0 0 3px rgba(26, 115, 232, .15); }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf-error { color: #d93025; font-size: 12px; margin-top: 4px; }
.cf-alert { padding: 12px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 18px; }
.cf-alert.success { background: #e6f4ea; color: #137333; }
.cf-alert.error { background: #fce8e6; color: #c5221f; }
.cf-hp { position: absolute !important; left: -9999px !important; height: 0; width: 0; opacity: 0; }

/* Star picker: stars are laid out right-to-left so CSS can colour the previous ones */
.cf-picker { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.cf-picker input { position: absolute; opacity: 0; pointer-events: none; }
.cf-picker label { font-size: 34px; line-height: 1; color: #dadce0; cursor: pointer; margin: 0; transition: color .12s, transform .12s; }
.cf-picker label:hover, .cf-picker label:hover ~ label, .cf-picker input:checked ~ label { color: #fbbc04; }
.cf-picker label:hover { transform: scale(1.12); }
.cf-picker input:focus-visible + label { outline: 2px solid #1a73e8; outline-offset: 2px; border-radius: 4px; }

.cf-empty { text-align: center; color: #5f6368; padding: 30px 0; }

@media (max-width: 991px) { .cf-card { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 600px) {
    .cf-card { flex-basis: 86%; }
    .cf-nav { display: none; }
    .cf-row { grid-template-columns: 1fr; }
    .cf-title { font-size: 22px; }
}
