/* Reset */

/* Body styling */
/* body {
  height: 100vh;
  background-color: #f7f7f5 !important; 
  display: flex;
  justify-content: center;
  align-items: center;
} */

/* Center block */
/* .container {
  background-color: #000; 
  width: 100%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
} */
:root {
  --WhiteColor: #f7f7f5 !important;
  --PrimaryColor: #042b6f;
  --BorderColor: #ced4da;
  --PrimaryColorLight: #2455aa;
}
.centor-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65%;
  margin: auto;
  padding: 20px;
  border-radius: 10px !important;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  background: #040f317d;
  border: 1px solid white;
  color: white;
}
.form-container {
  color: white;
  position: relative;
  /* border-radius: 10px !important;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px; */
}

/* Form styling */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

input,
select {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  background: var(--PrimaryColor) !important;
  color: var(--WhiteColor) !important;
  border: 1px solid var(--BorderColor) !important;
}
input::placeholder {
  color: var(--WhiteColor) !important;
}

input::-webkit-input-placeholder {
  color: var(--WhiteColor) !important;
}

input:-ms-input-placeholder {
  color: var(--WhiteColor) !important;
}

input:focus {
  outline: none;
  border-color: #999;
}
#flip-button,
#rotate-right-button {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  background: var(--PrimaryColor) !important;
  color: var(--WhiteColor) !important;
  border: 1px solid var(--BorderColor) !important;
}

/* button {
  background-color: #333;
  color: #fff;
  border: 1px solid var(--BorderColor);
  cursor: pointer;
  transition: 0.3s;
  padding: 10px 30px !important;
}

button:hover {
  background-color: #555;
} */

.square-radio {
  display: flex;
  gap: 20px;
}

.square-radio-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}
.square-radio-option input {
  display: none;
}
.square-box {
  width: 26px;
  height: 26px;
  border: 2px solid var(--PrimaryColor);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  transition: all 0.2s ease;
  background: var(--WhiteColor);
}
.square-label {
  font-size: 16px;
  font-weight: 500;
  color: #555;
}
.square-radio-option input:checked + .square-box i {
  opacity: 1;
  transform: scale(1);
  /* background: var(--primary); */
}
.square-radio-option input:checked + .square-box {
  background: var(--PrimaryColor);
  border-color: var(--PrimaryColor);
}
.square-box i {
  font-size: 16px;
  color: var(--WhiteColor);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
  background: var(--PrimaryColor);
}
.step {
  transition: opacity 0.3s ease;
}

input.custom-file[type="file"]::-webkit-file-upload-button,
input.custom-file[type="file"].invalid::-webkit-file-upload-button,
input.custom-file[type="file"].valid::-webkit-file-upload-button {
  color: #fff;
  font-size: 13px;
  border: 0;
  -webkit-border-radius: 0.375rem;
  -moz-border-radius: 0.375rem;
  -ms-border-radius: 0.375rem;
  border-radius: 9px;
  padding: 8px 10px 8px 10px;
  background: var(--PrimaryColorLight) !important;
  /* outline: none; */
}

#cropperBox {
  width: 320px;
  height: 320px;
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ddd;
  background: #f8f8f8;
}

.signature {
  border: 1px solid var(--BorderColor) !important;
  border-radius: 20px !important;
  width: 100%;
  height: 300px;
  touch-action: none;
  background: #fff !important;
}

.footer-sign-container {
  position: absolute;
  bottom: 0;
  /* left: 0; */
  top: 100%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* background: var(--PrimaryColor); */
  margin-top: 30px !important;
}

/* .poster-preview {
  position: relative;
  display: inline-block;
} */

.poster-img {
  width: 50%;
}

.signature-js-sign {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 2;
}

.signature-js-sign img {
  width: 50%;
  height: auto;
}

/* .signature-js-sign {
  bottom: 12%;
  left: 60%;
  width: 120px;
} */

.poster-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#signaturePad {
  touch-action: none; /* 🔥 MOST IMPORTANT */
}

#poster-container-div {
  width: 100%;
  max-width: 600px; /* adjust */
  margin: 0 auto;
  overflow: hidden;
}

#finalCanvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.rotate-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  display: none;
}

@media screen and (orientation: landscape) and (max-height: 540px) {
  .centor-container {
    position: inherit;
    transform: none;
    margin: 30px auto;
  }
}
