/* Mobile-first styles */
:root {
  --primary-color: #006eb7;
  --secondary-color: #63b9e8;
  --text-color: #333;
  --background-color: #fff;
  --error-color: #ff4444;
  --success-color: #4fb04f;
}

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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  padding: 1rem;
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background-color: var(--background-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header img.logo {
  width: 100px;
  height: auto;
  margin-bottom: 1rem;
}

.main-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

fieldset {
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 4px;
}

legend {
  color: var(--primary-color);
  font-weight: bold;
  padding: 0 0.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

label2 {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: normal;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
select,
textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

input[type="radio"],
input[type="checkbox"] {
  margin-right: 0.5rem;
}

button {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

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

.error {
  color: var(--error-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.footer {
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  border-top: 1px solid #ddd;
}

/* Tablet and larger screens */
@media (min-width: 768px) {
  .header {
    flex-direction: row;
    justify-content: space-between;
  }

  .header img.logo {
    margin-bottom: 0;
  }

  fieldset {
    padding: 1.5rem;
  }

  .form-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .bottom-right-graphic {
    display: block;
    position: fixed;
    bottom: 0;
    right: 0;
    width: 300px;
    height: auto;
    z-index: -1;
    pointer-events: none;
    margin: 10px;
  }
}

.bottom-right-graphic {
  display: none; /* Hide by default */
}

/* Only show on desktop screens */
@media (min-width: 1300px) {
  .bottom-right-graphic {
    display: block;
    position: fixed;
    bottom: 10%;
    right: 0;
    width: 15%;
    height: auto;
    z-index: -1;
    pointer-events: none;
    margin: 1%;
  }
}

.top-left-graphic {
  display: none; /* Hide by default */
}

@media (min-width: 1300px) {
  .top-left-graphic {
    display: block;
    position: fixed;
    top: 10%;
    left: 0;
    width: 15%;
    height: auto;
    z-index: -1;
    pointer-events: none;
    margin: 1%;
  }
}
