﻿:root {
  --font-primary: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --color-bg: #f5f8ff;
  --color-surface: #ffffff;
  --color-text: #1f2937;
  --color-heading: #0f172a;
  --color-primary: #0e7490;
  --color-primary-bg: #b0cfd8;
  --color-primary-strong: #0b5b72;
  --color-accent: #f59e0b;
  --color-border: #dbe3ef;
  --color-success: #198754;
  --color-danger: #dc3545;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --shadow-soft: 0 8px 26px rgba(15, 23, 42, 0.08);
  --transition-fast: 0.2s ease;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background: radial-gradient(
    circle at top right,
    #e9f6ff 0%,
    var(--color-bg) 40%,
    #f8fafc 100%
  );
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-heading);
}

.section-head {
  margin-bottom: 1.3rem;
}

.section-head h2,
.section-head .section-heading {
  position: relative;
  display: inline-block;
  margin: 0 0 0.7rem;
  padding: 0 0 0.55rem;
  font-family: var(--font-primary);
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--color-primary);
}

.section-head h2::after,
.section-head .section-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #0e7490 0%, #36a4bf 100%);
}

.section-head p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: #334155;
}

.section-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.site-header {
  /* background: rgba(255, 255, 255, 0.96); */
  background: var(--color-primary);
  backdrop-filter: blur(8px);
  /* border-bottom: 1px solid var(--color-border); */
}

.navbar {
  min-height: 70px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-primary) 0%, #0891b2 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text {
  font-size: 1.35rem;
  font-weight: 700;
  /* color: var(--color-heading); */
  color: var(--color-surface);
  letter-spacing: 0.02em;
}

.nav-links .nav-link {
  /* color: #425466; */
  color: var(--color-surface);
  font-weight: 500;
  padding: var(--space-2) var(--space-4) !important;
  border-radius: 999px;
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast);
}

.nav-links .nav-link:hover,
.nav-links .nav-link:focus {
  color: var(--color-primary-strong);
  background: #e7f5fa;
}

.btn-consult {
  border: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-strong) 100%
  );
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.3rem;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn-consult:hover,
.btn-consult:focus {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(11, 91, 114, 0.28);
}

.custom-toggler {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.55rem;
}

.mobile-header-actions .navbar-toggler {
  margin-left: 0;
}

.mobile-consult-btn {
  margin-top: 0 !important;
  white-space: nowrap;
}

.consult-modal .modal-dialog {
  max-width: 500px;
}

.consult-modal .modal-content {
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

.consult-modal .modal-header {
  background: var(--color-primary);
  color: #fff;
  padding: 0.65rem 0.95rem;
}

.consult-modal .modal-title {
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.25;
  margin: 0;
}

.consult-modal .modal-body {
  padding: 0.85rem 0.95rem;
}

.consult-modal .modal-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.3rem !important;
}

.consult-modal .modal-body p {
  font-size: 0.85rem;
  margin-bottom: 0.55rem !important;
}

.consult-modal .form-control,
.consult-modal .form-select {
  padding: 0.5rem 0.65rem;
  font-size: 0.88rem;
}

.consult-modal .form-control:focus,
.consult-modal .form-select:focus {
  border-color: #cbd5e1;
  box-shadow: none;
  outline: none;
}

.consult-modal .mb-3 {
  margin-bottom: 0.55rem !important;
}

.consult-modal textarea.form-control {
  min-height: 72px;
}

.consult-modal .btn-consult {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.9rem;
}

.js-form-feedback.success {
  color: var(--color-success);
}

.js-form-feedback.error {
  color: var(--color-danger);
}

.error-message {
  color: var(--color-danger) !important;
}

.success-message {
  color: var(--color-success) !important;
}

label.error {
  color: var(--color-danger);
  font-size: 0.875rem;
  margin-top: 0.35rem;
}

/* FOOTER */

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 1.2rem;
  background: #1d232c;
  color: #f1f5f9;
}

