/* ====================================
   Shared Styles for Resources Pages
   (Contact, FAQs, Locations, Calculators, etc.)
   ==================================== */

/* Hero Section - Matching personal/business pages */
.resources-hero {
  background: linear-gradient(135deg, hsl(var(--base) / 0.1) 0%, hsl(var(--base) / 0.05) 100%);
  color: #1a2b3c;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.resources-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: hsl(var(--base) / 0.03);
  border-radius: 50%;
  z-index: 0;
}

.resources-hero .container {
  position: relative;
  z-index: 1;
  margin-top: 100px; /* Fixes menu overlap */
  padding-top: 80px;
  padding-bottom: 80px;
}

.resources-hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #1a2b3c;
}

.resources-hero .lead {
  font-size: 20px;
  max-width: 700px;
  margin-bottom: 30px;
  color: #4a5568;
}

/* Hero Stats (for pages that use them) */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.hero-stat-item {
  text-align: center;
}

.hero-stat-item .number {
  font-size: 32px;
  font-weight: 800;
  display: block;
  line-height: 1.2;
  color: hsl(var(--base));
}

.hero-stat-item .label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c757d;
}

/* Card Grids */
.card-grid {
  display: grid;
  gap: 25px;
  margin: 50px 0;
}

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

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

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

/* Base Card Styles */
.base-card {
  background: white;
  border-radius: 24px;
  padding: 30px 25px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid hsl(var(--base) / 0.1);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.base-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  border-color: hsl(var(--base));
}

