/* Define CSS variables */
:root {
  /* This custom CSS variable represents the primary color used in the design. */
  --primary-color: #bcccd0;
  /* This custom CSS variable represents the secondary color used in the design. */
  --secondary-color: #93a59d;
  /* This variable represents an accent color. */
  --accent-color: #c8a746;
  /* This variable represents the secondary accent color. */
  --secondary-accent-color: #dd6c7e;
  /* This variable represents the text color. */
  --text-color: #493d2c;
  /* This variable represents the default font size. */
  --font-size: 16px;
}

* {
  /* Ensure consistent sizing with border-box box-sizing. */
  box-sizing: border-box;
  /* Remove underlines from anchor links. */
  text-decoration: none;
  /* Reset margins, paddings, and outlines for all elements. */
  padding: 0;
  margin: 0;
  outline: none;
  /* Set default font styles for text elements. */
  font-family: "Quicksand", sans-serif;
  color: var(--text-color);
  font-size: var(--font-size);
}

/*styling for the header which displays the sitename and navigation*/
header {
  display: flex;
  justify-content: space-between;
}

header h1 {
  font-family: "Protest Revolution", sans-serif;
  color: var(--secondary-accent-color);
  font-size: 45px;
  padding-left: 5px;
}

header p {
  color: var(--secondary-accent-color);
  font-family: "Protest Revolution";
  text-align: center;
}

/*styling for the navigation for mobile and tablets*/
.navigation-mobile {
  display: inline-block;
  align-self: center;
  padding: 5px;
}

.dropdown-menu-icon {
  color: var(--secondary-accent-color);
  cursor: pointer;
}

.navigation-content-mobile {
  display: none;
  background-color: var(--primary-color);
  margin: 5px 5px 0 0;
  min-width: 150px;
  position: absolute;
  right: 0;
  z-index: 1;
}

.navigation-content-mobile a {
  color: var(--text-color);
  display: block;
  padding: 12px 16px;
  text-transform: uppercase;
}

.navigation-mobile:hover .navigation-content-mobile {
  display: block;
}

.navigation-content-mobile a:hover {
  background-color: var(--secondary-color);
}

/*hidden navigation för tablet and desktops*/
.navigation-tablet-desktop {
  display: none;
}

/*styling for the form element*/
form {
  width: 100%;
  padding: 10px;
}

/*styling the hero section which displays a background image, a banner and text*/
.hero-image {
  display: flex;
  position: relative;
  height: 380px;
  background-image: url("assets/pexels-cottonbro-studio-6700275.jpg");
  background-size: cover;
  background-position: center;
  align-items: center;
  margin-top: 10px;
}

/*styling for the banner through the hero bakcground image*/
.banner {
  align-items: center;
  background-color: rgba(200, 167, 70, 0.5);
  border: 2px solid var(--accent-color);
  padding: 3px 0;
  width: 100%;
}

/*styling for the text displayed in the hero section*/
.hero-text {
  display: flex;
  justify-content: center;
  width: 50%;
}

.hero-text h1 {
  font-size: 22px;
  font-family: "Protest Revolution";
  color: #fff;
  text-transform: uppercase;
}

h2 {
  font-size: 20px;
  margin-bottom: 10px;
  padding: 5px 0;
}

.form-area {
  margin-bottom: 15px;
}

label {
  display: block;
}

.section-title {
  font-size: 18px;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
  padding: 8px;
  width: 100%;
}

.radio-option {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  margin: 10px;
}

.checkbox-option-box {
  display: flex;
  margin-top: 10px;
}

.checkbox-option {
  display: flex;
  flex-direction: column;
  margin: 0 20px;
  text-align: center;
}

.radio-option input[type="radio"] {
  margin-right: 10px;
}

.checkbox-option input[type="checkbox"] {
  margin-top: 10px;
}

input[placeholder] {
  color: var(--text-color);
  font-size: 14px;
}

fieldset {
  border: dashed 2px var(--accent-color);
  margin-bottom: 10px;
  padding: 10px;
}

p {
  font-size: 14px;
}

select {
  background-color: var(--secondary-color);
  border-radius: 3px;
  color: #fff;
  font-size: 14px;
  padding: 2px;
}

.textarea-box label {
  font-size: 18px;
}

textarea {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.submit-button {
  display: flex;
  width: 100%;
  justify-content: center;
}

button {
  background-color: var(--accent-color);
  color: #fff;
  border-radius: 5px;
  border: 1px solid var(--primary-color);
  margin-bottom: 10px;
  padding: 8px 0;
  text-transform: uppercase;
  width: 100%;
}

footer {
  display: flex;
  width: 100%;
  background-color: var(--primary-color);
  padding: 8px;
}

.tablet-desktop-footer {
  display: none;
}

@media (min-width: 576px) {
  .hero-image {
    height: 450px;
  }

  footer {
    justify-content: space-between;
  }

  .tablet-desktop-footer {
    display: block;
  }

  footer a {
    display: block;
    margin: 3px;
  }
}

@media (min-width: 768px) {
  .navigation-mobile {
    display: none;
  }

  .navigation-tablet-desktop {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navigation-tablet-desktop a {
    color: var(--secondary-accent-color);
    padding: 15px;
    text-transform: uppercase;
  }

  .navigation-tablet-desktop a:hover {
    background-color: var(--secondary-accent-color);
    color: #fff;
  }

  .hero-image {
    height: 550px;
  }

  .tablet-desktop-layout {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .tablet-desktop-layout label {
    width: 48%;
  }

  .post-code-box {
    width: 35%;
  }

  .post-code-box label {
    width: 90%;
  }

  .city-box {
    width: 100%;
  }

  .city-box label {
    width: 100%;
  }
}

@media (min-width: 992px) {
  body {
    width: 80%;
    padding: 10px;
    margin: auto;
  }

  form {
    border-right: 2px solid var(--primary-color);
    border-left: 2px solid var(--primary-color);
  }
}

@media (min-width: 1200px) {
  body {
    width: 70%;
  }

  .hero-image {
    height: 650px;
  }
  .banner {
    padding: 5px 0;
  }

  .hero-text h1 {
    font-size: 30px;
  }
}
