* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding: 20px;
  min-height: 100vh; /* Ensure minimum height of viewport */
  display: flex;
  flex-direction: column; /* Ensures content stretches vertically */
  position: relative; /* Create a stacking context */
}

/* Pseudo-element for the background image */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('background2.jpg') no-repeat center center;
  background-size: cover;
  z-index: -1; /* Place behind the main content */
}

/* Pseudo-element for the dark overlay */
body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.075); /* Adjust the alpha value to control the darkness */
  z-index: -1; /* Place above the background image but behind the content */
}

main {
  flex: 1; /* Main content expands to fill remaining space */
  max-width: 1100px;
  margin: 20px auto;
  padding: 20px;
  background: rgba(250, 249, 249, 0.767);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#profile h2 {
  font-size: 35px;
  font-weight: bold;
  color: black;
  text-align: center;
  margin-bottom: 25px;
  border-bottom: 2px solid #979696;
  padding-bottom: 15px;
}

#profile h2 span {
  flex: 1;
  text-align: left;
  padding-left: 16px;
}

#profile-details > div {
  margin-bottom: 20px;
}

#profile-details label {
  font-weight: bold;
  margin-bottom: 5px;
  display: inline-block; /* Ensure labels are on the same line */
  color: black;
  text-align: left;
  position: relative; /* Needed for ::after positioning */
  margin-right: 5px; /* Small margin to bring asterisk closer */
}

/* Specific styling to exclude Visa and MasterCard */
#profile-details label[for="visa-master"] {
  display: none;
}

#profile-details label::after {
  content: " *";
  color: red;
}

#profile-details label.visa-master::after {
  content: ""; /* Remove asterisk for Visa and MasterCard labels */
}

#profile-details input[type="text"],
#profile-details input[type="tel"],
#profile-details input[type="email"],
#profile-details input[type="date"],
#profile-details input[type="number"],
#profile-details input[type="checkbox"],
#profile-details input[type="month"] {
  width: 100%;
  padding: 10px;
  border: none;
  border-bottom: 1px solid black; /* Underline effect */
  border-radius: 0px; /* Remove rounded corners */
  font-size: 16px;
  background-color: transparent; /* Transparent background */
  transition: border-color 0.3s ease; /* Smooth transition for border color */
}

#profile-details input[type="text"]:focus,
#profile-details input[type="tel"]:focus,
#profile-details input[type="email"]:focus,
#profile-details input[type="date"]:focus,
#profile-details input[type="number"]:focus,
#profile-details input[type="checkbox"]:focus,
#profile-details input[type="month"]:focus
 {
  border-color: #555; /* Change border color on focus */
  outline: none; /* Remove default outline */
}
#profile-details input[type="month"] {
  -webkit-appearance: none !important; /* For Safari */
  -moz-appearance: none !important; /* For Firefox */
  appearance: none !important; /* For other browsers */
  background-color: transparent !important; /* Transparent background */
  border: none !important;
  border-bottom: 1px solid black !important; /* Underline effect */
  border-radius: 0px !important; /* Remove rounded corners */
  font-size: 16px !important;
  width: 100% !important;
  padding: 10px !important;
  transition: border-color 0.3s ease !important; /* Smooth transition for border color */
}

#profile-details input[type="month"]:focus {
  border-color: #555 !important; /* Change border color on focus */
  outline: none !important; /* Remove default outline */
}

#profile-details p {
  font-weight: bold;
  margin-top: 20px; /* Added margin-top for spacing */
}

.red-asterisk {
  color: red;
  margin-left: 2px; /* Adjust spacing between text and asterisk */
}

#profile-details input[type="submit"] {
  grid-column: span 2;
  background: #333;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
}

#profile-details input[type="submit"]:hover {
  background: #555;
}

a {
  color: #333;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.checkbox-container {
  display: flex;
  flex-direction: column;
}

.checkbox-item {
  margin-bottom: 10px;
}

.visa-master {
  margin-left: 8px;
}

button {
  background-color: #036194;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 1px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
}

button:hover {
  background-color: #333;
}

/* Styling for the back to top link */
.back-to-top-container {
  display: flex;
  justify-content: flex-end; /* Align items to the right */
}

.back-to-top {
  display: block;
  width: 30px; /* Reduced width */
  height: 30px; /* Reduced height */
  background-color: #036194;
  border: 1px solid #007acc; /* Darker border color */
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  color: #fff; /* White text color */
  font-size: 16px; /* Reduced font size */
}

.back-to-top:before {
  content: "\25b2"; /* Unicode character for upward-pointing arrow */
  font-size: 14px; /* Reduced arrow size */
  line-height: 30px; /* Center vertically */
  color: #fff; /* White arrow color */
}

/* Media query for tablets and larger phones */
@media (min-width: 768px) {
  /* Adjust other styles for larger screens */
  .grid-container {
      padding: 11px; /* Adjust spacing */
  }
}

/* Media query for desktop screens */
@media (min-width: 1024px) {
  /* Further adjustments for larger screens */
  .grid-container {
      /* Example styles: */
      padding: 15px; /* Further increase padding */
  }
}

.whatsapp-fab {
  position: fixed;
  left: 20px; /* Adjust as needed for desired positioning */
  bottom: 20px; /* Adjust as needed for desired positioning */
  z-index: 1000;
}

.whatsapp-fab img {
  width: 60px; /* Adjust size as needed */
  height: auto;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.whatsapp-fab img:hover {
  transform: scale(1.1);
}

/* Modal styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  border-radius: 10px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
