/* Page Layout */
.page {
  min-height: 100vh;

  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  background-color: white;
  border-bottom: 1px solid #f3f4f6;
  margin-block-end: 0;
}

.header-container {
  width: min(100% - 2rem, 75rem);
  margin-inline: auto;
  padding-block: 0.75rem;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.header-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.header-logo {
  height: 3.5rem;
  width: auto;
}

.header-tagline {
  font-size: 0.875rem;
  color: #4b5563;
}

.header-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  font-size: 1.125rem;
  color: #4b5563;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #1f2937;
}

.nav-button {
  font-size: 1.125rem;
  background-color: #4A6FA5;
  color: white;
  text-decoration: none;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s;
}

.nav-button:hover {
  background-color: #3A5A87;
}

.nav-link.button,
.nav-link--button {
  background-color: #f3f4f6;
  color: #4A6FA5;
  border-radius: 0.5rem;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  display: inline-block;
}

.nav-link.button:hover,
.nav-link--button:hover {
  background-color: #F3E3C2;
  color: #8C6820;
}

/* Main Container */
.main-container {
  width: min(100% - 2rem, 75rem);
  margin-inline: auto;
  padding-block: 0.25rem;
}

@media (max-width: 767px) {
  .main-container {
    width: 100%;
    padding-inline: 0;
  }
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding-block: 4rem;
}

.hero-content {
  flex: 1;
  max-width: 40rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: #111827;
  margin-block-end: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #4b5563;
  margin-block-end: 2rem;
}

.hero-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quick-search-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quick-search-input {
  flex: 1;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 32rem;
  height: auto;
}

/* Features Section */
.features-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-block: 4rem;
}

.feature-card {
  background-color: white;
  border-radius: 0.75rem;
  border: 1px solid #f3f4f6;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2rem;
  margin-block-end: 1rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-block-end: 0.75rem;
}

.feature-description {
  color: #4b5563;
}

/* How It Works Section */
.how-it-works-section {
  background-color: white;
  border-radius: 1rem;
  border: 1px solid #f3f4f6;
  padding: 3rem;
  margin-block: 4rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-block-end: 3rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-number {
  width: 3.5rem;
  height: 3.5rem;
  background-color: #F3E3C2;
  color: #4A6FA5;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-block-end: 1.5rem;
}

.step-title {
  font-weight: 500;
  color: #1f2937;
  margin-block-end: 0.75rem;
}

.step-description {
  color: #4b5563;
}

/* CTA Section */
.cta-section {
  background-color: #FAF2E0;
  border-radius: 1rem;
  padding: 3rem;
  text-align: center;
  margin-block-end: 4rem;
}

.cta-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-block-end: 1rem;
}

.cta-description {
  color: #4b5563;
  margin-block-end: 2rem;
}

/* Form Pages */
.form-container {
  width: min(100% - 2rem, 42rem);
  margin-inline: auto;
  padding: 1rem;
}

.form-card {
  background-color: white;
  border-radius: 1rem;
  border: 1px solid #f3f4f6;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-block-end: 1rem;
}

.form-subtitle {
  color: #4b5563;
  margin-block-end: 2rem;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block-start: 2rem;
  padding-block-start: 2rem;
  border-top: 1px solid #f3f4f6;
}

/* Footer */
.site-footer {
  background-color: white;
  border-top: 1px solid #f3f4f6;
  margin-block-start: auto;
  padding-block: 2rem;
}

.footer-container {
  width: min(100% - 2rem, 75rem);
  margin-inline: auto;
  text-align: center;
}

.footer-copyright {
  color: #4b5563;
  font-size: 0.875rem;
  margin-block-end: 0.5rem;
}

.footer-tagline {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Request Card */
.request-card {
  background-color: white;
  border-radius: 0.75rem;
  border: 1px solid #f3f4f6;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: box-shadow 0.2s;
}

.request-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.request-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.request-card-details {
  flex: 1;
  min-width: 0;
}

.request-card-name {
  font-size: 1.125rem;
  font-weight: 500;
  color: #111827;
  margin-block-end: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-card-info {
  font-size: 0.875rem;
  color: #4b5563;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.request-card-row {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
}

.request-card-row--time {
  color: #4A6FA5;
}

.request-card-row--phone {
  color: #059669;
}

.request-card-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-card-phone {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.request-card-phone:hover {
  color: #047857;
}

.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-block-start: 0.125rem;
}

.icon--arrow-down,
.icon--arrow-up {
  color: #9ca3af;
}

.icon--clock {
  color: currentColor;
}

.icon--phone {
  width: 1.25rem;
  height: 1.25rem;
  margin-block-start: 0;
  color: currentColor;
}

/* Search Form */
.search-form {
  width: 100%;
  max-width: 75rem;
  margin-inline: auto;
  padding: 0.75rem;
}

.search-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.search-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.search-toggle-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background-color: white;
  color: #4b5563;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.search-toggle-button:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
}

.search-toggle-button.collapsed .search-toggle-icon {
  transform: rotate(180deg);
}

.search-toggle-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.2s;
}

