/* Header */
head {
  margin-left: 6%;
  margin-right: 6%;
}

/* Body */
body {
  color: #404040;
  margin-left: 6%;
  margin-right: 6%;
  background: -webkit-gradient(linear, left top, left bottom, from(#fdfdfd), to(#47774447));
  line-height: 26px;
}

/* Everything: Set the font family and border-box for some reason */
* {
  font-family: sans, sans-serif;
  box-sizing: border-box;
}

/* All Links: Style all the links to avoid the ugly default purple and blue and underlines */
* a {
 color: #666666;
 text-decoration: none;
}

/* All Links on Hover: Style all links when you hover for visual feedback */
* a:hover,
* a:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* Button: Green button style */
.button {
  background: -webkit-linear-gradient(top, #509947, #277b1e);
  border-radius: 6px;
  display: block;
  padding: 14px;
  text-align: center;
  color: #fff;
  text-decoration: none;
  position: relative;
  width: auto;
  font-weight: bold;
}

/* All buttons on Hover: Style all buttons when you hover for visual feedback */
* .button:hover,
* .button:focus {
  color: #000 !important;
  text-decoration: none;
  cursor: pointer;
}

/* Wrapper: Everything below the header and before the footer */
.wrapper {
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto 1fr auto;
  grid-row-gap: 20px;
  grid-column-gap: 20px;
}

/* Homebox: First box after header with service area */
.homebox {
  grid-column: 1 / span 4;
  grid-row: 2;
  text-align: center;
  background: -webkit-gradient(linear, left top, left bottom, from(#292929), to(#131313));
  color: white;
  padding: 16px;
  border-radius: 18px; 
}

/* Pricing Boxes: Setup the plan pricing grid */
.pricing {
  display: grid;
  grid-column: 1 / span 4;
  grid-row: 3;
  column-gap: 15px;
  grid-row-gap: 15px;
  grid-template-columns: 0.5fr 0.5fr 0.5fr 0.5fr;
}

/* Adust the grid columns based on screen size */
@media (max-width:1200px) {
  .pricing {
  grid-template-columns: 0.5fr 0.5fr;
  }
}

/* Adust the grid columns based on screen size */
@media (max-width:750px) {
  .pricing {
  grid-template-columns: 1fr;
  }
}

/* Style the plan box inside the pricing grid  */
.plan {
  border: 1px solid #a2a2a2a2;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  display: grid;
  background: #ffffff;
  grid-template-rows: auto auto 1fr auto auto;
}

/* Style the plan title inside the plan box */
.plan .title {
  font-size: 1em;
  text-align: center;
  font-weight: bold;
}

/* Style the plan sub-title */
.plan .subtitle {
  font-size: 14px;
  text-align: center;
  font-weight: bold;
  color: #404040;
}

/* Style the plan description */
.plan .description {
  font-size: 0.9em;
  text-align: center;
}

/* Style the plan speed */
.plan .speed {
  font-size: 1em;
  text-align: center;
  font-weight: bold;
  margin-bottom: -28px;
}

/* Style the plan price */
.plan .price {
  font-size: 1em;
  text-align: center;
  font-weight: bold;
  margin-bottom: -16px;
  color: green;
}

/* Fiber and WIFI information box */
.fiber-information {
  grid-row: 4;
  grid-column: 1 / span 4;
  font-size: 14px;
  text-align: center;
  padding: 5px 20px;
  background: white;
  border: 1px solid #a2a2a2a2;
  border-radius: 12px;
}

/* Fiber and WIFI information box */
.important-information {
  grid-row: 8;
  grid-column: 1 / span 4;
  font-size: 14px;
  text-align: center;
  padding: 5px 20px;
  background: white;
  border: 1px solid #a2a2a2a2;
  border-radius: 12px;
}

/* Contact box: Setup the contact us grid box */
.contact {
  grid-row: 5;
  grid-column: 1 / span 4;
  font-size: 14px;
  text-align: center;
  font-weight: bold;
  display: grid;
  grid-template-columns: 0.333fr 0.333fr 0.333fr;
  column-gap: 24px;
  row-gap: 24px;
}

/* Adust the grid columns based on screen size */
@media (max-width:750px) {
  .contact {
  grid-template-rows: 1fr;
  }
}

/* Header for contact box */
.contact-header {
  grid-row: 1;
  grid-column: 1 / span 3;
  font-size: 20px;
  font-weight: bold;
}

/* Contact billing office */
.contact-box-billing {
  color: white;
  font-weight: bold;
  align-content: center;
  border: 2px solid black;
  border-radius: 12px;
  padding: 12px;
  background: -webkit-gradient(linear, left top, left bottom, from(#292929), to(#131313));
}

/* Adust the grid columns based on screen size */
@media (max-width:1000px) {
  .contact-box-billing {
  grid-row: 3;
  grid-column: 1 / span 3;
  width: 100%;
  justify-self: center;
  }
}

/* Contact online */
.contact-box-message {
  color: white;
  font-weight: bold;
  align-content: center;
  border: 2px solid black;
  border-radius: 12px;
  padding: 12px;
  background: -webkit-gradient(linear, left top, left bottom, from(#292929), to(#131313));
}

/* Adust the grid columns based on screen size */
@media (max-width:1000px) {
  .contact-box-message {
  grid-row: 2;
  grid-column: 1 / span 3;
  width: 100%;
  justify-self: center;
  }
}

/* Contact Tech Support */
.contact-box-tech {
  color: white;
  font-weight: bold;
  align-content: center;
  border: 2px solid black;
  border-radius: 12px;
  padding: 12px;
  background: -webkit-gradient(linear, left top, left bottom, from(#292929), to(#131313));
}

/* Adust the grid columns based on screen size */
@media (max-width:1000px) {
  .contact-box-tech {
  grid-row: 4;
  grid-column: 1 / span 3;
  width: 100%;
  justify-self: center;
  }
}

/* Network Status Box */
.network-status {
  grid-row: 6;
  grid-column: 1 / span 2;
  font-size: 14px;
  text-align: center;
  padding: 20px 20px;
  background: white;
  border: 1px solid #a2a2a2a2;
  border-radius: 12px;

}

/* Adjust the grid columns based on screen size */
@media (max-width:750px) {
  .network-status {
  grid-row: 6;
  grid-column: 1 / span 4;
  }
}

/* Other services box */
.other-services {
  grid-row: 6;
  grid-column: 3 / span 2;
  text-align: center;
  padding: 5px 20px;
  background: white;
  border: 1px solid #a2a2a2a2;
  border-radius: 12px;
  font-size: 14px;
}

/* Adjust the grid columns based on screen size */
@media (max-width:750px) {
  .other-services {
  grid-row: 7;
  grid-column: 1 / span 4;
  }
}


/* Modal Map: */
.modal-map {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 90%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  -webkit-animation-name: fadeIn; /* Fade in the background */
  -webkit-animation-duration: 1s;
  animation-name: fadeIn;
  animation-duration: 1s
}


/* Modal Map: Content */
.modal-map-content {
  position: fixed;
  bottom: 0;
  background-color: #fefefe;
  width: 100%;
  -webkit-animation-name: slideIn;
  -webkit-animation-duration: 1s;
  animation-name: slideIn;
  animation-duration: 1s
}


/* Modal Map: Close Button */
.close {
  color: white;
  float: right;
  font-size: 22px;
  font-weight: bold;
  margin-top: 16px;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}


/* Modal Map: Header */
.modal-map-header {
  padding: 0px 14px;
  background-color: #5cb85c;
  color: white;
  background: -webkit-linear-gradient(top, #509947, #277b1e);
  height: 55px;
  align-content: center;
  font-size: 12px;
}


/* Modal Map: Body */
.modal-map-body {
  height: 85%;
  margin-bottom: -1%;
}

/* Modal Map: Footer */
.modal-map-footer {
  padding: 5px;
  background-color: #5cb85c;
  color: white;
  background: -webkit-linear-gradient(top, #509947, #277b1e);
  align-content: center;
  font-size: 12px;
}

.modal-map-footer-close:hover,
.modal-map-footer-close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* Map Modal: Animations */
@-webkit-keyframes slideIn {
  from {bottom: -300px; opacity: 0} 
  to {bottom: 0; opacity: 1}
}

@keyframes slideIn {
  from {bottom: -300px; opacity: 0}
  to {bottom: 0; opacity: 1}
}

@-webkit-keyframes fadeIn {
  from {opacity: 0} 
  to {opacity: 1}
}

@keyframes fadeIn {
  from {opacity: 0} 
  to {opacity: 1}
}










/* Modal Contact: */
.modal-contact {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}




/* Modal Contact: */
/* Modal Content */
.modal-contact-content {
  position: fixed;
  bottom: 0;
  background-color: #fefefe;
  width: 90%;
  margin-left: 5%;
  margin-right:5%;
#  margin-bottom: 5%;
  border-radius: 12px;

  -webkit-animation-name: slideIn;
  -webkit-animation-duration: 1s;
  animation-name: slideIn;
  animation-duration: 1s
}

/* Modal Contact: */
/* The Close Button */
.close2 {
  color: white;
  float: right;
  font-size: 22px;
  font-weight: bold;
  margin-top: 16px;
}

.close2:hover,
.close2:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}


/* Modal Contact: */
.modal-contact-header {
  padding: 0px 14px;
  background-color: #5cb85c;
  color: white;
  background: -webkit-linear-gradient(top, #509947, #277b1e);
  height: 55px;
  align-content: center;
  font-size: 12px;
  border-radius: 12px 12px 0 0;
}

/* Modal Contact: Body */
.modal-contact-body {
  height: 85%;
  margin-bottom: -3%;
  border-radius: 8px;
}

/* Modal Contact: Footer */
.modal-contact-footer {
  padding: 5px;
  background-color: #5cb85c;
  color: white;
  background: -webkit-linear-gradient(top, #509947, #277b1e);
  align-content: center;
  font-size: 12px;
  z-index: 1;
  position: sticky;
  display: none;
}

/* Modal Contact: Close */
.modal-contact-footer-close:hover,
.modal-contact-footer-close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* Modal Contact: Animations */
@-webkit-keyframes slideIn {
  from {bottom: -600px; opacity: 1} 
  to {bottom: 0; opacity: 1}
}

@keyframes slideIn {
  from {bottom: -600px; opacity: 1}
  to {bottom: 0; opacity: 1}
}

@-webkit-keyframes fadeIn {
  from {opacity: 1} 
  to {opacity: 1}
}

@keyframes fadeIn {
  from {opacity: 1} 
  to {opacity: 1}
}


/* Background for the contact Modal */
contact-form {
  background: -webkit-gradient(linear, left top, left bottom, from(#fdfdfd), to(#47774447));
  height: 100vh;  
}

/* Contact area background */
.contact-background {
  height: 97%;
  padding-top: 12px;
}

/* Contact form styling */
form {
    width: 100%;
    font-size: 14px;
    line-height: 1.5;
}

label {
    display: block;
    margin-left: -2px;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Contact Form Input Styling */
input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Contact form: Message Area */
textarea {
    width: 100%;
    height: 200px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Container for positioning floating labels */
.input-container {
    position: relative;
    margin-top: 20px;
}

/* Style the input field and textarea */
.input-container input,
.input-container textarea {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    width: 100%; /* Make them both full-width */
    box-sizing: border-box; /* Ensures padding doesn't affect total width */
}

/* Position the label over the input and textarea */
.input-container label {
    position: absolute;
    left: 10px;
    top: 10px;
    color: #686868;
    /* Add a smooth transition for the movement */
    transition: all 0.2s ease-in-out;
    pointer-events: none; /* Prevents the label from blocking clicks on the input */
}

/* Move the label up when the input or textarea is focused or has content */
.input-container input:focus + label,
.input-container input:valid + label,
.input-container input:user-invalid + label,
.input-container textarea:focus + label,
.input-container textarea:valid + label {
    top: -20px; /* Move the label upwards */
    font-size: 12px;
    color: #007bff; /* Change color for a better visual cue */
}

/* Combined selector for both input and textarea */
input:focus::placeholder,
textarea:focus::placeholder {
  opacity: 0;
}

/* For older browsers, include vendor prefixes */
input:focus::-webkit-input-placeholder,
textarea:focus::-webkit-input-placeholder { /* Chrome, Safari, Opera */
  opacity: 0;
}

input:focus::-moz-placeholder,
textarea:focus::-moz-placeholder { /* Firefox 19+ */
  opacity: 0;
}

input:focus:-ms-input-placeholder,
textarea:focus:-ms-input-placeholder { /* IE 10+ */
  opacity: 0;
}

/* Contact Form: CSS to hide the honeypot field from human users */
.hidden-field {
    display: none;
    visibility: hidden;
    position: absolute;
    left: -9999px;
}

/* Policy Page: */
.policy {
  grid-row: 4;
  grid-column: 1 / span 4;
  background: white;
  border: 1px solid #a2a2a2;
  border-radius: 12px;
  padding: 12px 36px;
  grid-row-gap: 24px;
  margin-top: -40px;
}

/* Policy Title: */
.policy-title {
}

/* Footer: */
.footer {
  grid-column: 1 / span 4;
  grid-row: 9;
  background: #000000;
  padding-top: 24px;
  padding-bottom: 24px;
  margin-top: 24px;
  margin-left: -6.8%;
  margin-right: -6.8%;
  margin-bottom: -2%;
  font-size: 13px;
}
