/* Global Styles */
body {
  font-family: "Arial", sans-serif;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #20c997, #198754);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

/* Card Hover Effect */
.hover-shadow {
  transition: all 0.3s ease;
  border: none !important;
}

.hover-shadow:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

/* Provider Card */
.provider-card {
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  margin-bottom: 1rem;
}

.provider-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #20c997;
}

.rating-stars {
  color: #ffc107;
  font-size: 1rem;
}

/* Custom Buttons */
.btn-success {
  background-color: #20c997;
  border-color: #20c997;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-success:hover {
  background-color: #198754;
  border-color: #198754;
  transform: translateY(-1px);
}

.btn-outline-success {
  color: #20c997;
  border-color: #20c997;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-success:hover {
  background-color: #20c997;
  border-color: #20c997;
  transform: translateY(-1px);
}

/* Navigation */
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Form Controls */
.form-control,
.form-select {
  border-radius: 8px;
  border: 1px solid #e9ecef;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #20c997;
  box-shadow: 0 0 0 0.2rem rgba(32, 201, 151, 0.25);
}

/* Input Group */
.input-group-text {
  border-radius: 8px 0 0 8px;
  background-color: #f8f9fa;
  border-color: #e9ecef;
}

/* Cards */
.card {
  border-radius: 12px;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card-header {
  border-radius: 12px 12px 0 0 !important;
  border-bottom: 1px solid #e9ecef;
  font-weight: 600;
}

/* Badges */
.badge {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

/* Footer */
.footer {
  background-color: #212529;
  color: #fff;
  padding: 60px 0 30px;
  margin-top: 5rem;
}

.footer a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #343a40;
  padding-top: 20px;
  margin-top: 40px;
}

.footer ul {
  padding-left: 0;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0;
  }

  .display-4 {
    font-size: 2.5rem;
  }

  .provider-card .row {
    text-align: center;
  }

  .provider-card .col-md-4 {
    margin-top: 1rem;
  }
}

/* Animation for page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeInUp 0.6s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #20c997;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #198754;
}

/* Loading states */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(32, 201, 151, 0.25);
}

/* Provider verification badge */
.fa-check-circle {
  font-size: 1.1rem;
}

/* Star ratings */
.rating-stars {
  letter-spacing: 2px;
}

/* Price highlighting */
.text-success.fw-bold {
  font-size: 1.25rem;
}

/* Service count styling */
.text-muted.small {
  font-size: 0.875rem;
}