.search-form-content {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  padding: 2rem;
  max-height: 2000px;
  opacity: 1;
  transition: max-height 0.4s cubic-bezier(.4, 0, .2, 1), opacity 0.3s, padding 0.3s, visibility 0.3s;
  overflow: hidden;
  visibility: visible;
}

.search-form-content.collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
  visibility: hidden;
}

.search-form-sections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.search-locations {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.search-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  width: 100%;
  margin-bottom: 1rem;
}

.field-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  width: 100%;
}

.field-main {
  flex: 3;
  min-width: 0;
}

.field-radius {
  width: 120px;
  flex-shrink: 0;
}

.field-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.125rem;
}

.field-hint {
  font-size: 0.6875rem;
  color: #6b7280;
}

.input {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.time-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 0;
  width: 100%;
}

.time-card {
  background-color: #f9fafb;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.time-card-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: #1f2937;
  margin-block-end: 1rem;
}

.time-fields {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.time-field-group {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.search-submit {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  width: 100%;
}

.search-button {
  padding: 0.625rem 1.5rem;
  font-size: 1.125rem;
  background-color: #4A6FA5;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.search-button:hover {
  background-color: #3A5A87;
  box-shadow: 0 4px 16px rgba(74, 111, 165, 0.12);
}

.emoji {
  font-size: 1em;
  vertical-align: middle;
  line-height: 1;
}

.search-preview-content {
  padding: 0.5rem;
  gap: 0.75rem;
}

.search-preview-item {
  font-size: 0.8125rem;
  gap: 0.375rem;
}

/* Results Section */
.results-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.results-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

.results-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
}

.results-count {
  color: #6b7280;
  font-size: 0.875rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-block-start: 2rem;
}

.pagination-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  color: #4b5563;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.pagination-button:hover {
  background-color: #f9fafb;
  color: #1f2937;
}

.pagination-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-numbers {
  display: flex;
  gap: 0.5rem;
}

.pagination-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding-inline: 0.5rem;
  background-color: #4A6FA5;
  color: white;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding-inline: 0.5rem;
  color: #4b5563;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.pagination-link:hover {
  background-color: #f3f4f6;
  color: #1f2937;
}

.pagination-icon {
  width: 1rem;
  height: 1rem;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 4rem 2rem;
  text-align: center;
}

.empty-state-image {
  width: 100%;
  max-width: 20rem;
  height: auto;
}

.empty-state-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
}

.empty-state-message {
  color: #6b7280;
}

/* Loading Spinner */
.loading-spinner {
  animation: spin 1s linear infinite;
}

.spinner-track {
  opacity: 0.25;
}

.spinner-head {
  opacity: 0.75;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Responsive Styles */
@media (min-width: 640px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
  }

  .header-brand {
    align-items: flex-start;
  }

  .header-nav {
    flex-direction: row;
    gap: 1.5rem;
  }

  .hero-form {
    flex-direction: row;
  }

  .quick-search-form {
    flex-direction: row;
  }

  .form-container {
    padding: 1.5rem;
  }

  .location-field {
    flex-direction: row;
    align-items: flex-end;
  }

  .location-actions {
    width: auto;
    min-width: 16rem;
  }

  .submit-button {
    width: auto;
  }

  .search-form {
    padding: 1.5rem;
  }
}

