/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #f0f8ff, #e6f7ff);
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Main Content Area Styling */
.main-content {
  flex-grow: 1; /* Allows main content to take up available space */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.container {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  max-width: 420px;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 20px;
}

h1 {
  color: #007acc;
  margin-bottom: 10px;
  text-align: center;
}

p {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
  text-align: center;
}

label {
  display: block;
  margin-top: 15px;
  color: #333;
}

input, select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

button {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  background-color: #007acc;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s ease;
}

button:hover {
  background-color: #005fa3;
}

#result {
  margin-top: 20px;
  font-size: 17px;
  font-weight: bold;
  color: #2c3e50;
  text-align: center;
}

@media (max-width: 480px) {
  .container {
    padding: 20px;
  }

  h1 {
    font-size: 22px;
  }
}

.icon-small {
  width: 50px;
  height: 50px;
  vertical-align: middle;
  margin-right: 16px;
}

section {
  background-color: #fefefe;
  padding: 25px;
  margin: 30px auto;
  max-width: 850px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
  width: 100%; /* Ensure sections take full width within max-width */
}

h2 {
  color: #1a237e;
  font-size: 26px;
  margin-bottom: 15px;
}

section p, section li { /* Targeted specific p and li for sections */
  color: #333;
  font-size: 17px;
  line-height: 1.8;
  text-align: justify;
}

ol {
  padding-left: 20px;
}

/* Sticky Chat Icon */
@keyframes wave {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.4;
  }
  70% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
  }
}

/* Specific styles for the chat icon container to avoid broad selector */
a[style*="position: fixed"] {
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  cursor: pointer;
}

a[style*="position: fixed"] > div:first-of-type { /* The immediate child div for the icon */
  width: 50px;
  height: 50px;
  background-color: #8800f8;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

a[style*="position: fixed"] svg {
  width: 25px;
  height: 25px;
}

a[style*="position: fixed"] > div:last-of-type { /* The second div for the wave effect */
  position: absolute;
  width: 80px;
  height: 80px;
  background: #8800f8;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: 0.4;
  animation: wave 2s infinite linear;
}

@media (max-width: 768px) {
  a[style*="position: fixed"] {
    bottom: 20px !important;
    right: 20px !important;
  }

  a[style*="position: fixed"] > div:first-of-type {
    width: 50px !important;
    height: 50px !important;
  }

  a[style*="position: fixed"] svg {
    width: 25px !important;
    height: 25px !important;
  }

  a[style*="position: fixed"] > div:last-of-type {
    width: 70px !important;
    height: 70px !important;
  }
}

/* Header Styles */
.main-header {
  width: 100%;
  background: linear-gradient(to right, #4759bd, #8e93c8);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #e9eaf0;
  font-size: 24px;
  font-weight: bold;
}

.header-logo img {
  width: 70px;
  height: 70px;
  
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-links li {
  margin-left: 25px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-size: 17px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #007acc;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 4px 0;
  transition: 0.3s;
}

/* Responsive Header */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 90px; /* Adjust based on header height */
    left: 0;
    background-color: #e0f2f7;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

/* Footer Styles */
.main-footer {
  width: 100%;
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 40px 30px 20px;
  margin-top: auto;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin: 15px;
}

.footer-section h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 40px;
  height: 2px;
  background-color: #007acc;
}

.footer-section p {
  font-size: 15px;
  line-height: 1.6;
  color: #bdc3c7;
  text-align: left;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  text-decoration: none;
  color: #bdc3c7;
  font-size: 15px;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #007acc;
}

.footer-logo-section {
  flex: 1.5;
  min-width: 250px;
}

.footer-logo-section img {
  width: 60px;
  height: 60px;
  vertical-align: middle;
  margin-right: 10px;
}

.footer-logo-section .logo-text {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  vertical-align: middle;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  margin-top: 30px;
  border-top: 1px solid #34495e;
  color: #bdc3c7;
  font-size: 14px;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-section {
    text-align: center;
    margin-bottom: 30px;
    min-width: unset;
    width: 100%;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-section p, .footer-section ul {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .main-header {
    padding: 10px 15px;
  }

  .header-logo {
    font-size: 20px;
  }

  .header-logo img {
    width: 35px;
    height: 35px;
  }

  .main-footer {
    padding: 30px 15px 15px;
  }
}