*{margin:0;padding:0;box-sizing:border-box;font-family:"Segoe UI",sans-serif}

body{
  background:url("../images/background1.jpg") no-repeat center/cover fixed;
  min-height:100vh;
}



/* CONTENT */
.page-content{padding:70px 80px;max-width:1400px;margin:auto}

.brands-header{text-align:center;margin-bottom:80px}
.brands-header h1{font-size:50px;color: black;margin-bottom:20px;font-style:italic}
.brands-header p{font-size:25px;max-width:900px;margin:auto;color:black;font-style:italic}

/* GRID */
.brands-row{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:60px;
  margin-bottom:80px;
}
.brand-card{background:#2c4f40;padding:25px;border-radius:40px}
.brand-inner{background:#8db57d;padding:15px;border-radius:30px;text-align:center}
.brand-inner img{width:100%;border-radius:25px}
.view-more{margin-top:20px;padding:10px 28px;border:none;border-radius:22px;background:#314528;color:#fff;cursor:pointer}

/* MODAL */
.brand-modal{
  position:fixed;inset:0;background:rgba(0,0,0,.65);
  display:flex;justify-content:center;align-items:center;z-index:9999
}
.hidden{display:none}
.modal-close{position:absolute;top:40px;right:60px;font-size:30px;color:#fff;cursor:pointer}

.brand-modal-content{
  background:#8db57d;width:85%;max-height:90vh;
  padding:40px;border-radius:40px;
  display:grid;grid-template-columns:1fr 1.3fr;gap:40px;
}
.brand-left h2{font-size:32px;margin-bottom:20px}
.brand-left img{width:100%;border-radius:30px}
.brand-right{overflow-y:auto;line-height:1.6}
.brand-right ul{margin-top:15px;padding-left:20px}



/* ===== CHAT FLOATING BUTTON ===== */
#chat-fab {
  position: fixed;
  bottom: 30px;
  right: 40px;
  width: 60px;
  height: 60px;
  border-radius: 70%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 999;
}

#chat-fab img {
  width: 70px;
}

/* ===== CHAT WIDGET ===== */
#chat-widget {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 330px;
  z-index: 1000;
}

.hidden {
  display: none;
}

/* CLOSE */
.chat-close {
  position: absolute;
  right: -10px;
  top: -10px;
  background: none;
  border: none;
  cursor: pointer;
}

.chat-close img {
  width: 30px;
}

/* CHAT BOX */
.chat-box {
  background: #2c4f40;
  padding: 20px;
  border-radius: 20px;
  color: #cde3b4;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* TEXT */
.chat-box h3 {
  color: #8fbf7a;
  margin-bottom: 8px;
}

.chat-box p {
  font-size: 14px;
  margin-bottom: 12px;
}

/* INPUT + SEND INSIDE */
.chat-input-wrapper {
  position: relative;
  width: 100%;
}

/* TEXTAREA */
.chat-input-wrapper textarea {
  width: 100%;
  min-height: 45px;
  max-height: 140px;
  resize: none;
  padding: 10px 10px 10px 10px; /* space for arrow */
  border-radius: 10px;
  background: #d0dfc6;
  border: none;
  outline: none;
  font-size: 14px;
}

/* SEND BUTTON INSIDE TEXTAREA */
.chat-send.inside {
  position: absolute;
  right: 10px;
  top: 10px;
  bottom: 10px;
  width: 25px;
  height: 25px;
  border-radius: 80%;
  background: #81b673;
  border: none;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* INPUTS (STEP 2) */
.chat-box input {
  width: 100%;
  background: #d0dfc6;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: none;
}

/* NEXT BUTTON */
.chat-next {
  background: #81b673;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
}

.chat-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* STEPS */
.chat-step {
  display: none;
}

.chat-step.active {
  display: block;
}

/* FINAL CHAT */
.chat-logo {
  width: 150px;
  height: 50px;
  margin-bottom: 10px;
}

/* CHAT BOX HEIGHT CONTROL */
#step-final .chat-box {
  display: flex;
  flex-direction: column;
  height: 420px;
}

/* SCROLLABLE MESSAGE AREA */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding-right: 5px;
  margin-bottom: 10px;
}

/* CHAT BUBBLES */
.chat-bubble {
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 14px;
}

.chat-bubble.user {
  background: #81b673;
  color: #000;
}

.chat-bubble.bot {
  background: #314528;
}

/* SCROLLBAR (OPTIONAL) */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #81b673;
  border-radius: 10px;
}



/* RESPONSIVE */
@media(max-width:1024px){.brands-row{grid-template-columns:1fr}}
@media (max-width: 768px) {

  .brands-header h1 {
    margin-top: 15px;
    font-size: 35px;
  }

  .brands-header p {
    font-size: 23px;
  }

  .page-content { padding: 40px 30px; }

  /* ✅ MODAL: keep it inside screen + allow scrolling */
  .brand-modal {
    padding: 16px;                 /* space from screen edges */
    align-items: center;
    justify-content: center;
  }

  .brand-modal-content {
    width: 100%;
    max-width: 520px;
    max-height: 85vh;              /* stays inside phone screen */
    overflow-y: auto;              /* ✅ scroll if content is long */
    -webkit-overflow-scrolling: touch;
    grid-template-columns: 1fr;    /* already 1 column */
    gap: 18px;
    padding: 18px;
    border-radius: 24px;

    /* 🔹 HIDE SCROLLBAR (but keep scrolling) */
    scrollbar-width: none;         /* Firefox */
    -ms-overflow-style: none;      /* IE / Edge */
  }

  /* Chrome, Safari, mobile */
  .brand-modal-content::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  /* ✅ Make image section not too tall */
  .brand-left img {
    width: 100%;
    max-height: 240px;
    object-fit: contain;
    border-radius: 18px;
  }

  /* ✅ Right section should NOT force height issues */
  .brand-right {
    overflow: visible;             /* let container scroll instead */
    max-height: none;
    padding-right: 0;
  }

  /* close button stays reachable */
  .modal-close {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 10000;
  }
}