@media (min-width: 768px) {
  .header-container {
    padding-block: 2rem;
  }

  .hero-section {
    flex-direction: row;
  }

  .features-section {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .form-container {
    padding: 2rem;
  }

  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-form {
    padding: 1rem;
  }

  .request-card {
    padding: 1.5rem;
  }

  .search-form-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .search-locations {
    gap: 0.75rem;
  }

  .time-section {
    gap: 0.75rem;
  }

  .search-submit {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .location-text-desktop {
    display: none;
  }

  .location-text-mobile {
    display: inline;
  }

  .location-field {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .location-input {
    width: 100%;
  }

  .location-actions {
    width: 100%;
  }

  .location-button {
    width: 100%;
    justify-content: center;
    padding: 0.625rem 1rem;
  }

  .field-row {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .field-main {
    width: 100%;
  }

  .field-radius {
    width: 100%;
  }

  .field-actions {
    width: 100%;
  }

  .time-fields {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

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

  .pagination {
    flex-direction: column;
  }

  .search-form {
    padding: 0.5rem;
  }

  .search-form-content,
  .search-form-content.p-0,
  .search-form-content.no-bg-mobile {
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}

@media (max-width: 767px) {
  .search-form-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}

/* Form Errors */
.form-errors {
  background-color: #fef2f2;
  border: 2px solid #fca5a5;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-block-end: 1.5rem;
}

.form-errors-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.form-errors-icon {
  flex-shrink: 0;
}

.form-errors-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: #f87171;
}

.form-errors-details {
  flex: 1;
}

.form-errors-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #b91c1c;
  margin-bottom: 1rem;
}

.form-errors-list {
  margin-bottom: 1rem;
  gap: 0.75rem;
}

.form-error-item {
  font-weight: 600;
  font-size: 1rem;
  background: rgba(252, 165, 165, 0.08);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #b91c1c;
  min-height: 44px;
}

.form-errors-message {
  color: #b91c1c;
  font-size: 1.125rem;
  margin-block-start: 1rem;
  font-weight: 500;
}

/* Form Layout */
.form-sections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.field-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.field-hint {
  font-size: 0.75rem;
  color: #6b7280;
}

.required-mark {
  color: #dc2626;
}

.input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: #1f2937;
  background-color: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus {
  outline: none;
  border-color: #4A6FA5;
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.2);
}

.input::placeholder {
  color: #9ca3af;
}

.datetime-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
}

.form-submit {
  display: flex;
  justify-content: flex-end;
  margin-block-start: 2rem;
  width: 100%;
}

.submit-button {
  width: 100%;
  background-color: #4A6FA5;
  color: white;
  font-weight: 500;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
  text-align: center;
}

.submit-button:hover {
  background-color: #3A5A87;
}

/* Alert */
.alert {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: slide-in 0.3s ease-out;
  min-height: 44px;
  font-size: 1rem;
}

.alert--error {
  background-color: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
}

.alert-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.alert-message {
  flex: 1;
}

.alert-close {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.5rem;
  margin-inline-start: 0.75rem;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.alert-close:hover {
  opacity: 1;
}

@keyframes slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Breadcrumbs */
.breadcrumbs {
  margin-block-end: 1rem;
  padding: 0.5rem 0;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.4rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  scrollbar-width: none;
}
.breadcrumbs-list::-webkit-scrollbar { display: none; }

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-neutral-slate);
  flex-shrink: 0;
}
.breadcrumb-link {
  color: inherit;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s;
}
.breadcrumb-link:hover {
  color: var(--color-brand-primary);
}
.breadcrumb-current {
  color: var(--color-brand-primary);
  font-size: 0.85rem;
  font-weight: 800;
  white-space: nowrap;
}
.breadcrumb-separator {
  color: var(--color-neutral-mist);
  display: flex;
  align-items: center;
}
  font-size: 0.875rem;
}

.breadcrumb-link {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.breadcrumb-link:hover {
  color: #1f2937;
}

.breadcrumb-current {
  color: #111827;
  font-weight: 500;
}

.breadcrumb-separator {
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
  flex-shrink: 0;
}

.breadcrumb-home-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #4A6FA5;
}

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

.search-preview {
  transition: opacity 0.3s, visibility 0.3s, height 0.3s, padding 0.3s, margin 0.3s;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  padding: 2rem;
  margin: 0 1rem;
  opacity: 1;
  visibility: visible;
  height: auto;
  overflow: hidden;
}

.search-preview.collapsed {
  display: none !important;
}

.search-preview-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.75rem;
  background-color: #f8fafc;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}

.search-preview-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #475569;
}

.search-preview-label {
  font-weight: 600;
  color: #64748b;
}

.search-preview-value {
  color: #1e293b;
}

@media (max-width: 768px) {
  .search-form-header {
    flex-direction: column;
    align-items: stretch;
  }

  .search-preview {
    margin: 0.75rem 0;
    border-radius: 0.75rem;
  }

  .search-preview-content {
    padding: 1.25rem;
    gap: 0.75rem;
  }

  .search-preview-item {
    font-size: 0.9375rem;
    padding: 0.5rem 0;
  }

  .search-preview-label {
    font-size: 0.9375rem;
  }

  .search-preview-value {
    font-size: 1rem;
  }

  .search-preview-expand {
    padding: 1rem;
    min-height: 44px;
  }

  .search-preview-expand:hover,
  .search-preview-expand:focus {
    background: #f3f4f6;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.12);
  }
}