.footer-disclaimer h3 {
  margin: 0 0 0.55rem;
  color: #ffffff;
  font-size: 1.9rem;
}

.footer-disclaimer p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(241, 245, 249, 0.95);
}

.footer-bottom-row {
  margin-top: 1.2rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-copy {
  font-size: 1.02rem;
  color: #ffffff;
}

.footer-links {
  display: inline-flex;
  gap: 2.2rem;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
}

.footer-links a:hover {
  color: #dbeafe;
}

/* Existing utilities retained */

.cookie-box {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 9999;
  max-width: none;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
  overflow: hidden;
}

.cookie-box.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
}

.cookie-icon {
  font-size: 26px;
  color: var(--color-primary);
  flex-shrink: 0;
  background: rgba(14, 116, 144, 0.12);
  border-radius: 50%;
  padding: 10px;
  align-self: center;
}

.cookie-content h5 {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--color-primary-strong);
}

.cookie-content p {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 10px;
  line-height: 1.4;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-accept {
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-strong)
  );
}

.btn-reject {
  background: #eee;
  color: #333;
}

.btn-customize {
  background: transparent;
  color: var(--color-primary-strong);
  text-decoration: underline;
}

@media (min-width: 576px) {
  .cookie-box {
    left: 24px;
    right: auto;
    bottom: 24px;
    max-width: 340px;
  }
  .cookie-inner {
    flex-direction: row;
    align-items: flex-start;
  }
  .cookie-icon {
    align-self: flex-start;
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.whatsapp-float:hover {
  color: #fff;
}

/* Chatbot UI */

#chat-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

#chatbox {
  width: 320px;
  height: 450px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(11, 91, 114, 0.35);
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-primary);
  transform: scale(1);
  opacity: 1;
  transition: all 0.6s ease;
}

#chatbox.hidden {
  transform: scaleY(0.9);
  opacity: 0;
  pointer-events: none;
  height: 0;
}

#chat-header {
  background: var(--color-primary-strong);
  color: #fff;
  padding: 10px;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chat-header button {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

#chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
  height: 300px;
}

.bot-message,
.user-message {
  padding: 8px 12px;
  margin: 6px 0;
  max-width: 75%;
  border-radius: 20px;
  display: inline-block;
  animation: fadeIn 0.3s ease;
}

.bot-message {
  background: #eee;
  color: #333;
}

.user-message {
  background: var(--color-primary-strong);
  color: #fff;
  align-self: flex-end;
}

#chat-container .hidden {
  display: none;
}

#chat-bubble {
  width: fit-content;
  min-height: 48px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-strong)
  );
  color: #fff;
  border-radius: 999px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(11, 91, 114, 0.35);
  margin-left: auto;
  opacity: 1;
  transform: scale(1);
  transition: all 0.3s ease;
  padding: 4px 10px 4px 8px;
  position: absolute;
  bottom: 0;
  right: 0;
}

#chat-bubble img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

#chat-bubble.hidden {
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
}

@media (max-width: 576px) {
  #chat-bubble {
    min-height: 40px;
    font-size: 0.85rem;
    gap: 8px;
    padding: 7px 12px 7px 8px;
  }
  #chat-bubble img {
    width: 30px;
    height: 30px;
  }
}

.bot-message + .bot-message {
  border-top-left-radius: 4px;
}

.bot-message:not(:last-child) {
  border-bottom-left-radius: 16px;
}

.bot-message:has(+ .bot-message) {
  border-bottom-left-radius: 4px;
}

.user-message.options-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background-color: transparent;
  color: #fff;
  padding: 8px;
  border-radius: 16px;
  margin: 4px 0;
}

.option-btn {
  background: #eee;
  color: #333;
  padding: 8px 22px;
  border-radius: 20px;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  margin: 4px 4px 0 auto;
  text-align: left;
}

.option-btn:hover {
  background: #ddd;
}

.formBtn {
  background-color: var(--color-primary-strong);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.consult-modal {
  z-index: 2100;
}

.modal-backdrop.show {
  z-index: 2090;
}


