/* Final CSS styling */
:root {
  --primary-box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  --primary-border-radius: 5px;
  --secondary-box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;

  --font-family-primary: "Inter", sans-serif;

  --black: #000;
  --white: offwhite;
}
body {
  background: #f7faf6;
  color: #27341c;
  font-family: var(--font-family-primary);
  margin: 0;
  min-height: 100vh;
  padding: 0;
  font-size: 1rem;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  animation: fadeInAnimation ease 2s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

header {
  background: #4b7a39;
  color: #fff;
  padding: 3rem 0 2rem 0;
  text-align: center;
  border-bottom: 5px solid #b5d19c;
  box-shadow: 0 2px 12px #b5d19c60;
  display: grid;
  place-content: center;;
}

.hero {
  display: grid;
  place-items: center;
  max-width: 300px;
}

.hero img {
  width: 250px;
  height: auto;
}

header h1 {
  margin: 0;
  font-size: 2.7rem;
  letter-spacing: 0.03em;
  text-shadow: 0 4px 12px #263b1b85;
}

header p {
  font-size: 1.15rem;
  margin-top: 0.5rem;
  background: rgba(76, 133, 52, 0.65);
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

main {
  max-width: 540px;
  margin: 2.2rem auto 1.5rem auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 28px 4px #b5d19c33;
  padding: 2.5rem 2.2rem 1.2rem 2.2rem;
}

form label,
fieldset {
  margin-top: 0.7rem;
  margin-bottom: 0.15rem;
}

form input,
form select,
form textarea {
  margin-bottom: 0.12rem;
  margin-top: 0.18rem;
}

fieldset {
  margin-bottom: 0.4rem;
  padding-top: 0.3rem;
}

form button[type="submit"] {
  display: block;
  width: 100%;
  padding: 0.7rem 0;
  background: linear-gradient(90deg, #65c150, #3d702e);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.09rem;
  font-weight: bold;
  margin: 0.8rem 0 0.3rem 0;
  box-shadow: 0 2px 8px #b5d19c33;
  cursor: pointer;
  transition: background 0.18s;
  letter-spacing: 0.01em;
}

form button[type="submit"]:hover {
  background: linear-gradient(90deg, #5aaa46, #346024);
}

/* Make checkboxes inline and less spread out */
fieldset label {
  display: inline-block;
  margin-right: 1.1em;
  margin-bottom: 0.2em;
  font-weight: 400;
}

input:not([type="checkbox"]) {
    border: none;
    padding: 10px 5px 10px 15px;
    border-radius: var(--primary-border-radius);
    font-family: var(--font-family-primary);
    background-color: var(--white);
    color: var(--black);
    -webkit-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    width: 90%;
    -webkit-box-shadow: var(--primary-box-shadow);
    box-shadow: var(--primary-box-shadow);
    font-size: 1rem;
}

::-webkit-input-placeholder {
    color: var(--black);
}

::-moz-placeholder {
    color: var(--black);
}

:-ms-input-placeholder {
    color: var(--black);
}

::-ms-input-placeholder {
    color: var(--black);
}

::placeholder {
    color: var(--black);
}

::-ms-input-placeholder {
    color: var(--black);
}

input:focus {
    outline-offset: 0px;
    outline: none;
    color: var(--black);
    border: 1px solid var(--black);
    -webkit-box-shadow: var(--secondary-box-shadow);
    box-shadow: var(--secondary-box-shadow);
}

label {
    font-family: var(--font-family-primary);
    font-weight: 300;
    color: var(--black);
}

textarea {
    border: none;
    padding: 10px 5px 10px 5px;
    border-radius: var(--primary-border-radius);
    font-family: var(--font-family-primary);
    /* RGBA is required to make the background transparent. */
    background-color: var(--white);
    color: var(--black);
    -webkit-box-shadow: var(--primary-box-shadow);
    box-shadow: var(--primary-box-shadow);
    -webkit-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

textarea:focus {
    outline-offset: 0px;
    outline: none;
    color: var(--black);
    border: 1px solid var(--black);
    -webkit-box-shadow: var(--secondary-box-shadow);
    box-shadow: var(--secondary-box-shadow);
}

label {
    display: block;
    margin-bottom: 5px;
}

select {
    font-family: var(--font-family-primary);
    font-weight: bold;
    border: none;
    padding: 10px 10px 10px 15px;
    border-radius: var(--primary-border-radius);
    font-family: var(--font-family-primary);
    color: black;
    -webkit-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    width: 96%;
    font-size: 1rem;
    -webkit-appearance: none;
    -webkit-box-shadow: var(--primary-box-shadow);
    box-shadow: black;
}


select:hover {
    cursor: pointer;
}

select:hover {
    cursor: pointer;
}

.work-types-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.work-types-grid label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f5f5f5;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
}

.hero-text {
    animation: fadeInAnimation 5s;
}

.fade-in {
    opacity: 0;
    animation: fadeInAnimation ease 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.thank-you-container {
  display: grid;
  place-items: center;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}