.location-icon {
  width: 1.1rem;
  height: 1.1rem;
  display: inline-block;
  vertical-align: middle;
}

.location-button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: #f3f4f6;
  color: #1f2937;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.25rem 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.location-button:hover {
  background-color: #F3E3C2;
  border-color: #4A6FA5;
  color: #4A6FA5;
}

.search-section-label {
  display: block;
  width: 100%;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1f2937;
  margin-top: 2rem;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  position: relative;
}

.alert--top {
  position: static;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
}

.search-preview-expand {
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  transition: background 0.2s, box-shadow 0.2s;
  border-radius: 0.5rem 0.5rem 0 0;
  outline: none;
}

.search-preview-expand:hover,
.search-preview-expand:focus {
  background: #f3f4f6;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.08);
}

.search-preview {
  border-bottom: 1px solid #e5e7eb;
  border-radius: 1rem 1rem 0 0;
  margin-bottom: -1px;
}

.search-toggle-button {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-top: 0;
}

/* Notification Section Improvements */
.notification-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem 1rem;
}

@media (max-width: 640px) {
  .notification-section {
    padding: 1rem 0.75rem;
  }

  .notification-section>div:first-child {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 0.5em;
  }

  .notification-section .switch {
    margin-right: 0.75rem;
    flex-shrink: 0;
  }

  .notification-section label[for="request_notify_of_matches"] {
    font-size: 1.05em;
    line-height: 1.2;
    margin-bottom: 0.25em;
    display: block;
    font-weight: 600;
  }

  .notification-section>div>div {
    margin-left: 0.5em;
  }

  .notification-section div[style*="color: #374151;"] {
    margin-top: 0.25em;
    font-size: 0.97em;
  }
}

@media (max-width: 600px) {

  body,
  html {
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    box-sizing: border-box !important;
  }

  .form-card,
  .main-container,
  .page,
  .content,
  .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
  }

  .form-card {
    margin-top: 0.2rem !important;
    margin-bottom: 0.2rem !important;
  }

  .form-title {
    font-size: 1rem !important;
    margin-bottom: 0.3rem !important;
    margin-top: 0.3rem !important;
  }

  .form-subtitle {
    font-size: 0.95rem !important;
    margin-bottom: 0.7rem !important;
  }

  input[type="email"],
  input[type="text"],
  .input {
    padding: 0.5rem 0.75rem !important;
    font-size: 1rem !important;
    min-height: 38px !important;
    border-radius: 0.5rem !important;
  }

  /* Mobile defaults for unstyled / generic buttons. Intentionally NOT
     !important: a bare `button` selector must not override component button
     classes (chat composer, icon buttons, pills, etc.) that set their own
     size — that was blowing those up to 38px touch targets across the app.
     Components win by class specificity; truly unstyled buttons and `.btn`
     still pick these up (css-zero loads after button.css). */
  button,
  .btn,
  .submit-button {
    padding: 0.7rem 1rem;
    font-size: 1.05rem;
    border-radius: 1.2rem;
    min-height: 38px;
  }

  .fab-create-ride {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.3rem !important;
    bottom: 1rem !important;
    right: 1rem !important;
  }

  .breadcrumbs {
    margin-bottom: 0.5rem !important;
    padding: 0.3rem 0.5rem !important;
  }

  .hero-section .hero-content .hero-title {
    font-size: 1.1rem !important;
    text-align: center !important;
    margin-bottom: 0.7rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
  }

  .hero-section .hero-content .hero-emoji {
    font-size: 1.3rem !important;
  }

  .hero-section .hero-content>div[style*='background: #f0f7ff'] {
    display: none !important;
  }

  .hero-section .hero-content>p {
    display: none !important;
  }

  /* Dashboard mobile tweaks */
  .dashboard-container {
    padding: 0.3rem 0.2rem !important;
    max-width: 100% !important;
  }

  .dashboard-card {
    padding: 0.7rem 0.5rem !important;
    border-radius: 0.5rem !important;
    margin-bottom: 0.7rem !important;
  }

  .dashboard-tab-content {
    padding: 0.2rem 0 !important;
  }

  .dashboard-tabs {
    display: flex !important;
    overflow-x: auto !important;
    gap: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    padding-bottom: 0.2rem !important;
  }

  .dashboard-tab,
  .dashboard-tab-active {
    font-size: 1rem !important;
    padding: 0.3rem 0.7rem !important;
    min-width: 80px !important;
    border-radius: 0.7rem !important;
  }

  .dashboard-tab-active {
    font-weight: 700 !important;
  }

  .dashboard-card h3,
  .dashboard-card .text-xl {
    font-size: 1.1rem !important;
    margin-bottom: 0.3rem !important;
  }

  .dashboard-card p,
  .dashboard-card .text-gray-500 {
    font-size: 0.97rem !important;
    margin-bottom: 0.2rem !important;
  }

  .dashboard-card .match-preview-list,
  .dashboard-card .match-preview-block {
    font-size: 0.95rem !important;
    margin-bottom: 0.2rem !important;
  }

  .dashboard-card .btn,
  .dashboard-card button {
    font-size: 1rem !important;
    padding: 0.5rem 0.7rem !important;
    min-width: 90px !important;
    border-radius: 1rem !important;
  }

  .header-content {
    position: relative !important;
  }

  .user-menu-container {
    position: absolute !important;
    top: 0.5rem !important;
    right: 0.7rem !important;
    z-index: 10 !important;
    transform: none !important;
  }

  .user-avatar-btn,
  .user-avatar {
    width: 2.2rem !important;
    height: 2.2rem !important;
    padding: 0 !important;
  }
}

