:root {
  --primary-color: #443388;
  --accent-color: #ff5500;
  --background-color: #f0f0f0;
  --text-color: #333333;
  --light-text-color: #ffffff;
  --surface-color: #ffffff;
}

body {
  font-family: 'Noto Sans', sans-serif;
  margin: 0;
  background-color: var(--background-color);
  color: var(--text-color);
}

header {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

h1.logo {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  margin: 0;
  color: var(--accent-color);
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  height: 40px;
  margin-right: 10px;
}

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

nav li {
  margin-left: 1.5rem;
}

nav a {
  color: var(--light-text-color);
  text-decoration: none;
  font-weight: bold;
}

main {
  padding: 2rem;
}

section {
  margin-bottom: 2rem;
}

.hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

#hero {
  padding: 0;
  position: relative;
}

.hero-content {
  position: relative;
  display: flex;
}

#hero p {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0,0,0,0.5);
  color: var(--light-text-color);
  padding: 1rem;
  margin: 0;
  text-align: center;
  box-sizing: border-box;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: var(--surface-color);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.service-card-content {
  padding: 1.5rem;
}

.service-card h3 {
  color: var(--primary-color);
}

#contact {
  text-align: center;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--light-text-color);
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 1rem;
  border: none;
  cursor: pointer;
}

.cta-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#contact-form-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}

#contact-form-container.visible {
  max-height: 1000px; /* A large enough value to show the form */
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  text-align: left;
}

#contact-form input,
#contact-form textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#contact-form label {
  margin-bottom: 0.5rem;
}

#contact-form label.required::after {
  content: " *";
  color: red;
}

#contact-form input:required:valid {
  border-color: green;
}

#contact-form input:required:invalid {
  border-color: red;
}

#contact-form fieldset {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 1rem;
}

.service-options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-option-label {
  display: flex;
  align-items: center;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  flex: 1 1 auto;
  min-width: 150px;
  max-width: 250px;
}

.service-option-label:hover {
  background-color: rgba(var(--primary-color), 0.1);
}

.service-option-label input[type="checkbox"] {
  margin-right: 0.5rem;
  width: auto;
}

#char-counter {
  font-size: 0.8rem;
  color: #666;
}

footer {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  text-align: center;
  padding: 1rem;
  position: relative;
  bottom: 0;
  width: 100%;
}
