body {
  font-family: Jost, sans-serif;
  line-height: 1.6;
}

a,
button,
input,
select,
textarea {
  font-family: Jost, sans-serif;
}

.return__form-inner {
  max-width: 800px;
  margin: 60px auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #2c3e50;
}

h2 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  color: #403B3B;
  font-size: 1.3rem;
}

.form-section {
  margin-bottom: 30px;
}

.form-group+.form-group {
  margin-top: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: all 0.3s ease;
}

input:hover,
textarea:hover {
  border-color: #403B3B;
}

textarea {
  resize: none;
}

.radio-group {
  margin-bottom: 10px;
}

.radio-group input[type="radio"] {
  margin-right: 10px;
}

.radio-group label {
  display: inline;
  font-weight: normal;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 5px;
}

.checkbox-group label {
  font-weight: normal;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

button {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-btn {
  background-color: #403B3B;
  color: white;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #13191D;
}

.reset-btn {
  background-color: #e74c3c;
  color: white;
}

.reset-btn:hover {
  background-color: #c0392b;
}

.add-btn {
  background-color: #403B3B;
  color: white;
  margin-top: 10px;
}

.add-btn:hover {
  background-color: #13191D;
}

.remove-product-btn {
  background-color: #e74c3c;
  color: white;
  padding: 8px 16px;
  margin-top: 10px;
}

.remove-product-btn:hover {
  background-color: #c0392b;
}

.product-item {
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.product-divider {
  border: 0;
  height: 1px;
  background-color: #eee;
  margin-top: 20px;
}

.payment-details {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 4px;
  margin-top: 15px;
  border: 1px solid #eee;
}

.payment-details p {
  margin-bottom: 15px;
  font-weight: bold;
}


label[for*="required"]::after,
label[for*="customer-name"]::after,
label[for*="passport"]::after,
label[for*="passport-issued"]::after,
label[for*="address"]::after,
label[for*="customer-phone"]::after,
label[for*="customer-email"]::after,
label[for*="order-number"]::after,
label[for*="order-date"]::after,
label[for*="product-name"]::after,
label[for*="product-quantity"]::after,
label[for*="product-price"]::after,
label[for*="return-reason"]::after {
  content: " *";
  color: #e74c3c;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #403B3B;
}

.form-submitted input:invalid,
.form-submitted select:invalid,
.form-submitted textarea:invalid {
  border-color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.05);
}

.form-submitted input:invalid+.error-message,
.form-submitted select:invalid+.error-message,
.form-submitted textarea:invalid+.error-message {
  display: block;
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
}

.custom-select {
  position: relative;
  font-family: Arial, sans-serif;
  width: 100%;
}

.hidden-select {
  display: none;
}

.select-selected {
  background-color: white;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  user-select: none;
}

.select-selected:after {
  position: absolute;
  content: "";
  top: 50%;
  right: 15px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: #333 transparent transparent transparent;
  transform: translateY(-25%);
}

.select-selected.select-arrow-active:after {
  border-color: transparent transparent #333 transparent;
  transform: translateY(-75%);
}

.select-items {
  position: absolute;
  background-color: white;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.select-hide {
  display: none;
}

.select-items div {
  padding: 10px 12px;
  cursor: pointer;
  user-select: none;
}

.select-items div:hover,
.same-as-selected {
  background: rgba(64, 59, 59, 0.7);
  color: #fff;
}

.form-submitted .custom-select.invalid .select-selected {
  border-color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.05);
}

input[type="file"] {
  padding: 10px 0;
  border: none;
}

.form-hint {
  font-size: 12px;
  color: #7f8c8d;
  margin-top: 5px;
}

button {
  position: relative;
  overflow: hidden;
}

button:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

button:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }

  20% {
    transform: scale(25, 25);
    opacity: 0.3;
  }

  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

.form__radio-btns {
  margin-top: 16px;
}

.custom-radio {
  position: relative;
  margin-bottom: 15px;
  cursor: pointer;
  width: fit-content;
}

.custom-radio input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.radio-checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.custom-radio:hover input~.radio-checkmark {
  border-color: #ccc;
}

.custom-radio input:checked~.radio-checkmark,
.radio-checkmark.checked {
  border-color: #403B3B;
}

.radio-checkmark:after {
  content: "";
  position: absolute;
  display: none;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #403B3B;
  transform: translate(-50%, -50%) scale(0);
  transition: all 0.3s ease;
}

.custom-radio input:checked~.radio-checkmark:after,
.radio-checkmark.checked:after {
  display: block;
  transform: translate(-50%, -50%) scale(1);
}

.custom-radio label {
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  font-size: 16px;
  line-height: 20px;
  display: inline-block;
  color: #333;
  user-select: none;
  margin: 0;
}

.custom-checkbox {
  position: relative;
  margin-bottom: 15px;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.custom-checkbox:hover input~.checkbox-checkmark {
  border-color: #ccc;
}

.custom-checkbox input:checked~.checkbox-checkmark {
  background-color: #403B3B;
  border-color: #403B3B;
}

.checkbox-checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: all 0.2s ease;
}

.custom-checkbox input:checked~.checkbox-checkmark:after {
  display: block;
}

.custom-checkbox label {
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.5;
  display: inline-block;
  color: #333;
  user-select: none;
}

.custom-checkbox label a {
  color: rgba(64, 59, 59, 0.8);
  ;
  text-decoration: none;
  border-bottom: 1px solid rgba(64, 59, 59, 0.8);
  ;
  transition: all 0.3s ease;
}

.custom-checkbox label a:hover {
  color: rgba(64, 59, 59, 1);
  border-color: rgba(64, 59, 59, 1);
}

.custom-checkbox input:focus~.checkbox-checkmark {
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.custom-checkbox input:disabled~.checkbox-checkmark {
  background-color: #f5f5f5;
  border-color: #ddd;
  cursor: not-allowed;
}

.custom-checkbox input:disabled~label {
  color: #999;
  cursor: not-allowed;
}

.checkbox-checkmark.checked {
  background-color: #403B3B;
  border-color: #403B3B;
}

.checkbox-checkmark.checked:after {
  display: block;
}

.custom-file-upload {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.custom-file-upload input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.file-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border: 2px dashed #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
  text-align: center;
}

.file-upload-placeholder svg {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
  fill: #403B3B;
}

.file-upload-placeholder span {
  color: #666;
  font-size: 16px;
}

.custom-file-upload:hover .file-upload-placeholder {
  border-color: #403B3B;
  background-color: #f0f8ff;
}

.file-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  user-select: none;
}

.file-preview {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.file-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-preview .remove-file {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  color: #ff3b30;
  transition: all 0.2s ease;
}

.file-preview .remove-file:hover {
  background-color: #ff3b30;
  color: white;
}

.file-upload-placeholder.drag-over {
  border-color: #403B3B;
  background-color: #e6f7ff;
}

.file-preview .file-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 10px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.success-container,
.warn-container {
  max-width: 800px;
  margin: 50px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.warn-icon {
  width: 160px;
  height: auto;
  margin: 0 auto 20px;
}

.success-icon svg,
.warn-icon svg {
  width: 100%;
  height: 100%;
}

.success-container h1,
.warn-container h1 {
  color: #333;
  margin-bottom: 20px;
}

.success-container p,
.warn-container p {
  color: #666;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.home--link {
  display: block;
  margin-top: 20px;
  font-size: 16px;
  color: #403B3B;
  text-decoration: none;
  padding: 12px 20px;
  color: #fff;
  background-color: #403B3B;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  width: 100%;
}

.home--link:hover,
.home--link:focus {
  background-color: #13191D;
  color: #fff;
}

.custom-select.is--warn .select-selected {
  border-color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.05);
}

.custom-select.is--warn .select-selected {
  border-color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.05);
}

.error-message {
  display: none;
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
}

.form-submitted .error-message {
  display: block;
}

input:invalid+.error-message {
  display: block;
}

.download-pdf-container {
  margin-top: 20px;
}

.download-pdf-btn {
  display: inline-block;
  padding: 12px 20px;
  background-color: #32BEA6;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
  width: 100%;
  text-align: center;
  font-weight: 400;
}

.download-pdf-btn:hover,
.download-pdf-btn:focus {
  background-color: #403B3B;
  color: #fff;
}

.return__form-inner h1 {
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  main {
    padding: 20px;
  }

  .form-actions {
    flex-direction: column;
  }

  .submit-btn,
  .reset-btn {
    width: 100%;
    margin-bottom: 10px;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  input[type="number"],
  select,
  textarea {
    font-size: 14px;
  }

  button {
    font-size: 14px;
    padding: 10px 20px;
  }

  .select-selected {
    font-size: 14px;
  }

  .select-items div {
    font-size: 14px;
  }
  .file-upload-placeholder svg {
    width: 30px;
    height: 30px;
  }
  .custom-checkbox label {
    font-size: 12px;
  }
  .file-upload-placeholder span,
  .file-upload-placeholder .file-size-hint {
    font-size: 14px;
  }
  .return__form-inner {
    padding: 16px;
    margin: 16px auto;
  }
}

.custom-checkbox.not--selected .checkbox-checkmark {
  border-color: #e74c3c;
}

.custom-checkbox.not--selected label {
  color: #e74c3c;
}

.custom-checkbox.not--selected label a {
  color: #e74c3c;
  border-color: #e74c3c;
}
