/* Modern Therapist Theme - Light & Calming */

:root {
  /* Color Palette */
  --primary-color: #3A5A5E; /* Deep calming teal */
  --primary-light: #5A7D81;
  --secondary-color: #F0F4F4; /* Very light cool grey/mint for backgrounds */
  --accent-color: #D4A373; /* Warm earth tone for CTAs */
  --accent-hover: #C29263;
  
  --text-main: #2C3333; /* Dark charcoal, softer than black */
  --text-muted: #526D70; /* Muted teal/grey */
  --bg-body: #FFFFFF;
  --bg-surface: #F8FAFA;
  
  --border-color: #E1E8E8;

  /* Spacing & Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  
  /* Bootstrap Overrides */
  --bs-primary: var(--primary-color);
  --bs-primary-rgb: 58, 90, 94;
  --bs-body-bg: var(--bg-body);
  --bs-body-color: var(--text-main);
  --bs-link-color: var(--primary-color);
  --bs-link-hover-color: var(--primary-light);
  
  /* Fonts */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif; /* We will add this import */
}

/* Global Styles */
html, body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* Prevent horizontal scroll from AOS animations */
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--primary-color);
  letter-spacing: -0.02em;
}

.text-light-emphasis {
  color: var(--text-muted) !important;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 2rem; /* Pill shape is modern */
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(58, 90, 94, 0.2);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active {
  background-color: var(--primary-light) !important;
  border-color: var(--primary-light) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(58, 90, 94, 0.25);
}

.btn-primary:disabled, .btn-primary.disabled {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  opacity: 0.7;
}


.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background-color: transparent;
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active, .btn-outline-primary.active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
}

.btn:focus, .btn.focus {
  box-shadow: 0 0 0 3px rgba(58, 90, 94, 0.25) !important;
}

.btn-accent {
  background-color: var(--accent-color);
  color: white;
  border: none;
}
.btn-accent:hover {
  background-color: var(--accent-hover);
  color: white;
}

/* Navbar */
.navbar {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.navbar-brand {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--primary-color) !important;
  font-size: 1.5rem;
}

.nav-link {
  color: var(--text-main) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color) !important;
}

