/* ==============================================================================
   VINFIX STYLESHEET (style.css)
   Clean, modern, responsive CSS for Vinfix Repairman Demo Platform.
   Colors required by pitch:
   - Primary Navy:    #1F4E79
   - Accent Orange:   #FF8A1F
   - Background:      #F7F9FC
   - Text Dark:       #222B36
   - Success Green:   #2E9E5B (for Verified badges)
   ============================================================================== */

:root {
  --primary: #1F4E79;
  --primary-dark: #143654;
  --primary-light: #EBF2F8;
  --accent: #FF8A1F;
  --accent-hover: #E67710;
  --accent-light: #FFF4E8;
  --bg: #F7F9FC;
  --card-bg: #FFFFFF;
  --text: #222B36;
  --text-muted: #637381;
  --border: #E2E8F0;
  --border-focus: #1F4E79;
  --success: #2E9E5B;
  --success-light: #EAF7EF;
  --star-yellow: #FFB400;
  --shadow-sm: 0 2px 4px rgba(31, 78, 121, 0.06);
  --shadow-md: 0 6px 18px rgba(31, 78, 121, 0.08);
  --shadow-lg: 0 16px 36px rgba(31, 78, 121, 0.14);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

button, input, select, textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ==============================================================================
   1. HEADER SECTION
   ============================================================================== */
.site-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, #2A6BA5 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(31, 78, 121, 0.25);
}

.logo-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary);
  line-height: 1.1;
}

.brand-title span {
  color: var(--accent);
}

.brand-slogan {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

.header-trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--success-light);
  color: var(--success);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(46, 158, 91, 0.2);
}

.header-trust-badge svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ==============================================================================
   2. HERO & FILTER SECTION
   ============================================================================== */
.hero-section {
  padding: 44px 0 28px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-content {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero-title span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Feature highlights row */
.hero-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.hero-feature-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Filter Bar Box */
.filter-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-label svg {
  width: 14px;
  height: 14px;
  fill: var(--primary);
}

.custom-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background-color: #FFFFFF;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.custom-select:hover {
  border-color: #CBD5E1;
}

.custom-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.12);
}

.btn-reset-filters {
  padding: 10px 18px;
  background-color: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 44px;
}

.btn-reset-filters:hover {
  background-color: #E2E8F0;
  color: var(--text);
}

/* Results header bar */
.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.results-count {
  font-weight: 700;
  color: var(--primary);
}

.active-filters-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.active-tag {
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ==============================================================================
   3. REPAIRMAN CARDS SECTION
   ============================================================================== */
.main-content {
  padding: 36px 0 60px;
  flex: 1;
}

.repairman-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

/* Individual Card */
.repairman-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.repairman-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #CBD5E1;
}

/* Card Header Banner */
.card-header-bar {
  background: linear-gradient(135deg, #1F4E79 0%, #296499 100%);
  height: 64px;
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: var(--success);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(46, 158, 91, 0.35);
  height: fit-content;
}

.verified-badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* Card Body */
.card-body {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.avatar-wrapper {
  margin-top: -36px;
  margin-bottom: 12px;
  display: inline-block;
  position: relative;
}

.repairman-photo {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  background-color: #E2E8F0;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.repairman-name {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #FFF9E6;
  color: #8C6200;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  border: 1px solid #FFE699;
}

.rating-badge .star-icon {
  color: var(--star-yellow);
}

.rating-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.repairman-job {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  align-self: flex-start;
}

/* Info List */
.card-info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  padding: 12px;
  background-color: var(--bg);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
}

.info-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.info-item-label {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-item-label svg {
  width: 14px;
  height: 14px;
  fill: var(--primary);
}

.info-item-value {
  font-weight: 600;
  color: var(--text);
}

.time-slot-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #FFFFFF;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-weight: 700;
  color: var(--primary);
  font-size: 0.8rem;
}

.time-slot-icon {
  font-size: 0.95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Price Box */
.card-price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 0 16px;
  border-top: 1px solid var(--border);
}

.price-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.price-amount {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
}

.price-unit {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Button */
.btn-view-profile {
  width: 100%;
  padding: 11px;
  background-color: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-view-profile:hover {
  background-color: var(--primary-dark);
}

.btn-view-profile svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.btn-view-profile:hover svg {
  transform: translateX(3px);
}

/* No results state */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}

.no-results-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.no-results h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.no-results p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* ==============================================================================
   4. MODAL POPUP (Profile & Booking)
   ============================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.modal-container {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #F1F5F9;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background-color: #E2E8F0;
  color: var(--text);
}

/* Modal Content Header */
.modal-profile-header {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 20px;
  align-items: center;
}

.modal-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.modal-avatar {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 3px solid #FFFFFF;
  box-shadow: var(--shadow-md);
  background-color: #E2E8F0;
}

.modal-verified-pill {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--success);
  color: #FFFFFF;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(46, 158, 91, 0.4);
}

.modal-verified-pill svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.modal-header-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.modal-job-tag {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 4px;
  width: fit-content;
}

.modal-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

/* Modal Quick Stats Grid */
.modal-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 24px;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
}

