*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --secondary-color: #6a43a9;
}

html {
  font-size: 62.5%;
  font-family: "Poppins", "sans-serif";
}

body {
  background-image: url("pawprintpattern.jpg");
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: rgba(255, 255, 255, 0.9);
  background-blend-mode: lighten;
  padding: 2rem;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

.form-wrapper {
  max-width: 70vw;
  margin: 2rem auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 2rem;
  background-color: white;
  width: 100%;
}

.result-wrapper {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  text-align: center;
  p {
    font-size: 1.8rem;
  }
}

.captioned-image {
  img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
  }
}

/* Update the pet-form class to remove the fixed width */
.pet-form,
.feedback-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: fit-content;
  justify-content: space-around;
  align-items: left;
  margin: 0;
  padding: 1em;
  border: none;
  background-color: transparent;
  font-size: 1.4rem;
}

.loading-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Update the loading indicator styling */
.htmx-indicator {
  text-align: center;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 4px;
  width: fit-content;
}

.feedback-form {
  overflow-x: auto;
}

.feedback-form h2 {
  color: #6a43a9;
  margin-bottom: 1.5rem;
}
.form-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

h1.title {
  color: #6a43a9;
  text-align: center;
  margin-bottom: 1.5rem;
}

button[type="submit"] {
  background-color: #6a43a9;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.6rem;
  margin-top: 1rem;
  width: 100%;
}

button[type="submit"]:hover {
  background-color: #553788;
}

input[type="text"],
input[type="number"],
input[type="file"],
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1.6rem;
  box-sizing: border-box;
  max-width: 100%;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #444;
}

a {
  display: inline-block;
  margin: 1rem 0;
  color: #6a43a9;
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

.file-input-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 100%;
}

.file-input-wrapper input[type="file"] {
  display: block;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f9f9f9;
}

.navigation {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 1.8rem;
}

.nav-util {
  text-decoration: none;
  font-weight: 500;
  margin-left: 20px;
  transition: color 0.3s ease;
}

.hero {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  /* margin-top: 10vh; */
}
.headline {
  flex: 4;
  width: 60vw;
  text-align: center;
}
.headline__text {
  font-size: 4.8rem;
  font-weight: 400;
  margin-top: 0;
}
.headline__subtext {
  margin: 0;
  font-size: 2rem;
}
.underline {
  text-decoration: underline var(--secondary-color);
}
.hero-backdrop {
  flex: 6;
  width: 100%;
  overflow: hidden;
  height: 40vh;
  img {
    height: auto;
    display: block;
    object-fit: center center;
  }
}

.call-to-action button {
  padding: 0.4rem 1.2rem;
  margin-top: 2rem;
  border-radius: 10rem;
  background: #fff;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--secondary-color);
  transition: 0.3s ease;
  border: 1.5px solid var(--secondary-color);
  cursor: pointer;
}
.call-to-action button:hover {
  color: #fff;
  background-color: color-mix(in srgb, var(--secondary-color) 80%, #fff);
}

.goback {
  font-size: 1.8rem;
  text-align: center;
  width: 100%;
}