/* Hero Section */
.hero {
  background-color: var(--secondary-color);
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

@media (max-width: 768px) {
  .hero {
    padding: 2rem 0;
  }
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg); /* Less round than pill, soft rectangle */
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Cards */
.card-custom {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.card-custom:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  border-color: transparent;
}

.icon-box {
  width: 3rem;
  height: 3rem;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Sections */
section {
  padding: 5rem 0;
}

.bg-surface {
  background-color: var(--bg-surface);
}

/* Contact/Forms */
.form-control {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(58, 90, 94, 0.1);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.contact-modal-progress-wrapper {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background-color: white;
  padding: 1rem 1.25rem;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.04);
}

.contact-modal-progress {
  height: 6px;
  background-color: rgba(58, 90, 94, 0.1);
  border-radius: 999px;
}

.contact-modal-progress .contact-modal-progress-bar {
  background: var(--primary-color);
  transition: width 0.35s ease;
  border-radius: inherit;
}

.contact-step-title {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.contact-modal-steps {
  min-height: 130px;
}

.contact-modal-step {
  display: none;
  animation: fadeUp 0.35s ease;
}

.contact-modal-step.active {
  display: block;
}

/* Vibrant Modal Theme */
.modal-vibrant {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
}

.modal-vibrant .modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Override global heading colors for vibrant modal */
.modal-vibrant h1, 
.modal-vibrant h2, 
.modal-vibrant h3, 
.modal-vibrant h4, 
.modal-vibrant h5, 
.modal-vibrant h6,
.modal-vibrant .modal-title {
  color: white !important;
}

.modal-vibrant .text-muted {
  color: rgba(255, 255, 255, 0.8) !important;
}

.modal-vibrant .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-vibrant .contact-modal-progress-wrapper {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.modal-vibrant .contact-modal-progress {
  background-color: rgba(0, 0, 0, 0.2);
}

.modal-vibrant .contact-modal-progress-bar {
  background-color: var(--accent-color);
}

.modal-vibrant .form-label {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Keep inputs white for contrast, but soften the border */
.modal-vibrant .form-control,
.modal-vibrant .form-select {
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
}
.modal-vibrant .form-control::placeholder,
.modal-vibrant .form-select::placeholder {
  color: rgba(255, 255, 255, 0.65);
  opacity: 1;
}

.modal-vibrant .form-control:focus,
.modal-vibrant .form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.25);
}

.modal-vibrant .contact-modal-form .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='white' d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.modal-vibrant .contact-modal-form .form-select option:disabled {
  color: rgba(255, 255, 255, 0.65);
}

.modal-vibrant .contact-step-prev {
  color: rgba(255, 255, 255, 0.7) !important;
}
.modal-vibrant .contact-step-prev:hover {
  color: white !important;
}

.modal-vibrant .btn-outline-primary {
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}
.modal-vibrant .btn-outline-primary:hover {
  background-color: white !important;
  border-color: white !important;
  color: var(--primary-color) !important;
}

.modal-vibrant .btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white; /* Keep as white but ensure it's readable, or switch to dark if needed */
}
.modal-vibrant .btn-primary:hover {
  background-color: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  color: white !important;
}

.modal-vibrant a {
  color: var(--accent-color) !important;
}

/* Success View in Vibrant Modal */
.modal-vibrant .contact-success-icon {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.05);
}

.contact-modal-actions .btn {
  min-width: 150px;
}

.contact-step-submit {
  box-shadow: 0 12px 30px rgba(58, 90, 94, 0.25);
}

.contact-modal-actions .d-flex {
  width: 100%;
  order: 1;
  gap: 0;
}


.contact-modal-actions .btn {
  width: 100%;
  /* Remove default background/color here so we can specificy per button type */
  border: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

/* Primary Action (Next/Submit) - White Button */
.contact-modal-actions .contact-step-next,
.contact-modal-actions .contact-step-submit {
  background-color: white;
  color: var(--text-main);
}

.contact-modal-actions .contact-step-next:hover,
.contact-modal-actions .contact-step-next:focus,
.contact-modal-actions .contact-step-submit:hover,
.contact-modal-actions .contact-step-submit:focus {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Secondary Action (Back) - Dark/Primary Button */
.contact-step-prev {
  padding-left: 0;
  padding-right: 0;
  font-weight: 600;
  order: 2;
  width: 100%;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.2); /* Matches the input background for consistency */
  color: white;
  box-shadow: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.contact-step-prev:hover,
.contact-step-prev:focus-visible {
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}


@keyframes fadeUp {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.contact-success-view {
  animation: successFadeIn 0.5s ease forwards;
}

.contact-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(58, 90, 94, 0.1);
  color: var(--primary-color);
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 0 0 8px rgba(58, 90, 94, 0.05);
  animation: successIconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes successFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes successIconPop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 576px) {
  .contact-modal-progress-wrapper {
    padding: 0.85rem;
  }

  .contact-modal-actions {
    padding-top: 1rem;
    flex-direction: column;
    gap: 0.75rem !important;
  }

  /* Wrapper for Next/Submit buttons */
  .contact-modal-actions .d-flex {
    width: 100%;
  }

  .contact-step-next,
  .contact-step-submit {
    width: 100%;
  }

  .contact-step-prev {
    width: 100%;
    text-align: center;
    margin-top: 0.25rem;
  }
}

/* Profile/About */
.profile-img {
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 4rem 0 2rem;
}

.footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: white;
}

/* Utilities */
.rounded-custom { border-radius: var(--radius-md) !important; }
.rounded-large { border-radius: var(--radius-lg) !important; }
.shadow-soft { box-shadow: 0 10px 40px -10px rgba(0,0,0,0.05) !important; }

/* Bento Grid - Modern Update */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.bento-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all 0.3s ease;
}

.bento-item:hover {
  border-color: var(--primary-light);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.bento-item__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}