.card-badge {
  position: absolute;
  top: 15px;
  right: 20px;
  background: hsl(var(--base));
  color: white;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.card-icon {
  width: 70px;
  height: 70px;
  background: hsl(var(--base) / 0.1);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.card-icon i {
  font-size: 35px;
  color: hsl(var(--base));
}

.base-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 15px;
}

.base-card p {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Contact Cards Specific */
.contact-card {
  background: white;
  border-radius: 24px;
  padding: 35px 25px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid hsl(var(--base) / 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  border-color: hsl(var(--base));
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: hsl(var(--base) / 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.contact-icon i {
  font-size: 40px;
  color: hsl(var(--base));
}

.contact-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 15px;
}

.contact-card p {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-link {
  color: hsl(var(--base));
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-link:hover {
  color: #1a2b3c;
  text-decoration: underline;
}

.contact-detail {
  font-size: 16px;
  color: #1a2b3c;
  margin: 5px 0;
}

.contact-detail i {
  color: hsl(var(--base));
  width: 25px;
  margin-right: 10px;
}

/* Branch Cards */
.branch-card {
  background: white;
  border-radius: 24px;
  padding: 25px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid hsl(var(--base) / 0.1);
  height: 100%;
}

.branch-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: hsl(var(--base));
}

.branch-card h4 {
  font-size: 20px;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 15px;
}

.branch-hours {
  border-top: 1px solid hsl(var(--base) / 0.1);
  margin-top: 15px;
  padding-top: 15px;
}

.branch-hours p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  color: #6c757d;
}

.branch-hours .day {
  font-weight: 600;
  color: #1a2b3c;
}

/* FAQ Styles */
.faq-category {
  margin-bottom: 40px;
}

.faq-category h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid hsl(var(--base) / 0.2);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.faq-item {
  background: white;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid hsl(var(--base) / 0.1);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: hsl(var(--base) / 0.3);
}

.faq-item h4 {
  font-size: 18px;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 10px;
}

.faq-item p {
  color: #6c757d;
  line-height: 1.6;
  margin: 0;
}

/* Map Container */
.map-container {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  margin: 40px 0;
  height: 450px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid hsl(var(--base) / 0.1);
}

.map-placeholder {
  text-align: center;
  color: #6c757d;
}

.map-placeholder i {
  font-size: 64px;
  color: hsl(var(--base) / 0.3);
  margin-bottom: 20px;
}

/* Location Search */
.location-search {
  background: white;
  border-radius: 50px;
  padding: 5px;
  display: flex;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.location-search input {
  flex: 1;
  border: none;
  padding: 15px 25px;
  border-radius: 50px;
  font-size: 16px;
}

.location-search input:focus {
  outline: none;
}

.location-search button {
  background: hsl(var(--base));
  color: white;
  border: none;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.location-search button:hover {
  background: #1a2b3c;
}

/* Form Styles */
.contact-form {
  background: white;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid hsl(var(--base) / 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1a2b3c;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: hsl(var(--base));
  box-shadow: 0 0 0 3px hsl(var(--base) / 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Buttons */
.btn-primary {
  background: hsl(var(--base));
  color: white;
  border: none;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  background: #1a2b3c;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background: transparent;
  color: hsl(var(--base));
  border: 2px solid hsl(var(--base));
  padding: 13px 33px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-outline:hover {
  background: hsl(var(--base));
  color: white;
}

/* Alert Boxes */
.alert-box {
  background: #f8f9fa;
  border-left: 4px solid hsl(var(--base));
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.alert-box.warning {
  border-left-color: #ffc107;
  background: #fff3cd;
}

.alert-box.danger {
  border-left-color: #dc3545;
  background: #f8d7da;
}

.alert-box.success {
  border-left-color: #28a745;
  background: #d4edda;
}

.alert-box h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.alert-box p {
  margin: 0;
  color: #6c757d;
}

.alert-box.warning p {
  color: #856404;
}

/* Responsive */
@media (max-width: 1200px) {
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .resources-hero .container {
    margin-top: 80px;
    padding-top: 60px;
    padding-bottom: 60px;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .resources-hero .container {
    margin-top: 60px;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  
  .resources-hero h1 {
    font-size: 36px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .card-grid-4,
  .card-grid-3,
  .card-grid-2 {
    grid-template-columns: 1fr;
  }
  
  .location-search {
    flex-direction: column;
    border-radius: 24px;
  }
  
  .location-search button {
    width: 100%;
    border-radius: 24px;
  }
  
  .contact-form {
    padding: 25px;
  }
  
  .accordion-header,
  .faq-accordion-header {
    font-size: 16px;
    padding: 18px 20px;
  }
}

/* ====================================
   Accordion Styles - Added for FAQ pages
   ==================================== */

.accordion-modern {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.accordion-item {
  border-bottom: 1px solid hsl(var(--base) / 0.1);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  padding: 22px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
  color: #1a2b3c;
  transition: all 0.3s ease;
  background: white;
}

.accordion-header:hover {
  background: hsl(var(--base) / 0.02);
  color: hsl(var(--base));
}

.accordion-header i {
  transition: transform 0.3s ease;
  color: hsl(var(--base));
  font-size: 20px;
}

.accordion-header.active i {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0 25px 25px;
  color: #6c757d;
  line-height: 1.7;
  display: none;
}

.accordion-content.show {
  display: block;
}

.accordion-content h4 {
  color: #1a2b3c;
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 10px;
}

.accordion-content h4:first-child {
  margin-top: 0;
}

.accordion-content ul,
.accordion-content ol {
  padding-left: 20px;
  margin-bottom: 20px;
}

.accordion-content li {
  margin-bottom: 8px;
}

/* FAQ specific styles */
.faq-accordion {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.faq-accordion-item {
  border-bottom: 1px solid hsl(var(--base) / 0.1);
}

.faq-accordion-item:last-child {
  border-bottom: none;
}

.faq-accordion-header {
  padding: 22px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
  color: #1a2b3c;
  transition: all 0.3s ease;
  background: white;
}

.faq-accordion-header:hover {
  background: hsl(var(--base) / 0.02);
  color: hsl(var(--base));
}

.faq-accordion-header i {
  transition: transform 0.3s ease;
  color: hsl(var(--base));
  font-size: 20px;
}

.faq-accordion-header.active i {
  transform: rotate(180deg);
}

.faq-accordion-content {
  padding: 0 25px 25px;
  color: #6c757d;
  line-height: 1.7;
  display: none;
}

.faq-accordion-content.show {
  display: block;
}