/*
 * Mobile Utility Classes (max-width: 600px)
 * Usage: Add these classes to elements for quick mobile tweaks.
 * - .m-0, .p-0, .mt-0, .mb-0, .pt-0, .pb-0: Remove margin/padding
 * - .fs-sm, .fs-xs: Smaller font sizes
 * - .hide-mobile: Hide on mobile
 * - .show-mobile: Show only on mobile (use display: none by default)
 */
@media (max-width: 600px) {
  .m-0 {
    margin: 0 !important;
  }

  .p-0 {
    padding: 0 !important;
  }

  .mt-0 {
    margin-top: 0 !important;
  }

  .mb-0 {
    margin-bottom: 0 !important;
  }

  .pt-0 {
    padding-top: 0 !important;
  }

  .pb-0 {
    padding-bottom: 0 !important;
  }

  .fs-sm {
    font-size: 0.95rem !important;
  }

  .fs-xs {
    font-size: 0.8rem !important;
  }

  .hide-mobile {
    display: none !important;
  }

  .show-mobile {
    display: block !important;
  }
}

/* By default, .show-mobile is hidden on desktop */
.show-mobile {
  display: none;
}

@media (max-width: 600px) {
  .user-menu-container {
    display: none !important;
  }
}

@media (min-width: 601px) {
  .user-menu-container {
    display: block !important;
  }
}

@media (max-width: 600px) {

  /* Even tighter form spacing */
  .form-card {
    padding: 0.2rem !important;
  }

  .form-group,
  .form-label,
  label,
  .field-label,
  .input,
  input[type="text"],
  input[type="email"],
  input[type="number"],
  textarea {
    margin-bottom: 0.2rem !important;
    line-height: 1.1 !important;
  }
}