.stat-box {
  background-color: #FFFFFF;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-align: center;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 2px;
}

.stat-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-value.price {
  color: var(--accent);
}

/* Modal Body */
.modal-body {
  padding: 22px 24px;
}

.modal-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-bio-text {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Skills Chip Tags */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.skill-chip {
  background-color: #F1F5F9;
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.skill-chip::before {
  content: "✓";
  color: var(--success);
  font-weight: 800;
}

/* Trust checklist */
.trust-checklist {
  background-color: var(--success-light);
  border: 1px solid rgba(46, 158, 91, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 0.82rem;
  color: #175430;
  font-weight: 600;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-item svg {
  width: 14px;
  height: 14px;
  fill: var(--success);
  flex-shrink: 0;
}

/* Modal Actions */
.modal-footer {
  padding: 16px 24px;
  background-color: #FFFFFF;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
}

.btn-book-now {
  flex: 1;
  padding: 12px 20px;
  background-color: var(--accent);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(255, 138, 31, 0.3);
}

.btn-book-now:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

/* ==============================================================================
   5. BOOKING FORM VIEW
   ============================================================================== */
.booking-view-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary) 0%, #265D8F 100%);
  color: #FFFFFF;
}

.booking-view-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.booking-view-header p {
  font-size: 0.85rem;
  opacity: 0.9;
}

.booking-target-box {
  margin: 16px 24px 0;
  padding: 12px 16px;
  background-color: var(--primary-light);
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 78, 121, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.booking-target-specialist {
  display: flex;
  align-items: center;
  gap: 12px;
}

.booking-target-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFFFFF;
}

.booking-target-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.booking-target-job {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.booking-target-price {
  text-align: right;
}

.booking-target-price .fee {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
}

.booking-target-price .label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Booking Form Elements */
.booking-form {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.form-group label span.required {
  color: #E53E3E;
}

.form-input, .form-textarea, .form-select {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text);
  background-color: #FFFFFF;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.12);
}

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

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.btn-submit-booking {
  flex: 1;
  padding: 12px;
  background-color: var(--accent);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit-booking:hover {
  background-color: var(--accent-hover);
}

.btn-back-modal {
  padding: 12px 18px;
  background-color: #F1F5F9;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-back-modal:hover {
  background-color: #E2E8F0;
}

/* ==============================================================================
   6. BOOKING CONFIRMATION MESSAGE (Success View)
   ============================================================================== */
.confirmation-view {
  padding: 36px 24px;
  text-align: center;
}

.success-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--success-light);
  color: var(--success);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(46, 158, 91, 0.25);
  animation: pulseIcon 1.5s infinite;
}

.success-icon-wrapper svg {
  width: 38px;
  height: 38px;
  fill: currentColor;
}

.confirmation-view h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.confirmation-view .confirmation-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 20px;
}

.booking-summary-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: left;
  margin-bottom: 24px;
  font-size: 0.88rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  color: var(--text-muted);
}

.summary-value {
  font-weight: 700;
  color: var(--text);
}

.summary-value.booking-ref {
  color: var(--primary);
  letter-spacing: 0.5px;
}

