/* ========== 🌈 Theme Variables ========== */
:root {
  --primary-color: #00A699;          /* Vibrant teal */
  --primary-color-dark: #00897b;     
  --primary-border-color: #00695c;
  --primary-text-color: #ffffff;

  --body-bg: #f5f7fa;
  --card-bg: #ffffff;
  --muted-text: #6c757d;
  --border-color: #e0e0e0;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;

  /* Bootstrap CSS variable overrides for consistent theming */
  --bs-primary: var(--primary-color);
  --bs-primary-rgb: 0, 166, 153;
  --bs-link-color: var(--primary-color);
  --bs-focus-ring-color: rgba(0,166,153,0.25);
  --bs-border-radius: 0.75rem;
  --bs-border-radius-lg: 1rem;
  --bs-btn-border-radius: 24px;
  --bs-body-font-family: var(--font-sans);
  --bs-body-bg: var(--body-bg);
}

/* ========== 🧱 Layout ========== */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-sans);
  background-color: var(--body-bg);
  color: #212529;
  line-height: 1.6;
}

/* ========== ✍️ Typography ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}

h1 { font-weight: 800; line-height: 1.2; }
h2 { font-weight: 700; line-height: 1.25; }
h3 { font-weight: 700; line-height: 1.3; }
h4, h5, h6 { font-weight: 600; line-height: 1.35; }

.lead { color: #444; font-weight: 400; }

/* Links (avoid affecting button-like links and explicit utility colors) */
a:not(.btn):not([class*="text-"]) {
  color: var(--primary-color);
  text-decoration: none;
}
a:not(.btn):not([class*="text-"]):hover {
  color: var(--primary-color-dark);
  text-decoration: underline;
}

footer {
  margin-top: auto;
  background: #fff;
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--muted-text);
}

/* ========== 🚀 Navbar ========== */
.custom-navbar {
  background-color: #fff;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 2000;
}

.custom-navbar .navbar-brand {
  font-weight: 600;
  font-size: 1.25rem;
  color: #000 !important;
}

.custom-navbar .nav-link {
  font-weight: 500;
  color: #333;
}

.custom-navbar .nav-link:hover {
  color: var(--primary-color);
}

/* ========== 🔘 Buttons (inspired pill style) ========== */
.btn {
  margin-bottom: 0.5rem;
  border-radius: 24px;               /* pill-shaped corners */
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 2rem;             /* generous for touch */
  line-height: 1.25;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.btn-primary {
  background-color: var(--primary-color) !important;
  border: 1px solid var(--primary-border-color) !important;
  color: var(--primary-text-color) !important;
}

.btn-primary:hover {
  background-color: var(--primary-color-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.btn-outline-primary {
  border-radius: 24px;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
}
.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: #fff;
}
.btn-outline-primary.active {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.btn-outline-success {
  border-radius: 24px;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
}

.btn-outline-success:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* ========== 📦 Cards ========== */
.card {
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
  background-color: var(--card-bg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.card-text {
  color: var(--muted-text);
}

/* ========== 📱 Forms & Search ========== */
.search-bar-wrapper {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
}

.search-bar-wrapper form input {
  max-width: 500px;
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 0.65rem 1rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-bar-wrapper form input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0,166,153,0.25);
  outline: none;
}

/* ========== 🏷️ Tags & Badges ========== */
.badge {
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 50rem;
  padding: 0.4em 0.75em;
}

.badge.bg-light {
  background-color: #f1f3f5 !important;
  color: #333 !important;
}

.badge.bg-primary {
  background-color: var(--primary-color) !important;
  color: #fff !important;
}

/* ========== ✨ Utility ========== */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
  color: var(--primary-text-color) !important;
}

.section-title {
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .save-btn-floating {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 1050;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    width: calc(100% - 2rem);
  }
}

/* ========== Custom Switch ========== */
.custom-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  user-select: none;
}

/* Hide native checkbox */
.custom-switch input {
  display: none;
}

/* Slider pill */
.custom-switch .slider {
  position: relative;
  width: 44px;
  height: 24px;
  background: #ccc;
  border-radius: 50px;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

/* Slider knob */
.custom-switch .slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Checked state */
.custom-switch input:checked + .slider {
  background: var(--primary-color);
}

.custom-switch input:checked + .slider::before {
  transform: translateX(20px);
}

/* Optional text next to switch */
.custom-switch .switch-text {
  font-size: 0.85rem;
  color: #444;
}

/* Default: inline inside layout */
.contact-buttons {
  position: static;
}

/* Mobile: float at bottom */
@media (max-width: 767px) {
  .contact-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff; /* white background so it stands out */
    padding: 0.5rem 0;
    margin: 0;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
    z-index: 1050;
  }
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.2));
  color: #fff;
}
.card-overlay h5,
.card-overlay small,
.card-overlay .small {
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
/* =========================
   Modern Form Field Styling
   ========================= */

/* Inputs & Textareas */
input.form-control,
textarea.form-control {
  border-radius: 24px;
  border: 1px solid var(--border-color, #ddd);
  padding: 0.65rem 1rem;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input.form-control:focus,
textarea.form-control:focus {
  border-color: var(--primary-color, #00a699);
  box-shadow: 0 0 0 3px rgba(0,166,153,0.25);
  outline: none;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Dropdowns */
select.form-select {
  border-radius: 24px;
  border: 1px solid var(--border-color, #ddd);
  padding: 0.65rem 1rem;
  font-size: 1rem;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select.form-select:focus {
  border-color: var(--primary-color, #00a699);
  box-shadow: 0 0 0 3px rgba(0,166,153,0.25);
  outline: none;
}

/* Labels */
label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: #333;
}

/* Form group spacing */
.form-group {
  margin-bottom: 1.25rem;
}

/* Placeholder text */
::placeholder {
  color: var(--muted-text, #888);
  opacity: 0.8;
}

/* =========================
   Compact Variants
   ========================= */

/* Compact inputs */
input.form-control.form-control-sm,
textarea.form-control.form-control-sm {
  border-radius: 16px;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
}

/* Compact selects */
select.form-select.form-select-sm {
  border-radius: 16px;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
}

/* Custom arrow button */
.gallery-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.gallery-arrow:hover {
  background: rgba(0,0,0,0.85);
  transform: scale(1.15);
}