@media (max-width: 600px) {

  .flash,
  .alert,
  .notice,
  .flash-message {
    position: fixed !important;
    top: 4.5rem !important;
    /* Adjust as needed for your header height */
    left: 0 !important;
    width: 100vw !important;
    z-index: 9999 !important;
    margin: 0 !important;
    border-radius: 0 0 0.5rem 0.5rem !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 600px) {

  .search-form-content,
  .search-form-content.p-0,
  .search-form-content.no-bg-mobile {
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}

@media (max-width: 600px) {
  .search-toggle-button {
    width: 100% !important;
    border-radius: 0 !important;
    padding: 0.7rem 0.5rem !important;
    font-size: 1rem !important;
    background: #f8fafc !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: none !important;
    margin: 0 !important;
    justify-content: flex-start !important;
  }

  .search-toggle-icon {
    width: 1.1rem !important;
    height: 1.1rem !important;
  }
}

@media (max-width: 600px) {
  .search-preview-content {
    display: block !important;
    padding: 0.7rem 0.7rem !important;
    gap: 0 !important;
  }

  .search-preview-item {
    display: block !important;
    width: 100% !important;
    font-size: 1rem !important;
    margin-bottom: 0.2rem !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: initial !important;
  }

  .search-preview-label {
    font-weight: 600;
    color: #64748b;
    margin-right: 0.3em;
  }

  .search-preview-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 90vw;
    vertical-align: bottom;
  }

  .edit-search-label {
    font-size: 1rem !important;
  }
}

.quick-time-btns {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quick-time-btns button {
  min-width: 44px;
  min-height: 44px;
  border-radius: 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  background: #f3f4f6;
  color: #1f2937;
  border: none;
  transition: background 0.15s;
}

.quick-time-btns button:active {
  background: #e0e7ef;
}

@media (max-width: 640px) {
  .quick-time-btns {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }

  .quick-time-btns button {
    width: 100%;
    font-size: 1.1rem;
    padding: 0.75rem 0;
    margin: 0;
  }
}

/* Tab Toggle */
.search-tabs {
  position: relative;
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0 1.5rem 0;
  justify-content: center;
  width: 420px;
  max-width: 100%;
  background: #f4f8ff;
  border-radius: 2rem;
  padding: 0.25rem;
}

.search-tab {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2341c4;
  background: transparent;
  border: none;
  border-radius: 1.5rem;
  padding: 0.7rem 2.2rem;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 1;
  position: relative;
}

.search-tab.active {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

@media (max-width: 640px) {
  .search-tabs {
    width: 100%;
    margin: 1.5rem 0 1rem 0;
  }

  .search-tab {
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
  }
}

/* Dashboard Components */
.dashboard-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1e40af;
  margin-bottom: 0.5rem;
  text-align: center;
  letter-spacing: 0.01em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #dc2626;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  min-width: 100px;
  cursor: pointer;
}

.logout-btn:hover {
  background-color: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.logout-btn svg {
  width: 20px;
  height: 20px;
}

.dashboard-tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
}

.dashboard-tab {
  font-size: 1.125rem;
  font-weight: 600;
  color: #6b7280;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.25rem 1rem 0.5rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.dashboard-tab:hover {
  color: #1e40af;
  border-bottom-color: #93c5fd;
}

.dashboard-tab.active {
  color: #1e40af;
  border-bottom-color: #1e40af;
}

.dashboard-tab-content {
  display: block;
}

.dashboard-card {
  background-color: white;
  border-radius: 0.75rem;
  border: 1px solid #f3f4f6;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s;
}

.dashboard-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Request Card Components */
.request-card-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.request-card-details {
  flex: 1;
}

.request-card-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.request-card-info {
  margin-bottom: 0.5rem;
}

.request-card-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.request-card-row--time {
  margin-bottom: 0.5rem;
}

.request-card-row--phone {
  margin-bottom: 0;
}

.request-card-text {
  color: #4b5563;
  font-size: 0.875rem;
}

.request-card-phone {
  color: #4A6FA5;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.request-card-phone:hover {
  color: #8C6820;
}

.flexibility-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4A6FA5;
  background-color: #F3E3C2;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  margin-top: 0.5rem;
}

.request-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4A6FA5;
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  min-width: 120px;
}

.btn:hover {
  background-color: #F3E3C2;
  color: #8C6820;
}

.btn--chat {
  background-color: #2563eb;
  color: white;
  border-color: #2563eb;
}

.btn--chat:hover {
  background-color: #1d4ed8;
  color: white;
}

/* Matches Section */
.matches-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.matches-preview {
  position: relative;
  margin-bottom: 1rem;
  min-height: 2.5rem;
}

.match-preview-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.match-preview-block {
  background-color: #f0f7ff;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  box-shadow: 0 1px 4px rgba(74, 111, 165, 0.07);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.match-name {
  font-weight: 600;
  color: #1e40af;
}

.match-details {
  color: #374151;
  font-size: 0.875rem;
}

.more-matches {
  color: #6b7280;
  font-size: 0.875rem;
  margin-left: 0.5rem;
}

.toggle-matches-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background: none;
  border: none;
  padding: 0;
  color: #4A6FA5;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s;
}

.toggle-matches-btn:hover {
  color: #8C6820;
}

.chevron-icon {
  transition: transform 0.2s;
  width: 18px;
  height: 18px;
}

.matches-details {
  display: none;
}

.matches-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.match-card {
  background-color: #f0f9ff;
  border: 1px solid #bae6fd;
}

.match-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #e0f2fe;
  color: #0369a1;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.2rem 0.75rem;
  margin-bottom: 0.5rem;
}

.match-label svg {
  width: 1.1rem;
  height: 1.1rem;
}

.match-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.time-difference {
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
}

