/* General Styling */
body {
    font-family: "Arial", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f6fa;
    color: #333;
    line-height: 1.6;
    background-image: url("background.avif");
   
  }
    .custom-file-upload.file-uploaded {
    background-color: #90EE90 !important; /* Light green */
    border: 2px solid #008000 !important; /* Dark green border */
    color: #000; /* Ensuring text visibility */
}

  /* Container Styling */
  .container {
    width: 90%;
    margin: 150px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* margin-top: 20px; */
  }
  h1 {
    text-align: center;
    color: #333;
  }
  .upload-success {
  display: none;
  color: green;
  font-size: 18px;
  margin-left: 10px;
}
.upload-success.show {
  display: inline-block;
}
  /* .progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: bold;
  } */
  /* Sidebar Styling */
  /* .sidebar {
    width: 30%;
    background: linear-gradient(135deg, #4a00e0, #8e2de2);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
  } */
  
  /* .sidebar h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: bold;
  } */
  
  /* Steps Styling */
  .step {
    display: flex;
    align-items: flex-start; /* Align items at the start of the container */
    flex-direction: column; /* Stack elements vertically */
    padding: 12px 15px;
    border-radius: 30px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    background: rgba(255, 255, 255, 0.1);
    color: black;
    font-size: 1rem;
    width: 98%;
  }
  
  .step.active {
    background: #fff;
    color: #e67e22;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .step span {
    width: 35px;
    height: 35px;
    background: #fff;
    color: #e67e22;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .step:hover {
    /* transform: translateX(15px); */
    background: rgba(255, 255, 255, 0.2);
  }
  input[type="file"] {
    display: none; /* Hide the default file input button */
  }
  
  /* Style the label as a custom file upload area */
 .custom-file-upload {
    display: inline-block;
    width: 89%; /* Allow the label to expand to the full width */
    padding: 12px 20px;
    font-size: 14px;
    color: #fff;
    background-color: #f1c40f; /* Subtle yellow background */
    border: 1px solid #f39c12; /* Match the border with the background */
    border-radius: 5px;
    text-align: center; /* Center the text */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth transition */
    text-transform: uppercase; /* Make text uppercase for emphasis */
    position: relative;
    left: 4%;
    margin-bottom: 20px;
  }
  .buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 10px;
  }
  /* Hover effect for the custom file input */
  .custom-file-upload:hover {
    background-color: #f39c12;
    border-color: #e67e22; /* Slightly darker border on hover */
    transform: scale(1.05); /* Slightly scale up the button */
  }
  
  /* Add a subtle focus effect */
  input[type="file"]:focus + .custom-file-upload {
    outline: none;
    border-color: #e67e22; /* Darker border on focus */
  }
  
  /* Styling for text inside the custom file input area */
  .custom-file-upload span {
    font-size: 14px;
    color: #fff;
  }
  
  /* Optional: Add a small icon to indicate file selection */
  .custom-file-upload:before {
    content: "\f0c6"; /* Font Awesome upload icon */
    font-family: "FontAwesome"; /* Ensure FontAwesome is included */
    margin-right: 10px;
    font-size: 16px;
  }
  /* Display file name when a file is selected */
  .file-name {
    margin-left: 10px;
    font-size: 14px;
    color: #333;
    font-style: italic;
  }
  /* Content Area Styling */
  .content {
    width: 70%;
    padding: 30px;
  }
  
  label {
    display: block;
    margin: 8px 0 4px;
    font-size: 14px;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  textarea,
  select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    background-color: #f9f9f9;
    margin: 5px 0 15px 0;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
  }
  
  /* Focus effect for inputs */
  input[type="text"]:focus,
  input[type="email"]:focus,
  input[type="tel"]:focus,
  input[type="number"]:focus,
  input[type="date"]:focus,
  textarea:focus,
  select:focus {
    border-color: #4caf50;
    outline: none;
    background-color: #fff;
  }
  
  /* Specific styling for phone number input */
  input[type="tel"] {
    -webkit-appearance: none; /* For iOS */
    -moz-appearance: textfield; /* For Firefox */
    appearance: none; /* General appearance */
    padding-left: 15px; /* Adjust padding for input */
    font-family: "Arial", sans-serif; /* Custom font */
    font-size: 16px; /* Better font size for readability */
  }
  
  /* Input validation styling (e.g., for pattern mismatch) */
  /* input[type="tel"]:invalid {
    border-color: red;
  } */
  
  /* Optional: styling for input placeholders */
  input::placeholder {
    color: #888;
    font-style: italic;
  }
  /* General styling for the file input */
   #submit-payment{
    margin-top: 10px;
    width:100%;
  background: #f9ae02;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  }
  /* Button Styling */
  button {
    background: #f5601a;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    width: 10%;
    /* border: 3px solid tomato; */
  }
  .step {
    display: none;
  }
  
  .step.active {
    display: block;
  }
  .error {
    border: 1px solid red;
    outline: none;
}

