/* == BASE STYLES == */
.content {
    top: 50%;
}
.banner {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url(./source/icons/6.png);
}
.m1 {
  width: 100%;
  min-height: 700px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 0;
}

.d1 {
  width: 850px;
  position: relative;
}

.final {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #7c7c7c;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25), 0 1px 4px rgba(0, 0, 0, 0.25);
  padding: 40px 60px;
}

#subm {
  color: #0f411a;
  font-size: 40px;
  font-weight: bold;
  margin-top: 30px;
  text-align: center;
  display: none;
}

/* FORM STYLES */
.form {
  max-width: 750px;
  margin: auto;
  text-align: left;
}

.form-group {
  position: relative;
  margin-bottom: 40px;
}

.inp {
  width: 100%;
  font-size: 30px;
  font-weight: bold;
  padding: 10px 10px 10px 5px;
  border: none;
  border-bottom: 2px solid #0f411a;
  background: transparent;
  color: black;
  outline: none;
  transition: border-color 0.3s ease;
}

.inp:focus,
.inp:valid {
  border-bottom-color: #09510a;
}

.lab {
  position: absolute;
  top: 12px;
  left: 5px;
  font-size: 20px;
  color: #666;
  pointer-events: none;
  transition: 0.3s ease all;
}

.inp:focus + .lab .spn,
.inp:not(:placeholder-shown) + .lab .spn {
  transform: translateY(-150%);
  font-size: 16px;
  color: #0f411a;
  font-weight: bold;
}

.spn {
  display: inline-block;
  transition: all 0.3s ease;
}

/* Checkbox styling */
.form1 {
  margin-bottom: 40px;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  vertical-align: middle;
}

#lab_chk {
  font-size: 18px;
  margin-left: 10px;
  cursor: pointer;
  vertical-align: middle;
}

/* Submit Button */
#sub-btn {
  display: block;
  width: 100%;
  padding: 15px 0;
  font-size: 22px;
  font-weight: bold;
  color: #0f411a;
  background: white;
  border: 3px solid #0f411a;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.5s, color 0.5s;
}

#sub-btn:hover {
  background-color: #0f411a;
  color: white;
}

/* Responsive */
@media (max-width: 800px) {
  .d1 {
    width: 95vw;
  }

  .final {
    padding: 30px 20px;
  }

  .inp {
    font-size: 22px;
  }

  .lab {
    font-size: 16px;
    top: 10px;
    left: 5px;
  }

  #lab_chk {
    font-size: 16px;
  }

  #sub-btn {
    font-size: 18px;
    padding: 12px 0;
  }
}



/* == SECTION 2 == */
.m2 {
    padding: 400px 50px 50px 50px;
    margin: 0 0 150px 0;
}
.t2 {
    width: 1175px;
    margin: auto;
}
.t2 h1 { font-size: 45px; }
.t2 p { font-size: 25px; }

.d2 {
    width: 1200px;
    height: 90vh;
    margin: auto;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}
.d2 div {
    text-align: center;
    width: 375px;
    margin: 10px auto;
    overflow: hidden;
    position: relative;
    border-radius: 15px;
}
.d2 img {
    filter: brightness(80%);
    width: 100%;
    transition: 0.5s;
    cursor: pointer;
}
.d2 h3 {
    color: white;
    font-size: 35px;
    position: absolute;
    left: 5%;
    bottom: 5%;
}
.d2 img:hover {
    transform: scale(1.1);
}

/* == SECTION 3 == */
.m3 {
    padding: 25px;
    margin: 100px 0;
}
.d3 {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}
.d3 div {
    width: 600px;
    margin: 10px auto;
}
.d3 div h1 { font-size: 45px; }
.d3 div p {
    margin: 20px 0 30px 0;
    font-size: 20px;
}
.rd { color: #0f411a; }
.d3 div a {
    text-decoration: none;
    color: black;
}
.d3 div img {
    border-radius: 5px;
    display: block;
    width: 100%;
}

/* == SECTION 4 == */
.t4, .d4 {
    width: 75%;
    margin: auto;
}
.t4 h1 {
    font-size: 45px;
    color: #181717;
}
.d4 h4 {
    font-size: 30px;
    font-weight: bold;
}
.d4 p {
    font-size: 23px;
    color: #0c0c0c;
}
.d4 div {
    background: #c4aa7a;
    margin: 20px;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* == SECTION 5 == */
.d5 {
    position: relative;
    background-image: url('source/bk.jpg');
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 400px;
}
.d5 div {
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}
.d5 div h1 {
    font-size: 35px;
}
.d5 div button {
    padding: 15px 10px;
    margin: 20px 10px;
    border-radius: 25px;
    border: 2px solid #0f411a;
    font-size: 25px;
    font-weight: bold;
    transition: .5s;
    color: black;
}
.d5 div button:hover {
    background-color: #0f411a;
    color: white;
}

/* == FOOTER == */
.ftr-m {
    color: #f3f3f3;
    padding: 30px;
    background: #1b3a2a;
}
.ftr-t {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-bottom: 2px solid #1b3a2a;
    margin-bottom: 20px;
}
.ftr-t img {
    width: 250px;
}
.ftr-t ul {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
}
.ftr-t ul li a {
    display: block;
    color: white;
    text-decoration: none;
    margin-right: 20px;
}
.ftr-t ul li a i {
    font-size: 45px;
}
.ftr-t ul li a i:hover {
    color: #0f411a;
}
.ftr-d {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    border-bottom: 2px solid #1b3a2a;
}
.ftr-d div {
    width: 250px;
}
.ftr-d div h3 {
    margin-bottom: 10px;
}
.ftr-d div ul {
    margin-left: 25px;
    line-height: 30px;
}
.ftr-d div a {
    text-decoration: none;
    color: white;
}
.ftr-d div a:hover {
    color: #0f411a;
}
.ftr-b {
    padding: 15px 0;
    text-align: center;
}

/* == RESPONSIVE STYLES == */
@media (max-width: 768px) {
    .d1, .form, .t2, .d2, .d3 div, .t4, .d4, .ftr-d div {
        width: 100% !important;
    }
    .form, .final {
        height: auto;
        padding: 20px;
    }
    .inp {
        font-size: 22px;
    }
    .lab {
        font-size: 20px;
    }
    .lab::after {
        display: none;
    }
    #sub-btn {
        font-size: 20px;
        padding: 10px 20px;
    }
    .d2 {
        flex-direction: column;
    }
    .d2 div {
        width: 90%;
    }
    .d5 div h1 {
        font-size: 25px;
    }
    .d5 div button {
        font-size: 18px;
    }
    .ftr-t, .ftr-d {
        flex-direction: column;
        align-items: center;
    }
    .ftr-t ul {
        justify-content: center;
    }
}
