body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f9; /* Light background */
  color: #333; /* Dark text */
}

header {
  background-color: #003366; /* Navy Blue */
  color: #fff;
  padding: 1em;
  text-align: center;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav li {
  margin-right: 20px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.logo {
  margin-right: 20px;
}

.logo img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

main {
  display: flex;
  flex-direction: column; 
  padding: 2em;
  justify-content: space-between; /* Distributes space between sections */
  padding: 20px;
}

section {
  background-color: #ffffff; /* White */
  padding: 2em;
  margin: 20px; 
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  flex: 1; /* Each section takes up equal width */
}

h1, h2, h3 {
  color: #003366; /* Navy Blue */
  margin-bottom: 10px;
}

p {
  margin-bottom: 20px;
  line-height: 1.6;
}

button {
  display: block; 
  background-color: #003366; /* Navy Blue */
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
}

button:hover {
  background-color: #002244; /* Darker Navy Blue */
}

/* General form styling */
form {
  margin: 0 auto; /* Center the form horizontally */
  padding: 20px;
}

input[type="text"],
input[type="email"],
input[type="phone"],
textarea {
  width: 100%; /* Full width of the form container */
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box; /* Includes padding and border in width */
  font-size: 16px;
}

/* Styling for textarea */
textarea {
  height: 150px; /* Fixed height for textarea */
  resize: vertical; /* Allows vertical resizing */
}

/* Optional: Styling for placeholders */
input::placeholder,
textarea::placeholder {
  color: #888;
  font-style: italic;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-image {
  background-image: url('hero-image.jpg');
  background-size: cover;
  background-position: center;
  height: 100vh;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
}

.service-card {
  background-color: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(47, 140, 29, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(17, 54, 147, 0.3);
  
}

.service-card i {
  font-size: 24px;
  margin-bottom: 10px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
}

.pricing-card {
  background-color: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.pricing-card input[type="radio"] {
  position: relative;
  top: 26px;
  left: 14px;
  transform: scale(1.5);
}

.pricing-card label {
  display: block;
  margin-left: 40px; /* Adjust this value to align with the radio button */
}

.pricing-card h3 {
  margin-top: 0;
}

.pricing-card.selected {
  border-color: #003366; /* Navy Blue */
  box-shadow: 0 0 10px rgba(0, 51, 102, 0.5); /* Navy Blue */
}

.buy-now-button {
  background-color: #003366; /* Navy Blue */
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.form-container {
  text-align: right;
  margin-top: 20px;
}

#payment-form-container {
  display: none;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #ffffff; /* White */
}

#card-element {
  margin-bottom: 20px;
}

#submit-payment {
  background-color: #003366; /* Navy Blue */
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

#payment-form div {
  margin-bottom: 15px;
}

.pricing-card h3 {
  margin-top: 0;
}

.pricing-card.selected {
  border-color: #003366; /* Navy Blue */
  box-shadow: 0 0 10px rgba(0, 51, 102, 0.5); /* Navy Blue */
}

.pricing-card p {
  font-weight: bold;
  margin-top: 10px;
}

.pricing-card ul {
  list-style: disc;
  margin: 0;
  padding-left: 20px;
}

.pricing-card li {
  margin-bottom: 10px;
  line-height: 1.5;
}

footer {
  background-color: #003366; /* Navy Blue */
  color: #fff;
  padding: 1em;
  text-align: center;
  clear: both;
}

.success {
  color: green;
}

.error {
  color: red;
}

@media (max-width: 430px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
  }

  nav li {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .logo img {
    width: 80px;
    height: 80px;
  }

  .services-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  input[type="text"],
  input[type="email"],
  input[type="phone"],
  textarea {
    width: 100%;
  }
}