@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,100..1000&family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:wght@400;600;800&display=swap');

body {
  background-color: #083452;
  background: url('../images/bg.jpg') center center/cover no-repeat;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #ffffff;
}

img {
  display: block;
  max-width: 100%;
}

.cropper-view-box {
  outline: 0;
  box-shadow: 0 0 0 1px #39f;
}

.cropper__box {
  width: 100%;
  max-width: 370px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;

  flex-direction: column;
}

.form-box {
  overflow: hidden;
  border: 2px solid rgba(10, 13, 23, 0.05);
  border-radius: 20px;
  max-width: 640px;
  width: 100%;
  background: #272727;
}

.form-left {
  padding: 60px 60px 60px 60px;
}

.form-right {
  background: url('../images/santa.png') center bottom/contain no-repeat;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.title {
  font-weight: 800;
  font-size: clamp(2.125rem, 1.931rem + 0.8387vw, 2.9375rem);
  color: #62db36;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 28px;
  border-bottom: 1px solid #616161;
  padding-bottom: 10px;
}

.title span {
  font-weight: 600;
  font-size: clamp(0.75rem, 0.6754rem + 0.3226vw, 1.0625rem);
  letter-spacing: 0.1em;
  text-align: center;
  color: #ffffff;
}

.subtitle {
  font-weight: 400;
  font-size: clamp(0.5625rem, 0.473rem + 0.3871vw, 0.9375rem);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  opacity: 0.8;
}

.input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-box {
  position: relative;
  width: 100%;
  min-height: 42px;
}

.input-box .input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  padding: 0 14px;
  width: 100%;
  min-height: 42px;
  outline: none;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  transition: 0.3s;
}

.input-box span {
  position: absolute;
  left: 0;
  padding: 11px 14px;
  font-weight: 400;
  pointer-events: none;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  transition: 0.3s;
}

.input-box .input:valid ~ span,
.input-box .input:focus ~ span {
  color: #54ff54;
  transform: translateX(10px) translateY(-7px);
  font-size: 11px;
  padding: 0 14px;
  background-color: #1b2f40;
  letter-spacing: 2px;
}

input[type='date']::-webkit-calendar-picker-indicator {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="15" viewBox="0 0 24 24"><path fill="%23ffffff" d="M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z"/></svg>');
}

input[type='time']::-webkit-calendar-picker-indicator {
  color-scheme: dark;
  width: 16px;
  height: 16px;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  border-radius: 5px;
  padding: 0 14px;
  width: 100%;
  appearance: none;
  background-color: #333;
  color: #fff;
  border: 1px solid #555;
  padding: 8px;
  font-size: 16px;
  outline: none;
}

.input-box .input:valid,
.input-box .input:focus {
  border: 1px solid #54ff54;
}

.input-box .input:valid ~ span,
.input-box .input:focus ~ span {
  background-color: #272727;
  border-left: 1px solid #54ff54;
  border-right: 1px solid #54ff54;
  border-radius: 50px;
}

.input-box .input[type='date'],
.input-box .input[type='time'] {
  color: transparent;
}

.input-box .input[type='date']:valid,
.input-box .input[type='time']:valid,
.input-box .input[type='date']:focus,
.input-box .input[type='time']:focus {
  color: #ffffff;
}

.input-box .file-input {
  display: none;
}

.input-box label {
  display: flex;
  text-transform: uppercase;
  color: #ffffff;
  background-color: #d53b50;
  border-radius: 5px;
  padding: 0 20px;
  min-height: 42px;
  width: 100%;
  text-align: center;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  line-height: 1rem;
}

.input-box label .svg-inline--fa {
  display: var(--fa-display, inline-block);
  height: 1em;
  overflow: visible;
  vertical-align: -0.125em;
  margin-right: 6px;
}

.input-box label:active {
  transform: scale(0.9);
}

.btn-form {
  border: none;
  border-radius: 5px;
  padding: 0 20px;
  min-height: 42px;
  background: #6cd53b;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1rem;
  cursor: pointer;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-form:active,
.modal-footer .btn:active {
  transform: scale(0.9);
  border: none;
}

.modal-footer .btn:focus {
  box-shadow: none;
}

.modal-header {
  border-bottom: none;
}

.modal-body {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 20px;
  pointer-events: auto;
  background-color: rgb(153 198 255 / 14%);
  background-clip: padding-box;
  border-radius: 0.3rem;
  outline: 0;
  backdrop-filter: blur(12px);
  border: none;
  border-radius: 20px;
}

.modal-footer {
  /* justify-content: center; */
  border-top: none;
  flex-direction: row;
  flex-wrap: nowrap;
  margin: 0 auto;
}

.modal-footer .btn {
  display: inline-block;
  text-transform: uppercase;
  border: none;
  color: #ffffff;
  border-radius: 5px;
  min-height: 42px;
  min-width: 196px;
  width: 100%;
  text-align: center;
  cursor: pointer;
  outline: none;
}

.modal-footer .btn-primary {
  background-color: #6cd53b;
}

.modal-footer .btn-secondary {
  background-color: #d53b50;
}

.cropper__box {
  width: 400px;
  min-height: 400px;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image__placeholder {
  border-radius: 10px;
}

@media (max-width: 952px) {
  .input-wrapper {
    flex-direction: column;
  }

  .form-left {
    gap: 30px;
  }
}

@media (max-width: 730px) {
  .form-box {
    padding-top: 0;
  }

  .form-right {
    display: none;
  }

  .form-left {
    width: 100%;
    padding: 30px;
    gap: 26px;
  }

  .modal-footer {
    flex-wrap: wrap;
    padding: 0;
  }
}

@media (max-width: 434px) {
  .title span {
    font-size: 12px;
  }

  .subtitle {
    font-size: 9px;
  }

  .form-right {
    display: none;
  }

  .form-left {
    width: 100%;
    padding: 30px;
  }
}