.dispatch-notice {
  background-color: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.84rem;
  color: var(--primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-weight: 600;
}

.dispatch-notice svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-done-booking {
  padding: 12px 28px;
  background-color: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-done-booking:hover {
  background-color: var(--primary-dark);
}

/* ==============================================================================
   7. FOOTER SECTION
   ============================================================================== */
.site-footer {
  background-color: var(--primary);
  color: #FFFFFF;
  padding: 44px 0 24px;
  border-top: 4px solid var(--accent);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand .footer-logo-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
}

.footer-brand .footer-logo-title span {
  color: var(--accent);
}

.footer-brand p {
  font-size: 0.88rem;
  color: #CBD5E1;
  line-height: 1.5;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #FFFFFF;
  letter-spacing: 0.3px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: #CBD5E1;
}

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

.pitch-badge-col {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 0.8rem;
  color: #E2E8F0;
}

.pitch-badge-col strong {
  display: block;
  color: var(--accent);
  margin-bottom: 4px;
  font-size: 0.85rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #94A3B8;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==============================================================================
   8. RESPONSIVE MEDIA QUERIES (Laptop & Phone)
   ============================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulseIcon {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* Tablet & Smaller Laptops (<= 992px) */
@media (max-width: 992px) {
  .hero-title {
    font-size: 1.95rem;
  }
  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile Phones (<= 640px) */
@media (max-width: 640px) {
  .hero-section {
    padding: 30px 0 20px;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .header-trust-badge {
    display: none; /* Hide extra badge on narrow phones to save space */
  }

  .filter-card {
    padding: 16px;
  }

  .filter-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .results-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .repairman-grid {
    grid-template-columns: 1fr;
  }

  .modal-profile-header {
    flex-direction: column;
    text-align: center;
    padding: 24px 16px 16px;
  }

  .modal-avatar-wrapper {
    margin: 0 auto;
  }

  .modal-header-info {
    align-items: center;
  }

  .modal-stats-grid {
    grid-template-columns: 1fr;
    padding: 14px 16px;
  }

  .trust-checklist {
    grid-template-columns: 1fr;
  }

  .modal-body {
    padding: 18px 16px;
  }

  .modal-footer {
    padding: 14px 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .booking-view-header,
  .booking-form {
    padding: 16px;
  }

  .booking-target-box {
    margin: 12px 16px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .booking-target-price {
    text-align: left;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}


/* ==============================================================================
   ADDITIONS — STEP 1 (Community Forum + Chatbot)
   Appended to style.css — all existing styles above are unchanged.
   ============================================================================== */

/* ── Header Navigation (new nav links added in v2) ────────────────────────── */
.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-decoration: none;
}

.nav-link:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* Community nav link gets an accent highlight */
.nav-link-community {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

.nav-link-community:hover {
  background-color: var(--primary);
  color: #FFFFFF;
}

/* Hide nav on very narrow phones (header already tight) */
@media (max-width: 480px) {
  .header-nav {
    display: none;
  }
}

/* ==============================================================================
   COMMUNITY FORUM SECTION
   ============================================================================== */
.forum-section {
  background-color: #FFFFFF;
  border-top: 3px solid var(--primary-light);
  padding: 52px 0 64px;
}

/* ── Forum Header Row ────────────────────────────────────────────────────── */
.forum-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.forum-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}

.forum-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 620px;
}

.forum-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.forum-post-badge {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(31, 78, 121, 0.15);
}

/* New Post button */
.btn-new-post {
  background-color: var(--accent);
  color: #FFFFFF;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(255, 138, 31, 0.25);
}

.btn-new-post:hover {
  background-color: var(--accent-hover);
}

/* ── New Post Form Panel ─────────────────────────────────────────────────── */
.new-post-form-panel {
  background-color: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.new-post-form-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

/* ── Forum Posts List ────────────────────────────────────────────────────── */
.forum-posts-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Individual Post Card ────────────────────────────────────────────────── */
.forum-post-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.forum-post-card:hover {
  box-shadow: var(--shadow-md);
}

.forum-post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.forum-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Round avatar with first letter of author name */
.forum-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, #296499 100%);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.forum-post-author {
  font-size: 0.92rem;
  color: var(--text);
  display: block;
}

.forum-post-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
}

.forum-post-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.35;
}

.forum-post-desc {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* ── "Find a Repairman" Suggestion ──────────────────────────────────────── */
.forum-suggestion {
  background-color: var(--accent-light);
  border: 1px solid rgba(255, 138, 31, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #8C4A00;
  margin-bottom: 18px;
  font-weight: 600;
}

.forum-suggestion-link {
  color: var(--accent-hover);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.forum-suggestion-link:hover {
  color: var(--primary);
}

/* ── Comments Section ────────────────────────────────────────────────────── */
.forum-comments-section {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.forum-comments-heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.forum-comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.forum-no-comments {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 10px;
}

/* Individual comment */
.forum-comment {
  background-color: var(--bg);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  border-left: 3px solid var(--primary-light);
}

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

/* Tiny avatar mini for comments */
.forum-avatar-mini {
  width: 26px;
  height: 26px;
  background-color: var(--primary);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.forum-comment-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: auto;
}

.forum-comment-text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
}

/* Comment input row */
.forum-add-comment-form {
  margin-top: 12px;
}

.forum-comment-input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

/* Narrow name field */
.forum-comment-name {
  flex: 0 0 130px;
  min-width: 0;
  font-size: 0.85rem !important;
  padding: 8px 10px !important;
}

/* Wide text field */
.forum-comment-text-input {
  flex: 1;
  min-width: 0;
  font-size: 0.85rem !important;
  padding: 8px 10px !important;
}

.btn-forum-comment {
  padding: 8px 14px;
  background-color: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-forum-comment:hover {
  background-color: var(--primary-dark);
}

/* Delete post button (user posts only) */
.forum-delete-btn {
  background: none;
  border: 1px solid #FECACA;
  color: #EF4444;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.forum-delete-btn:hover {
  background-color: #FEF2F2;
}

/* ── Forum Responsive ────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .forum-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .forum-comment-input-row {
    flex-direction: column;
  }

  .forum-comment-name {
    flex: none;
    width: 100%;
  }

  .forum-comment-text-input {
    flex: none;
    width: 100%;
  }

  .btn-forum-comment {
    width: 100%;
  }
}

/* ==============================================================================
   CHATBOT WIDGET
   ============================================================================== */

/* ── Floating Toggle Button ──────────────────────────────────────────────── */
.chat-toggle-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--primary) 0%, #2A6BA5 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(31, 78, 121, 0.4);
  transition: var(--transition);
}

.chat-toggle-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(31, 78, 121, 0.5);
}

/* Unread notification dot */
.chat-unread-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background-color: var(--accent);
  color: #FFFFFF;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  animation: pulseIcon 1.5s infinite;
}

/* ── Chat Window ─────────────────────────────────────────────────────────── */
.chat-window {
  position: fixed;
  bottom: 92px;          /* Sits above the toggle button */
  right: 24px;
  width: 360px;
  max-height: 540px;
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  z-index: 500;
  flex-direction: column; /* display: flex is set when visible */
  overflow: hidden;
  border: 1px solid var(--border);
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-window-open {
  display: flex !important;
}

/* Chat window on mobile: full-width, bottom-anchored */
@media (max-width: 480px) {
  .chat-window {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 86px;
    max-height: 70vh;
  }

  .chat-toggle-btn {
    bottom: 16px;
    right: 16px;
  }
}

/* ── Chat Header ─────────────────────────────────────────────────────────── */
.chat-header {
  background: linear-gradient(135deg, var(--primary) 0%, #296499 100%);
  color: #FFFFFF;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Bot initial avatar in chat header */
.chat-avatar-sm {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.chat-bot-name {
  font-size: 0.98rem;
  font-weight: 800;
  display: block;
}

.chat-bot-status {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
  display: block;
}

.chat-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #FFFFFF;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.chat-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ── Chat Messages Area ──────────────────────────────────────────────────── */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: var(--bg);
}

/* Individual message bubble */
.chat-bubble {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  word-break: break-word;
}

/* Bot bubble — left aligned, navy accent */
.chat-bubble-bot {
  background-color: #FFFFFF;
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* User bubble — right aligned, accent orange */
.chat-bubble-user {
  background-color: var(--primary);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

/* "View Profile" link button inside bot message */
.chat-profile-btn {
  display: block;
  margin-top: 8px;
  padding: 7px 12px;
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(31, 78, 121, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  width: 100%;
}

.chat-profile-btn:hover {
  background-color: var(--primary);
  color: #FFFFFF;
}

/* ── Chatbot Feedback Prompt ("Did this help?") ──────────────────────────── */
.chat-feedback-prompt {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.chat-feedback-text {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.chat-feedback-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (min-width: 380px) {
  .chat-feedback-buttons {
    flex-direction: row;
  }
}

.chat-feedback-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.chat-feedback-btn.btn-yes {
  background-color: var(--success-light);
  color: #1b6d3e;
  border-color: rgba(46, 158, 91, 0.3);
}

.chat-feedback-btn.btn-yes:hover {
  background-color: var(--success);
  color: #FFFFFF;
}

.chat-feedback-btn.btn-no {
  background-color: var(--accent-light);
  color: #c45e00;
  border-color: rgba(255, 138, 31, 0.3);
}

.chat-feedback-btn.btn-no:hover {
  background-color: var(--accent);
  color: #FFFFFF;
}

.chat-feedback-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Chatbot Disclaimer ──────────────────────────────────────────────────── */
.chat-disclaimer {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ── Chatbot Hazard / Safety Box ─────────────────────────────────────────── */
.chat-hazard-box {
  background-color: #FEF2F2;
  border: 1.5px solid #FCA5A5;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 10px;
}

.chat-hazard-title {
  color: #B91C1C;
  font-weight: 800;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.chat-hazard-list {
  padding-left: 18px;
  margin: 4px 0 8px 0;
  font-size: 0.82rem;
  color: #7F1D1D;
  line-height: 1.45;
}

.chat-hazard-note {
  font-size: 0.8rem;
  color: #991B1B;
  font-weight: 600;
}

/* ── Chat Repairman Card ─────────────────────────────────────────────────── */
.chat-repairman-card {
  margin-top: 10px;
  background-color: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.chat-repairman-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.chat-pro-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.chat-pro-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}

.chat-pro-details {
  flex: 1;
  min-width: 0;
}

.chat-pro-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--primary);
  line-height: 1.25;
}

.chat-pro-job {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 3px;
}

.chat-pro-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

.chat-pro-rating {
  color: #D97706;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.chat-pro-price {
  font-weight: 800;
  color: var(--accent);
}

.chat-pro-slot {
  margin-bottom: 10px;
}

.chat-pro-slot .time-slot-tag {
  font-size: 0.78rem;
  padding: 3px 8px;
  background-color: var(--bg);
}

.chat-pro-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.chat-btn-profile,
.chat-btn-book {
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.chat-btn-profile {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(31, 78, 121, 0.25);
}

.chat-btn-profile:hover {
  background-color: var(--primary);
  color: #FFFFFF;
}

.chat-btn-book {
  background-color: var(--accent);
  color: #FFFFFF;
  border: 1px solid transparent;
}

.chat-btn-book:hover {
  background-color: var(--accent-hover);
}

/* Typing animation (three bouncing dots) */
.chat-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 14px;
}

.chat-typing span {
  width: 7px;
  height: 7px;
  background-color: var(--primary);
  border-radius: 50%;
  display: inline-block;
  opacity: 0.4;
  animation: typingDot 1.2s infinite ease-in-out;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

/* ── Quick Reply Buttons ─────────────────────────────────────────────────── */
.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  background-color: #FFFFFF;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-quick-reply {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(31, 78, 121, 0.2);
  border-radius: var(--radius-full);
  padding: 5px 11px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.chat-quick-reply:hover {
  background-color: var(--primary);
  color: #FFFFFF;
}

/* ── Chat Input Row ──────────────────────────────────────────────────────── */
.chat-input-form {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background-color: #FFFFFF;
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  padding: 9px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  transition: var(--transition);
}

.chat-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.1);
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  background-color: var(--accent);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.chat-send-btn:hover {
  background-color: var(--accent-hover);
}
