* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    overflow-x: hidden;
    min-height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-height: 70px;
}

.logo-placeholder a {
    width: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s;
}
.contact-btn:hover { background-color: #3e8e41; }

.main-container {
    min-height: calc(100vh - 70px);
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-box {
    background-color: #e8f5e9;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.24);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    width: 90%;
}

.text-content {
    flex: 1;
    margin-bottom: 15vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
}
.text-content h2 {
    width: 70%;
    margin-left: 8%;
    color: #2e7d32;
    margin-bottom: 15px;
    font-size: 22px;
    line-height: 1.3;
}
.text-content p {
    width: 70%;
    margin-left: 8%;
    color: #333;
    line-height: 1.5;
    font-size: 15px;
}

.chat-container {
    width: 100%;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 500px;
}
.chat-header {
    background-color: #4CAF50;
    color: white;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    padding: 12px;
    font-weight: bold;
    font-size: 16px;
}
.chat-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    min-height: 300px;
}
.chat-input {
    display: flex;
    padding: 12px;
    border-top: 1px solid #eee;
}
.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    outline: none;
    font-size: 14px;
}
.chat-input button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}
.chat-input button:hover { background-color: #3e8e41; }

.header-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}
.auth-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 11px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}
/* ###########################3new css for home button */
.contact-btn a{
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;

}
/* 111111111111111111111111111111111111111111111111111111111111111111111111111111111 */
/* ───────────── Contact Form Popup ───────────── */
.contact-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.contact-modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 30px;
  width: 90%;
  max-width: 800px;
  border-radius: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-title {
  color: #4CAF50;
  margin-bottom: 10px;
  font-size: 22px;
  text-align: center;
}

.contact-modal-content .close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  background: #ff4444;
  color: white;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
}

.contact-modal-content .close:hover {
  background-color: #c62828;
  transform: scale(1.1);
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#contact-form .form-row {
  display: flex;
  gap: 12px;
}

#contact-form .form-row input {
  flex: 1;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
}

#contact-form input[readonly] {
  background-color: #f0f0f0;
  cursor: not-allowed;
}

#contact-form select {
  background-color: white;
}

#contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

#contact-form button {
  background-color: #4CAF50;
  color: white;
  font-weight: bold;
  border: none;
  padding: 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

#contact-form button:hover {
  background-color: #3e8e41;
}
/* ################################################ */
.green-p{
  color: #2e7d32;
  font-weight: bold;
}
.warning-strip {
  width: 69%;
  overflow: hidden;
  white-space: nowrap;
  /* background: #fff8e1; */
  border-left: 4px solid #4CAF50;
  border-right: 4px solid #4CAF50;
  padding: 0.5rem;
  margin-top: 15px;
  margin-left: 8%;
}

.warning-strip .warning-text {
  display: inline-block;
  padding-left: 100%;
  animation: warn-scroll 10s linear infinite;
  font-size: 0.9rem;
  color: #161616;
  font-size: medium;
}

@keyframes warn-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ############################new Css for home button end */
.auth-btn:hover { background-color: #3e8e41; }
.profile-dropdown { position: relative; display: inline-block; }
.profile-btn {
    background: none; border: none; padding: 5px; cursor: pointer;
    border-radius: 50%; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
}
.profile-btn:hover { background-color: #f0f0f0; }
.dropdown-content {
    display: none; position: absolute; right: 0; background-color: white;
    min-width: 160px; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 5px; z-index: 1;
}
.dropdown-content a {
    color: #333; padding: 12px 16px; text-decoration: none; display: block; font-size: 14px;
}
.dropdown-content a:hover { background-color: #f5f5f5; }
.profile-dropdown:hover .dropdown-content { display: block; }

.modal {
    display: none; position: fixed; z-index: 1000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.4);
}
.modal-content {
    background-color: white; margin: 15% auto; padding: 20px;
    width: 350px; border-radius: 8px; position: relative;
}
.close {
    position: absolute; top: -15px; right: -15px; width: 40px; height: 40px;
    background: #ff4444; color: white; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); border: none; font-size: 20px;
    transition: background 0.3s;
}
.close:hover { background: #cc0000; transform: scale(1.1); }

.auth-tabs { display: flex; margin-bottom: 20px; }
.tab {
    flex: 1; padding: 10px; border: none; background: #f0f0f0; cursor: pointer;
}
.tab.active { background: #4CAF50; color: white; }
.auth-form {
    display: flex; flex-direction: column; gap: 15px;
}
.auth-form input {
    padding: 10px; border: 1px solid #ddd; border-radius: 4px;
}
.auth-form button {
    background-color: #4CAF50; color: white; border: none;
    padding: 10px; border-radius: 4px; cursor: pointer;
}
#auth-message {
    margin-top: 15px; padding: 10px; border-radius: 4px; display: none;
}
.error { background-color: #ffebee; color: #c62828; }
.success { background-color: #e8f5e9; color: #2e7d32; }

@media (min-width: 576px) {
    .content-box { padding: 25px; gap: 25px; }
    .text-content h2 { font-size: 24px; }
    .text-content p { font-size: 16px; }
}
@media (min-width: 768px) {
    header { padding: 20px 30px; min-height: 80px; }
    .logo-placeholder { width: 230px; height: 45px; }
    .contact-btn { padding: 10px 18px; font-size: 15px; }
    .main-container { min-height: calc(100vh - 80px); padding: 20px; }
    .content-box { flex-direction: row; padding: 30px; gap: 30px; }
    .text-content { padding: 15px; }
    .text-content h2 { font-size: 26px; }
    .chat-container { width: 350px; }
    .chat-messages { min-height: 200px; }
}
@media (min-width: 992px) {
    .text-content h2 { font-size: 28px; }
    .chat-container { width: 380px; }
}
@media (min-width: 1200px) {
    header { padding: 20px 40px; }
    .content-box { gap: 40px; padding: 40px; }
    .text-content { padding: 20px; }
}

/* 33333333333333333333333333333333333333333 */
@media only screen and (max-width: 768px) {
  header, .header-controls {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  .header-controls {
    gap: 10px;
    width: 100%;
  }

  .contact-btn,
  .auth-btn,
  #login-btn {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    text-align: center;
  }

  .text-content, .text-content h2, .text-content p {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 0 10px;
    text-align: center;
  }

  .warning-strip {
    width: 90% !important;
    margin-left: 5%;
    font-size: 14px;
  }

  .chat-container {
    height: 400px;
    margin: 10px;
  }

  .chat-messages {
    min-height: 250px;
  }

  .chat-input {
    flex-direction: column;
    gap: 8px;
  }

  .chat-input input {
    border-radius: 5px;
    width: 100%;
  }

  .chat-input button {
    border-radius: 5px;
    width: 100%;
    padding: 8px 15px;
  }

  .modal-content {
    width: 95%;
    margin-top: 30%;
  }

  .contact-modal-content {
    width: 95%;
    padding: 20px;
  }

  #contact-form .form-row {
    flex-direction: column;
  }

  .dashboard-main {
    flex-direction: column;
  }

  .dashboard-sidebar {
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
  }

  .dashboard-content {
    padding: 15px;
  }
}