/* Empty State */
.empty-state {
  background-color: white;
  border-radius: 0.75rem;
  border: 1px solid #f3f4f6;
  padding: 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.empty-state-image {
  width: 120px;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.empty-state-message {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

/* Icons */
.icon {
  width: 1rem;
  height: 1rem;
  color: #6b7280;
}

.icon--arrow-down,
.icon--arrow-up {
  color: #10b981;
}

.icon--clock {
  color: #f59e0b;
}

.icon--phone {
  color: #3b82f6;
}

/* Mobile Responsive Styles for Matches Page */
@media (max-width: 768px) {
  .dashboard-title {
    font-size: 1.25rem;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .dashboard-actions {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .logout-btn {
    width: 100%;
    justify-content: center;
    min-width: auto;
  }

  .dashboard-tabs {
    gap: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .dashboard-tab {
    font-size: 1rem;
    padding: 0.25rem 0.75rem 0.5rem;
    white-space: nowrap;
  }

  .dashboard-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .request-card-content {
    gap: 0.75rem;
  }

  .request-card-name {
    font-size: 1.125rem;
  }

  .request-actions {
    flex-direction: row;
    gap: 0.5rem;
  }

  .btn {
    flex: 1;
    min-width: auto;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }

  .matches-preview {
    min-height: auto;
  }

  .toggle-matches-btn {
    position: static;
    margin-top: 0.5rem;
    justify-content: center;
    width: 100%;
  }

  .matches-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .match-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .empty-state {
    padding: 1.5rem;
  }

  .empty-state-image {
    width: 80px;
  }

  .empty-state-title {
    font-size: 1.125rem;
  }
}

@media (max-width: 640px) {
  .dashboard-title {
    font-size: 1.125rem;
  }

  .dashboard-actions {
    gap: 0.5rem;
  }

  .logout-btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }

  .dashboard-tabs {
    gap: 0.5rem;
  }

  .dashboard-tab {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem 0.5rem;
  }

  .dashboard-card {
    padding: 0.75rem;
    border-radius: 0.5rem;
  }

  .request-card-name {
    font-size: 1rem;
  }

  .request-card-text {
    font-size: 0.8rem;
  }

  .flexibility-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }

  .request-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    font-size: 0.75rem;
    padding: 0.5rem;
  }

  .match-preview-block {
    padding: 0.4rem 0.75rem;
    gap: 0.5rem;
  }

  .match-name {
    font-size: 0.875rem;
  }

  .match-details {
    font-size: 0.8rem;
  }

  .match-label {
    font-size: 0.875rem;
    padding: 0.15rem 0.5rem;
  }

  .match-label svg {
    width: 1rem;
    height: 1rem;
  }

  .time-difference {
    font-size: 0.7rem;
  }

  .empty-state {
    padding: 1rem;
  }

  .empty-state-image {
    width: 60px;
  }

  .empty-state-title {
    font-size: 1rem;
  }

  .empty-state-message {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .dashboard-title {
    font-size: 1rem;
  }

  .dashboard-actions {
    gap: 0.4rem;
  }

  .logout-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }

  .logout-btn svg {
    width: 18px;
    height: 18px;
  }

  .dashboard-tabs {
    gap: 0.25rem;
  }

  .dashboard-tab {
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem 0.4rem;
  }

  .dashboard-card {
    padding: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .request-card-name {
    font-size: 0.9rem;
  }

  .request-card-text {
    font-size: 0.75rem;
  }

  .icon {
    width: 0.875rem;
    height: 0.875rem;
  }

  .btn {
    font-size: 0.7rem;
    padding: 0.4rem;
  }

  .match-preview-block {
    padding: 0.3rem 0.5rem;
  }

  .match-name {
    font-size: 0.8rem;
  }

  .match-details {
    font-size: 0.75rem;
  }

  .empty-state {
    padding: 0.75rem;
  }

  .empty-state-image {
    width: 50px;
  }

  .empty-state-title {
    font-size: 0.9rem;
  }

  .empty-state-message {
    font-size: 0.8rem;
  }
}

/* Chat Components */
.chat-container {
  /* FULL WIDTH: removed max-width for chat */
  margin: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
}

.chat-header {
  background-color: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem;
  border-radius: 0.5rem 0.5rem 0 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chat-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-info {
  flex: 1;
}

.chat-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.25rem 0;
}

.chat-subtitle {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

.chat-header-actions {
  flex-shrink: 0;
}

.chat-messages {
  flex: 1;
  background-color: #f9fafb;
  overflow-y: auto;
  padding: 1rem;
}

.chat-messages-content {
  max-width: 100%;
}

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  display: flex;
  flex-direction: column;
}

.message--system {
  align-items: center;
}

.message--user {
  align-items: flex-start;
}

.system-message {
  background-color: #e5e7eb;
  color: #6b7280;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  text-align: center;
}

.user-message {
  display: flex;
  gap: 0.75rem;
  max-width: 80%;
}

.message-avatar {
  width: 2rem;
  height: 2rem;
  background-color: #3b82f6;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.message-content {
  flex: 1;
  background-color: white;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.message-author {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.875rem;
}

.message-time {
  color: #9ca3af;
  font-size: 0.75rem;
}

.message-text {
  color: #374151;
  line-height: 1.5;
}

.empty-chat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
}

.empty-chat-icon {
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-chat-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
}

.empty-chat-description {
  color: #6b7280;
  margin: 0;
}

.chat-input {
  background-color: white;
  border-top: 1px solid #e5e7eb;
  padding: 1rem;
  border-radius: 0 0 0.5rem 0.5rem;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
}

.chat-input-content {
  max-width: 100%;
}

.message-form {
  width: 100%;
}

.input-group {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.message-input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  resize: none;
  min-height: 2.5rem;
  max-height: 6rem;
  font-family: inherit;
}

.message-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Login Prompt */
.login-prompt {
  background-color: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.login-prompt-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.login-prompt-icon {
  flex-shrink: 0;
  color: #0369a1;
}

.login-prompt-text {
  flex: 1;
}

.login-prompt-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0369a1;
  margin: 0 0 0.25rem 0;
}

.login-prompt-description {
  color: #0c4a6e;
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.4;
}

.login-prompt-actions {
  flex-shrink: 0;
}

/* Mobile Responsive Chat Styles */
@media (max-width: 768px) {
  .chat-container {
    height: calc(100vh - 150px);
    padding: 0.5rem;
  }

  .chat-header {
    padding: 0.75rem;
  }

  .chat-title {
    font-size: 1.125rem;
  }

  .chat-messages {
    padding: 0.75rem;
  }

  .user-message {
    max-width: 90%;
  }

  .message-avatar {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.8rem;
  }

  .message-content {
    padding: 0.5rem 0.75rem;
  }

  .login-prompt {
    padding: 1rem;
  }

  .login-prompt-content {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .login-prompt-actions {
    width: 100%;
  }

  .login-prompt-actions .btn {
    width: 100%;
  }

  .join-prompt {
    padding: 1rem;
  }

  .join-prompt-content {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .join-prompt-actions {
    width: 100%;
  }

  .join-prompt-actions .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .chat-container {
    height: calc(100vh - 120px);
    padding: 0.25rem;
  }

  .chat-header {
    padding: 0.5rem;
  }

  .chat-title {
    font-size: 1rem;
  }

  .chat-subtitle {
    font-size: 0.8rem;
  }

  .chat-messages {
    padding: 0.5rem;
  }

  .user-message {
    max-width: 95%;
  }

  .message-avatar {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.75rem;
  }

  .message-content {
    padding: 0.4rem 0.6rem;
  }

  .message-author {
    font-size: 0.8rem;
  }

  .message-time {
    font-size: 0.7rem;
  }

  .message-text {
    font-size: 0.875rem;
  }

  .login-prompt {
    padding: 0.75rem;
  }

  .login-prompt-title {
    font-size: 0.9rem;
  }

  .login-prompt-description {
    font-size: 0.8rem;
  }

  .join-prompt {
    padding: 0.75rem;
  }

  .join-prompt-title {
    font-size: 0.9rem;
  }

  .join-prompt-description {
    font-size: 0.8rem;
  }
}

/* Join Prompt */
.join-prompt {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.join-prompt-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.join-prompt-icon {
  flex-shrink: 0;
  color: #059669;
}

.join-prompt-text {
  flex: 1;
}

.join-prompt-title {
  font-size: 1rem;
  font-weight: 600;
  color: #059669;
  margin: 0 0 0.25rem 0;
}

.join-prompt-description {
  color: #065f46;
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.4;
}

.join-prompt-actions {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .edit-btn-desktop {
    display: none !important;
  }

  .edit-btn-mobile {
    display: inline !important;
  }

  .edit-btn-link-mobile {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #4A6FA5 !important;
    text-decoration: underline !important;
  }
}

@media (min-width: 601px) {
  .edit-btn-desktop {
    display: block !important;
  }

  .edit-btn-mobile {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .edit-btn-container {
    display: block !important;
  }

  .edit-btn-link {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #4A6FA5 !important;
    text-decoration: none !important;
    background: #f0f9ff !important;
    border: 1px solid #bae6fd !important;
    border-radius: 1.5rem !important;
    padding: 0.4rem 0.8rem !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  .edit-btn-link:hover {
    background: #dbeafe !important;
    color: #8C6820 !important;
  }
}

@media (min-width: 601px) {
  .edit-btn-container {
    display: block !important;
  }

  .edit-btn-link {
    /* Keep original desktop styling */
  }
}