@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@400;600&family=Roboto:wght@400;500&display=swap');

:root {
    --primary: #0072CE;
    --secondary: #FFFFFF;
    --tertiary: #4A4A4A;
    --accent: #FFD700;
    --background: #F5F5F5;
    --error: #D32F2F;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--background);
    color: var(--tertiary);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }

button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
}

.accent-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Utility classes */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.rounded { border-radius: 4px; }
.rounded-full { border-radius: 9999px; }
.overflow-hidden { overflow: hidden; }
.shadow { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); }
.transition { transition: all 0.3s ease; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
    font-weight: 600;
    cursor: pointer;
}
.btn-primary { background: var(--primary); color: var(--secondary); border: none; }
.btn-primary:hover { background: #005ba3; }
.btn-secondary { background: var(--secondary); color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: #f0f0f0; }
.btn-accent { background: var(--accent); color: var(--tertiary); border: none; }

/* Text & backgrounds */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-tertiary { color: var(--tertiary); }
.text-accent { color: var(--accent); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-tertiary { background-color: var(--tertiary); }
.bg-accent { background-color: var(--accent); }

a { color: var(--primary); }

/* Header */
header {
    background-color: var(--secondary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky; top: 0; z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}
header .logo a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    white-space: nowrap;
}
nav ul { list-style: none; display: flex; }
nav ul li { margin-right: 1.5rem; }
nav ul li a { color: var(--tertiary); text-decoration: none; transition: color 0.3s ease; }
nav ul li a:hover { color: var(--primary); }

.mobile-menu-btn { display: none; background: none; border: none; color: var(--primary); font-size: 1.5rem; }

.auth-buttons { display: flex; align-items: center; gap: 0.5rem; }

/* Hero Section */
.hero-section { position: relative; background: var(--tertiary); color: var(--secondary); text-align: center; padding: 0; }
.hero-video-placeholder { height: 500px; background-color: var(--tertiary); display: flex; align-items: center; justify-content: center; flex-direction: column; }
.hero-content { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.5); }
.hero-content h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero-content p { font-size: 1.25rem; margin-bottom: 2rem; max-width: 800px; margin: 0 auto; }
.hero-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* Search Form */
.search-form-section { padding: 4rem 0; }
.search-form-card { background: var(--secondary); border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); padding: 2rem; }
.search-form-grid { display: grid; grid-template-columns: repeat(1,1fr); gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: .5rem; font-weight: 600; }
.form-group input, .form-group select {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: #333;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='7' viewBox='0 0 10 7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.search-btn { width: 100%; padding: .75rem; background: var(--primary); color: var(--secondary); border: none; border-radius: 4px; font-weight: 600; cursor: pointer; }
.search-btn:hover { background: #005ba3; }

/* Sections */
.section { padding: 4rem 0; }
.card { background: var(--secondary); border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); padding: 1.5rem; margin-bottom: 1.5rem; }
.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='7' viewBox='0 0 10 7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

/* Ensure dropdowns show custom styling */
select.form-group,
.form-group select {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding-right: 2.5rem;
}

/* Find Your Helper */
.helpers-grid {
    display: grid;
    /* increase min card width for more spacious layout */
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.helper-card { background: var(--secondary); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.1); transition: transform .3s, box-shadow .3s; max-width: 100%; }
.helper-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.helper-image { height: 200px; background: #e0e0e0; display: flex; align-items: center; justify-content: center; }
.helper-details { padding: 1.5rem; }
.helper-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .5rem; }
.helper-badge {
    background: var(--primary);
    color: var(--secondary);
    font-size: .75rem;
    padding: .5rem 1rem;
    border-radius: 9999px;
    white-space: nowrap;
    display: inline-block;
}
.helper-rating {
    display: flex;
    align-items: center;
    margin: 0.5rem 0; /* reduce vertical spacing */
}
.stars { color: var(--accent); display: flex; }
.price {
    font-weight: 700;
    margin-bottom: 0.75rem; /* space below price */
}
.price-amount { color: var(--primary); font-size: 1.25rem; }
.view-profile-btn { background: var(--primary); color: var(--secondary); padding: .5rem 1rem; border-radius: 4px; text-decoration: none; font-weight: 600; transition: background .3s; }
.view-profile-btn:hover {
    background: linear-gradient(135deg, var(--primary), #80bfff);
    transition: background 0.3s ease;
}

/* Pagination */
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2rem; }
.pagination .btn { padding: .5rem .75rem; }

/* Footer */
footer { background: var(--tertiary); color: var(--secondary); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(1,1fr); gap: 2rem; margin-bottom: 3rem; }
.footer-col h4 { font-size: 1.25rem; margin-bottom: 1.5rem; }
.footer-col ul { list-style: none; }
.footer-col li + li { margin-top: .75rem; }
.footer-col a { color: var(--secondary); text-decoration: none; transition: color .3s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.2); }

/* Responsive */
@media (min-width: 768px) {
    .search-form-grid { grid-template-columns: repeat(2,1fr); }
    .helpers-grid { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: repeat(2,1fr); }
}
@media (min-width: 992px) {
    .helpers-grid { grid-template-columns: repeat(3,1fr); max-width: calc(3*300px + 2*1.5rem); margin: 0 auto; }
    .footer-grid { grid-template-columns: repeat(4,1fr); }
}
@media (max-width: 767px) {
    nav ul { display: none; }
    .auth-buttons { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    aside { display: none; }
    .helpers-grid { gap: 1rem; }
}

/* Narrow filter sidebar and let results expand */
aside.card {
    flex: 0 0 auto;
    max-width: 300px; /* slightly wider than form elements */
    padding: 1.5rem;
    height: auto; /* shrink to content */
}
section {
    flex: 1 1 auto;
}

/* Align filter and results at top so sidebar doesn't stretch full height */
main.section .container {
    align-items: flex-start;
}
.plan-card.featured {
  background-color: var(--primary);
  color: var(--secondary);
}
.plan-card.featured .plan-price,
.plan-card.featured .plan-title,
.plan-card.featured .plan-features li {
  color: var(--secondary);
}
.plan-card.featured .btn {
  background-color: var(--secondary);
  color: var(--primary);
  border: none;
}
.plan-card.featured .btn:hover {
  background-color: #e6e6e6;
}
/* Pricing Plans Custom Styles */
.plans-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .plan-card.featured {
    background-color: rgba(0, 114, 206, 0.1);
    color: var(--tertiary);
  }
  
  .plan-card.featured .plan-title,
  .plan-card.featured .plan-price,
  .plan-card.featured .plan-features li {
    color: var(--tertiary);
  }
  
  .plan-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
  }
  
  .plan-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .plan-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
  }
  
  /* Button overrides for pricing cards */
  .btn-outline-primary {
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
  }
  
  .btn-primary {
    background: var(--primary);
    border: none;
    color: var(--secondary);
  }
  
  .btn.btn-primary:hover,
  .btn.btn-outline-primary:hover {
    filter: brightness(0.9);
  }
/* Replace bullets in pricing feature lists with check icons */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 2rem;
  }
  .plan-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
  }
  .plan-features li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1rem;
    line-height: 1;
  }
  /* Style textareas like inputs */
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: #333;
    resize: vertical;
    min-height: 150px;
    line-height: 1.5;
}

/* Placeholder color */
.form-group textarea::placeholder {
    color: #888;
}
.helper-location {
  font-size: 1rem;
  color: var(--tertiary);
  margin: 0.5rem 0;
}
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
}
.dashboard-sidebar {
  width: 250px;
  background-color: var(--primary);
  color: var(--secondary);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0;
}

.dashboard-sidebar h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.dashboard-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dashboard-sidebar a {
  color: var(--secondary);
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.dashboard-sidebar a:hover,
.dashboard-sidebar a.active {
  background: rgba(255, 255, 255, 0.2);
}
.dashboard-container {
  display: flex;
  /* full height if you like: */
  /* height: 100vh; */
}

.dashboard-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 250px;
  background: var(--primary);
  color: var(--secondary);
  padding: 2rem 1rem;
}

.dashboard-main {
  margin-left: 250px;  /* <-- make room for the fixed sidebar */
  padding: 2rem;
}
