/**
 * Products page - 3-column aside layout
 */
:root {
  --products-red: #e74c4c;
  --products-red-dark: #c0392b;
  --products-grey-100: #f1f5f9;
  --products-grey-200: #e2e8f0;
  --products-grey-600: #64748b;
  --products-grey-800: #1e293b;
  --products-grey-900: #0f172a;
  --products-navbar-bg: #eaeaea; /* light grey for left aside, main, right aside */
}

.products-aside-layout {
  display: grid;
  grid-template-columns: 220px 1fr 200px;
  gap: 1.5rem;
  min-height: 60vh;
  padding: 1.5rem 0;
}

@media (max-width: 992px) {
  .products-aside-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
  }
  .products-left-aside { order: 1; }
  .products-main { order: 2; }
  .products-right-aside { order: 3; }
  /* Mobile: inline left aside, icons only, single line */
  .products-left-aside {
    flex-direction: row;
    position: static;
  }
  nav.products-aside-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.25rem;
    width: 100%;
  }
  .products-aside-item .products-aside-item-text {
    display: none;
  }
  .products-aside-item {
    padding: 0.5rem 0.4rem;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .products-aside-item i {
    font-size: 1.2rem;
    flex-shrink: 0;
  }
}

/* Left Aside */
.products-left-aside {
  display: flex;
  flex-direction: column;
  background: var(--products-navbar-bg);
  border-radius: 10px;
  padding: 1rem;
  height: fit-content;
  position: sticky;
  top: 100px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.products-aside-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.products-aside-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--products-grey-800);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}

.products-aside-item:hover {
  background: rgba(231, 76, 76, 0.1);
  color: var(--products-red);
}

.products-aside-item.active {
  background: var(--products-red);
  color: #fff;
}

.products-aside-item i {
  width: 1.2em;
  font-size: 1rem;
}

/* Main */
.products-main {
  background: var(--products-navbar-bg);
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.products-section {
  display: none;
}

.products-section.active {
  display: block;
}

.products-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--products-grey-900);
  margin: 0 0 0.5rem;
}

.products-section-desc {
  color: var(--products-grey-600);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Policy list - multi-column layout */
.products-policy-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: min-content;
  align-items: start;
  gap: 2rem 2.5rem;
  margin-top: 0.5rem;
}

.products-policy-motor-life { grid-column: 1; grid-row: 1; }
.products-policy-healthcare { grid-column: 2; grid-row: 1; }
.products-policy-general { grid-column: 3 / span 2; grid-row: 1; }

@media (max-width: 992px) {
  .products-policy-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-policy-motor-life,
  .products-policy-healthcare,
  .products-policy-general {
    grid-column: auto;
    grid-row: auto;
  }
  .products-policy-general { grid-column: 1 / -1; }
}

@media (max-width: 576px) {
  .products-policy-list { grid-template-columns: 1fr; }
  .products-policy-general { grid-column: 1; }
}

.products-policy-col {
  border-left: 1px solid var(--products-grey-200);
  padding-left: 1rem;
}

.products-policy-motor-life {
  border-left: none;
  padding-left: 0;
}

/* Motor + Life stacked - each block only as tall as its content */
.products-policy-motor-life {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.products-policy-block {
  flex: 0 0 auto;
}

@media (max-width: 992px) {
  .products-policy-col:first-child { border-left: none; padding-left: 0; }
}

@media (max-width: 576px) {
  .products-policy-col {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--products-grey-200);
    padding-top: 1rem;
  }
  .products-policy-col:first-child { border-top: none; padding-top: 0; }
}

.products-policy-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--products-grey-900);
  margin: 0 0 0.75rem;
}

.products-policy-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.products-policy-items li {
  margin-bottom: 0.5rem;
}

.products-policy-items a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--products-grey-800);
  text-decoration: none;
  transition: color 0.2s;
}

.products-policy-items a:hover {
  color: var(--products-red);
}

.products-policy-items a.coming-soon {
  color: var(--products-grey-600);
  cursor: not-allowed;
  pointer-events: none;
}

/* General insurance - two columns side by side */
.products-policy-general-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 576px) {
  .products-policy-general-split {
    grid-template-columns: 1fr;
  }
}

/* Claims */
.claims-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 576px) {
  .claims-cards { grid-template-columns: 1fr; }
}

.claims-card {
  background: var(--products-grey-100);
  border-radius: 10px;
  padding: 1.25rem;
  border: 1px solid var(--products-grey-200);
}

.claims-card-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--products-red);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.claims-card h3 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
}

