body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #444;
  background: linear-gradient(120deg, #f8f8ff, #e8f5e9);
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
header {
  background: linear-gradient(to right, #64b5f6, #4caf50);
  color: white;
  padding: 30px 20px;
  text-align: center;
}
header h1 {
  margin: 0;
  font-size: 2.5em;
  letter-spacing: 0.5px;
}
.hero {
  text-align: center;
  padding: 70px 20px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  margin: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
.hero h2 {
  font-size: 2em;
  margin-bottom: 25px;
  color: #333;
}
.hero p {
  max-width: 750px;
  margin: 0 auto 40px;
  color: #555;
  font-size: 1.1em;
}
.buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.buttons a img {
  height: 65px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}
.buttons a img:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}
.features {
  padding: 20px;
  text-align: center;
}
.features h3 {
  font-size: 2em;
  margin-bottom: 40px;
  color: #333;
}
.feature-grid {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.feature {
  background-color: white;
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease-in-out;
  flex-basis: calc(25% - 20px);
  box-sizing: border-box;
  margin-bottom: 20px;
}
.feature:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.feature i {
  font-size: 2.5em;
  color: #4caf50;
  margin-bottom: 20px;
}
.feature h4 {
  color: #333;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2em;
}
.feature p {
  color: #555;
  font-size: 1em;
  line-height: 1.5;
}
footer {
  background-color: #333;
  color: #eee;
  padding: 30px 20px;
  text-align: center;
  margin-top: 80px;
  box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.15);
}
footer a {
  color: #81c784;
  margin: 0 15px;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 0.9em;
}
footer a:hover {
  color: #a5d6a7;
}

.privacy-container {
  max-width: 900px;
  margin: 20px auto;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
}

.privacy-section {
  margin-bottom: 40px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.privacy-subsection {
  margin-bottom: 20px;
}

.privacy-section h3 {
  font-size: 1.6em;
  color: #333;
  margin-bottom: 15px;
}

.privacy-subsection h4 {
  font-size: 1.2em;
  color: #444;
  margin-bottom: 10px;
}

.privacy-container ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 10px;
}

.privacy-container li {
  margin-bottom: 5px;
}

.terms-container {
  background-color: rgba(240, 240, 240, 0.6);
}

.terms-container .privacy-section h3 {
  color: #222;
}

.form-container {
  max-width: 500px;
  margin: 20px auto;
  padding: 30px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.bill-split-form .form-field {
  margin-bottom: 20px;
}

.bill-split-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.bill-split-form input[type="email"],
.bill-split-form input[type="password"],
.bill-split-form input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  color: #555;
  box-sizing: border-box;
}

.bill-split-form input[type="email"]:focus,
.bill-split-form input[type="password"]:focus,
.bill-split-form input[type="text"]:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.4);
}

.form-hero {
  background-color: #f0f8f0;
}

.button {
  display: inline-block;
  padding: 12px 25px;
  font-size: 1em;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border-radius: 8px;
  border: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.button:hover,
.button:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  outline: none;
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.primary-button {
  background-color: #4caf50;
  color: white;
}

.primary-button:hover,
.primary-button:focus {
  background-color: #43a047;
}

.contact-container {
  max-width: 600px;
  margin: 30px auto;
  padding: 30px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.contact-info p {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #555;
}

.contact-info a {
  font-size: 1.2em;
  color: #4caf50;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #43a047;
  text-decoration: underline;
}

.contact-icon {
  font-size: 2.5em;
  color: #4caf50;
  margin-bottom: 20px;
}

.contact-hero {
  background-color: #f0f8f0;
}

.message-container {
  max-width: 700px;
  margin: 30px auto;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

.success-container {
  background-color: rgba(76, 175, 80, 0.15);
  border: 1px solid #4caf50;
}

.message-header {
  font-size: 1.8em;
  color: #4caf50;
  margin-bottom: 15px;
}

.message-body {
  font-size: 1.1em;
  color: #333;
}

.success-hero {
  background-color: #e0f2e2;
}

.error-container {
  background-color: rgba(255, 102, 102, 0.15);
  border: 1px solid #f44336;
}

.error-header {
  font-size: 1.8em;
  color: #f44336;
  margin-bottom: 15px;
}

.error-body {
  font-size: 1.1em;
  color: #333;
}

.error-hero {
  background-color: #ffebee;
}

@media (max-width: 768px) {
  header {
    padding: 25px 15px;
  }
  header h1 {
    font-size: 2em;
  }
  .hero {
    padding: 60px 15px;
    margin: 15px;
  }
  .hero h2 {
    font-size: 1.7em;
    margin-bottom: 20px;
  }
  .hero p {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .buttons {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
  }
  .buttons a img {
    height: 55px;
  }
  .features {
    padding: 60px 15px;
  }
  .features h3 {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 25px;
  }
  .feature {
    flex-basis: auto;
    padding: 30px 20px;
    margin-bottom: 0;
  }
  .feature i {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .feature p {
    font-size: 0.95em;
  }
  footer {
    padding: 30px 15px;
    margin-top: 60px;
  }
  footer a {
    margin: 0 10px;
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.7em;
  }
  .hero h2 {
    font-size: 1.4em;
  }
  .hero p {
    font-size: 0.9em;
  }
  .features h3 {
    font-size: 1.6em;
  }
  .feature {
    padding: 20px 15px;
  }
  .feature i {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .feature p {
    font-size: 0.9em;
  }
  footer a {
    font-size: 0.85em;
  }
}