.error-message {
    color: red;
    font-size: 0.85em;
    margin-top: 5px;
    margin-left: 2px;
}

  button:hover {
    background: #f1c540;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: black;
    /* border: 3px solid rgba(255, 255, 0, 0.671); */
  }
  
  button:disabled {
    background: #ccc;
    cursor: not-allowed;
  }
  
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* Popup */
.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #f5601a;
  padding: 20px;
  z-index: 1000;
  width: 90%;
  max-width: 400px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Popup Header and Text */
.popup h2 {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 15px;
}

.popup p {
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 20px;
}

/* Radio Buttons as Cards */
input[type="radio"] {
  display: none; /* Hide original radio buttons */
}

label[for="qr-payment"] {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #f9f9f9;
  cursor: pointer;
  font-size: 16px;
  color: #333;
  text-align: center;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

label[for="qr-payment"]:hover {
  background: #fffd9e;
  border-color: #f9ee27;
  box-shadow: 0 5px 15px rgba(74, 0, 224, 0.1);
}
label[for="cash-payment"] {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #f9f9f9;
  cursor: pointer;
  font-size: 16px;
  color: #333;
  text-align: center;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

label[for="cash-payment"]:hover {
  background: #fffd9e;
  border-color: #f9ee27;
  box-shadow: 0 5px 15px rgba(74, 0, 224, 0.1);
}

input[type="radio"]:checked + label {
  background: #f3e8ff;
  border-color: #f9ee27;
  box-shadow: 0 5px 15px rgba(74, 0, 224, 0.2);
}

/* QR Section */
#qr-section {
  display: none;
  margin-bottom: 20px;
}

#qr-section img {
  width: 130px;
  height: auto;
  margin: 10px auto;
}

#qr-section input[type="file"] {
  display: block;
  margin: 10px;
  width: 90%;
}
label[for="payment_screenshot"] {
color:white;
}
/* Close Button */
#close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  color: #333;
  border: none;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
}

#close-popup:hover {
  color: #f9ee27; 
}
#submit-payment:hover {
  background: #f9ee27;
}

/* Animations */
@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.popup.show {
  display: block;
  animation: popupFadeIn 0.4s ease forwards;
}

  @media (max-width: 768px) {
  label {
    font-size: 14px;
    padding: 12px;
  }

  #qr-section img {
    width: 130px;
  }
}

  h1 {
    color: #e67e22;
  }
  /* Responsive Design */
  @media (max-width: 768px) {
    .container {
      flex-direction: column;
    }
  
    .sidebar {
      width: 100%;
      text-align: center;
      padding: 20px 10px;
    }
  
    .sidebar h3 {
      font-size: 1.6rem;
    }
  
    .content {
      width: 100%;
      padding: 20px;
    }
  
    button {
      width: 100%;
      padding: 12px;
    }
  
    .step span {
      width: 30px;
      height: 30px;
      font-size: 1rem;
    }
    input[type="file"] {
      padding: 5px;
      font-size: 14px;
    }
  
    input[type="date"] {
      padding: 10px;
    }
  
    textarea {
      padding: 10px;
    }
    .step {
      width: 100%;
    }
    h1 {
      font-size: large;
    }
    .custom-file-upload {
      width: 85%;
      position: relative;
      left: 0%;
    }
  }
  
  @media (max-width: 480px) {
    .sidebar h3 {
      font-size: 1.4rem;
    }
  
    .content h2 {
      font-size: 1.8rem;
    }
      .popup{
      width: 80%;
    }
    #qr-section input[type="file"]{
      width: 90%;
    }
    .popup h2 {
        font-size:19px;
    }
    .popup p {
    font-size: 14px;
    }
    label[for="cash-payment"] {
        font-size: 13px;
        padding: 11px;
    }
   label[for="qr-payment"] {    
        font-size: 13px;
        padding: 11px;
    }
  }
   @media (max-width: 768px) {
    #close-popup {
      font-size: 20px; /* Adjust size of the close button */
      top:1%;
      left: 44%;
    }
       
   }
  