.claims-card p {
  font-size: 0.88rem;
  color: var(--products-grey-600);
  margin: 0;
  line-height: 1.5;
}

.claims-process-note {
  font-size: 0.88rem;
  color: var(--products-grey-600);
  margin-bottom: 1rem;
  font-style: italic;
}

.claims-cta {
  margin-top: 1rem;
}

.btn-cemes-red {
  background: var(--products-red) !important;
  border-color: var(--products-red) !important;
  color: #fff !important;
}

.btn-cemes-red:hover {
  background: var(--products-red-dark) !important;
  border-color: var(--products-red-dark) !important;
  color: #fff !important;
}

/* Agent Support */
.agent-support-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.agent-support-card {
  background: var(--products-grey-100);
  border-radius: 10px;
  padding: 1.25rem;
  border: 1px solid var(--products-grey-200);
}

.agent-support-card h3 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.agent-support-card h3 i {
  color: var(--products-red);
}

.agent-support-card ul {
  margin: 0 0 0.5rem;
  padding-left: 1.25rem;
}

.agent-support-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--products-grey-600);
}

.agent-support-links {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.agent-support-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--products-red);
  font-size: 0.9rem;
}

.agent-support-links a:hover {
  text-decoration: underline;
}

/* FAQ */
.products-faq-list .faq-item {
  border: 1px solid var(--products-grey-200);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.products-faq-list .faq-question {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  transition: background 0.2s;
  list-style: none;
}

.products-faq-list .faq-question:hover {
  background: var(--products-grey-100);
}

.products-faq-list .faq-question i {
  color: var(--products-red);
  font-size: 0.8rem;
  transition: transform 0.2s;
}

.products-faq-list .faq-question.open i {
  transform: rotate(180deg);
}

.products-faq-list .faq-answer {
  padding: 0 1.25rem 1rem;
  font-size: 0.88rem;
  color: var(--products-grey-600);
  line-height: 1.7;
  display: none;
}

/* Leave a message form */
.products-message-form .form-control {
  border-radius: 8px;
  border: 1px solid var(--products-grey-200);
}

.products-message-result {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
}

.products-message-result.text-success {
  background: #d4edda;
  color: #155724;
}

.products-message-result.text-danger {
  background: #f8d7da;
  color: #721c24;
}

/* Right Aside */
.products-right-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: fit-content;
  position: sticky;
  top: 100px;
  background: var(--products-navbar-bg);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.products-right-card {
  background: #fff;
  color: var(--products-grey-800);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.products-right-card h3 {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--products-grey-800);
}

.products-right-card h3 i {
  color: var(--products-red);
}

.products-right-card p {
  font-size: 0.85rem;
  color: var(--products-grey-800);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.products-right-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--products-grey-800);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.products-right-link:hover {
  color: var(--products-red);
}

.products-right-desc {
  font-size: 0.8rem !important;
  margin-top: 0.35rem !important;
  color: var(--products-grey-800);
  opacity: 0.85;
}

.btn-miko {
  background: var(--products-red) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.6rem 1rem;
}

.btn-miko:hover {
  background: var(--products-red-dark) !important;
  color: #fff !important;
}

/* Miko floating button - above feedback button */
.miko-float-btn {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0a500 0%, #f59e0b 100%);
  color: #1e293b;
  border: none;
  box-shadow: 0 4px 18px rgba(240, 165, 0, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s;
}

.miko-float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(240, 165, 0, 0.6);
}

.miko-float-btn i {
  color: #1e293b;
}

/* Miko chat modal */
.miko-chat-modal .modal-dialog {
  max-width: 400px;
  margin: 1rem;
}

.miko-chat-header {
  background: linear-gradient(135deg, #f0a500 0%, #f59e0b 100%);
  color: #1e293b;
  padding: 1rem 1.25rem;
  border-radius: 10px 10px 0 0;
}

.miko-chat-header h5 {
  margin: 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.miko-chat-body {
  padding: 1rem;
  max-height: 350px;
  overflow-y: auto;
}

.miko-chat-message {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.miko-chat-message.bot {
  background: var(--products-grey-100);
  color: var(--products-grey-800);
}

.miko-chat-message.user {
  background: rgba(231, 76, 76, 0.1);
  color: var(--products-grey-800);
  margin-left: 2rem;
}

.miko-chat-input-wrap {
  padding: 1rem;
  border-top: 1px solid var(--products-grey-200);
}

.miko-chat-input-wrap .form-control {
  border-radius: 8px;
  border: 1px solid var(--products-grey-200);
}
