@font-face {
  font-family: "MyCustomFont";
  src: url("/static/font/Bold.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

* {
  font-family: "MyCustomFont";
}

form {
  background-color: #fff;
  padding: 25px;
  width: 50%;
  max-width: 500px;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15),
    inset 0px -2px 10px rgba(0, 123, 255, 0.1);
  border-radius: 15px;
  display: flex;
  flex-direction: column;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.top {
  margin-top: 20px;
}

form:hover {
  transform: translateY(-5px);
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.2),
    inset 0px -3px 12px rgba(0, 123, 255, 0.2);
}

label {
  font-weight: bold;
  font-size: 14px;
  color: #555;
  margin-bottom: 5px;
  position: relative;
}

label::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  background: #ff6900;
  margin-top: 5px;
  border-radius: 10px;
}

input[type="text"],
input[type="tel"],
input[type="file"] {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 90%;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  font-size: 14px;
  background: #f9f9f9;
}

.to {
  margin-top: 2px;
}

input[type="text"]:hover,
input[type="tel"]:hover,
select:hover,
input[type="file"]:hover {
  border-color: #ff6900;
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.15);
}

input[type="text"]:focus,
input[type="tel"]:focus,
select:focus,
input[type="file"]:focus {
  border-color: #0056b3;
  box-shadow: 0 5px 12px rgba(0, 86, 179, 0.2);
  outline: none;
  background: #e7f0ff;
}

::placeholder {
  color: #aaa;
  font-style: normal;
}

input[type="submit"] {
  background: #ff6900;
  /* Gradient background */
  color: white;
  /* Text color */
  padding: 12px;
  /* Padding around the text */
  border: none;
  /* No border */
  width: 145px;
  /* Fixed width */
  margin: auto;
  /* Center horizontally */
  margin-top: 20px;
  /* Space above the button */
  border-radius: 8px;
  /* Rounded corners */
  cursor: pointer;
  /* Pointer cursor on hover */
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
  /* Shadow effect */
  transition: all 0.3s ease;
  /* Smooth transition for hover effects */
  font-size: 16px;
  /* Font size */
}

#crop-button {
  background: #ff6900;
  /* Gradient background */
  color: white;
  /* Text color */
  padding: 12px;
  /* Padding around the text */
  border: none;
  /* No border */
  width: 100%;
  /* Fixed width */
  margin: auto;
  /* Center horizontally */
  margin-top: 20px;
  /* Space above the button */
  border-radius: 8px;
  /* Rounded corners */
  cursor: pointer;
  /* Pointer cursor on hover */
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
  /* Shadow effect */
  transition: all 0.3s ease;
  /* Smooth transition for hover effects */
  font-size: 16px;
  /* Font size */
}

/* Optional: Add hover effect for better user experience */
input[type="submit"]:hover {
  background: #ff6900;
  /* Reverse gradient on hover */
  box-shadow: 0 6px 15px rgba(0, 123, 255, 0.5);
  /* Darker shadow on hover */
}

input[type="submit"]:active {
  transform: scale(0.98);
}

form:hover input,
form:hover select,
form:hover input[type="submit"] {
  transition-delay: 0.1s;
}

/* .m {
  margin: auto;
  width: 600px;
  height: auto;
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
} */
.m {
  margin: auto;
  width: 90%;
  /* Use percentage */
  max-width: 600px;
  /* Set a max width */
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.form-row {
  display: flex;
  /* Added flex display to form-row div */
  align-items: center;
  /* Align vertically */
  gap: 10px;
  /* Space between label and input */
}

#image-preview-container {
  margin-top: 10px;
  width: 100%;
  /* Ensure it takes full width of the container */
  height: 200px;
  /* Set a fixed height */
  overflow: hidden;
  /* Prevent overflow */
  border: 1px solid #ddd;
  /* Optional: to give it a border */
  display: flex;
  justify-content: center;
  align-items: center;
}

#image-preview {
  max-width: 100%;
  /* Make sure the image does not exceed the container's width */
  max-height: 100%;
  /* Ensure it fits within the container's height */
  object-fit: contain;
  /* Preserve aspect ratio while fitting the image */
}

.width {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 98.5%;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  font-size: 14px;
  background: #f9f9f9;
}

#image-preview-container {
  margin-top: 10px;
  width: 100%;
  /* Ensure it takes full width of the container */
  height: 200px;
  /* Set a fixed height */
  overflow: hidden;
  /* Prevent overflow */
  border: 1px solid #ddd;
  /* Optional: to give it a border */
  display: none;
  /* Initially hide the container */
  justify-content: center;
  align-items: center;
}

#image-preview {
  max-width: 100%;
  /* Make sure the image does not exceed the container's width */
  max-height: 100%;
  /* Ensure it fits within the container's height */
  object-fit: contain;
  /* Preserve aspect ratio while fitting the image */
}

@media (max-width: 480px) {
  form {
    margin-top: -50px;
    background-color: #fff;
    padding: 25px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15),
      inset 0px -2px 10px rgba(0, 123, 255, 0.1);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
}

/* Style for the bottom-left footer */
.footer-left {
  /* position: fixed; */
  bottom: 10px;
  left: 10px;
  font-size: 14px;
  color: #555;
}

/* Style for the bottom-right footer */
.footer-right {
  /* position: fixed; */
  bottom: 10px;
  right: 10px;
  font-size: 14px;
  color: #555;
}