/* Define CSS Variables */
:root {
  --primary-color: #001b42;
  --secondary-color: #ffffff;
  --accent-color: #56cb5d;
  --hover-color: #a6dee5;
  --link-hover-color: #fff;
  --font-family: Arial, sans-serif;
  --font-size-base: 1em;
  --font-size-large: 3em;
  --font-size-small: 1em;
  --font-size-medium: 2em;
  --padding-base: 20px;
  --padding-inputs: 10px;
  --button-padding: 12px 20px;
  --border-radius: 5px;
  --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --max-width: 800px;
  --form-width: 600px;
  --form-padding: 30px;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-family: var(--font-family);
}

/* Header Styles */
header {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  background-color: var(--primary-color);
  padding: 20px;
  color: var(--secondary-color);
  width: 100%;
  margin: 0 auto;
}

header img {
  width: 300px; /* Set a fixed width for the image */
  margin-right: 20px; /* Space between the image and the text */
}

header div {
  display: flex;
  flex-direction: column; /* Stack the heading and paragraph vertically */
  text-align: left; /* Ensure the text is left-aligned */
}

header h1 {
  margin: 0;
  font-size: var(--font-size-large);
}

header p,
header h3 {
  margin-top: 5px;
  margin-bottom: 5px;
  font-size: var(--font-size-base);
  text-align: center;
}

/* Intro Section */
.panel {
  max-width: var(--max-width);
  margin: 30px auto;
  padding: var(--padding-base);
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 10px;
  font-size: var(--font-size-small);
  line-height: 1.6;
  box-shadow: var(--box-shadow);
}

.panel p {
  margin-bottom: 15px;
}

.panel .clean-truck {
  text-align: center;
  margin-bottom: 0;
}

/* Form Styles */
form {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  max-width: var(--form-width);
  margin: 40px auto;
  padding: var(--form-padding);
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}
.confirmation {
  padding: 3rem;
  text-align: center;
  margin-top: 20px;
  font-size: 1.2em;
  color: var(--primary-color);
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

input,
textarea {
  width: 100%;
  padding: var(--padding-inputs);
  margin-bottom: 20px;
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius);
  box-sizing: border-box;
}

button {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: var(--button-padding);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: var(--font-size-base);
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: var(--hover-color);
}

/* Footer Styles */
footer {
  background-color: var(--hover-color);
  color: var(--primary-color);
  text-align: center;
  padding: var(--padding-base);
  font-size: var(--font-size-base);
  font-family: var(--font-family);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 auto;
}

footer a,
header a {
  color: var(--secondary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}
footer a {
  color: var(--primary-color);
}

footer a:hover {
  color: var(--link-hover-color);
}

/* Media query for smaller devices (tablets and phones) */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    color: var(--secondary-color);
  }

  header img {
    margin-right: 0;
    margin-bottom: 15px;
    width: 200px;
  }

  header div {
    text-align: center; /* Center the text on mobile */
  }

  header h1 {
    font-size: var(
      --font-size-medium
    ); /* Adjust font size for smaller screens */
  }

  header p {
    font-size: var(
      --font-size-small
    ); /* Adjust font size for smaller screens */
  }
  .intro {
    padding: 15px;
    font-size: 1em;
  }

  form {
    padding: 20px;
  }

  label,
  input,
  textarea {
    font-size: 1em;
  }
}

/* Media query for very small screens (phones) */

/* Additional media query for even smaller screens (phones) */
@media (max-width: 480px) {
  header {
    color: var(--secondary-color);
  }
  header img {
    width: 200px; /* Make the image even smaller for very small screens */
  }

  /* header h1 {
    font-size: var(--font-size-small);
  } */

  header p {
    font-size: var(
      --font-size-small
    ); /* Adjust font size for very small screens */
  }

  .panel {
    padding: 10px;
    font-size: 0.95em;
  }

  form {
    padding: 15px;
  }

  button {
    padding: 10px;
  }

  footer {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }

  footer a {
    margin-top: 0;
  }
}
