/* Base page */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #fcfcfc;
  background-size: cover;
  background-position: centre;
  background-repeat: no-repeat;
  color: #1f2933;
}

/* Main layout width */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Header */
header {
  background: #1f5f3b;
  color: white;
  padding: 1em;
}

header h1 {
  margin-bottom: 12px;
  margin-top: 20px;
  margin-left: 20px;
}

/* Primary navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding-left: 0;
  margin: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 6px;
}

nav a:hover,
nav a:focus {
  box-shadow: 0 8px 24px;
}

/* Example content sections */
.intro,
.services {
  background: white;
  margin-top: 20px;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 8px 24px;
}

/* Contact form section */
.contact-section {
  margin-top: 2em;
  margin-left: auto;
  margin-right: auto;
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 24px;
}

.contact-form {
  border: 1px solid dodgerblue;
  border-radius: 10px;
  padding: 35px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: 1em;
}

label {
  font-weight: bold;
  margin-bottom: 0.5em;
  margin-right: 0;
}
input
      {
      padding: .5em;
      margin: 1em 1em 0 0;
      border: 1px solid #cbd5e1;
      border-radius: 10px;
      font-size: 1rem;
      font-family: inherit;
      background: #fcfcfc;
      
      /* height: 100%; */
      }

/*  
input,
select,
textarea,
button {
  box-sizing: border-box;
  font-family: inherit;
  font-size: 1rem;
}

input,
select {
  padding: 0.5em;
  margin: 1em 1em 0 0;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fcfcfc;
}
*/
/* Contact header */
.contact-header {
  background: rgb(101, 218, 6);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
  min-height: 100px;
  box-sizing: border-box;
  margin-bottom: 1em;
  border-radius: 20px;
  border: #1f2933 solid 1px;
}

/* Form groups */
.form-group {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.search {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 20px;
  padding: 2em;
}

.datetime {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 1em;
  margin-bottom: 1em;
}

.name {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 0.5em;
}

.contact {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 1em;
}

.dob,
.password,
.age,
.living,
.transportation,
.color,
.security,
.file-url {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  gap: 1em;
}

.comments {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  gap: 0.5em;
}

.comments textarea {
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #fcfcfc;
  min-height: 140px;
  resize: vertical;
  width: 100%;
}

.submit {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  gap: 1em;
}

.submit-btn {
  width: fit-content;
  padding: 14px 24px;
  border: none;
  border-radius: 10px;
  background: #3710d2;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}


/* Tablet and smaller */
@media screen and (max-width: 1200px) {
  .container {
    width: 95%;
  }

  .contact-header {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: auto;
    gap: 1em;
  }

  .search {
    width: 100%;
    justify-content: flex-start;
    padding: 0;
    margin-top: 0;
  }

  .search input {
    width: 100%;
    margin: 0;
  } 
  .name,
  .contact,
  .datetime,
  .dob,
  .password,
  .age,
  .living,
  .transportation,
  .color,
  .security,
  .file-url,
  .submit,
  .form-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .name input,
  .contact input,
  .datetime input,
  .dob input,
  .password input,
  .security input,
  .security select,
  .file-url input,
  .comments textarea,
  .color input[type="color"] {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
  } 
}
