:root {
  color-scheme: only light;
  forced-color-adjust: none;
}


body {
  font-family: 'Montserrat', sans-serif;
  background-color: #fff;
  color: #2f2f3b;

}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  /* Prevent horizontal scroll */
}

.main-content {
  padding: 40px;
  max-width: 800px;
  margin: auto;
}

h1 {
  font-size: 46px;
  margin-bottom: 30px;
  font-family: 'Bodoni Moda', serif;
  font-weight: 400;
}

fieldset {
  border: none;
  margin-bottom: 40px;
  padding: 20px;
}

legend {
  font-weight: 600;
  font-family: 'Bodoni Moda', serif;
  font-size: 24px;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: #2f2f3b;
}

label {
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px;
  background-color: #eeeeee;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 24px;
  box-sizing: border-box;
}

select {
  appearance: none;
  width: 100%;
}

.select2-container {
  width: 100% !important;
  font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
}


.select2-container--default .select2-selection--single {
  background-color: #eeeeee;
  border: none;
  border-radius: 4px;
  height: 48px;
  /*padding: 10px 14px;*/
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #2f2f3b;
  box-sizing: border-box;
  margin-bottom: 24px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #2f2f3b;
  font-size: 14px;
  font-weight: 400;
  padding-left: 0;
  padding-right: 10px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 10px;
}

input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.2);
  vertical-align: middle;
}

label[for="privacy_consent"] {
  display: flex;
  align-items: center;
  text-transform: none;
  font-weight: 400;
  font-size: 14px;
}

button[type="submit"],
button[type="button"] {
  background-color: #b99b7c;
  color: white;
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #a88c72;
}

/* Wrapper for styling */
.file-upload-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #eeeeee;
  padding: 10px 14px;
  height: 48px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #2f2f3b;
  position: relative;
}

/* Hide native input */
.file-upload-wrapper input[type="file"] {
  opacity: 0;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Button-style look for "Choose file" */
.file-upload-button {
  background-color: #d9d9d9;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  cursor: pointer;
}

/* Disabled look and behavior */
.file-upload-wrapper.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.file-upload-wrapper.disabled .file-upload-button {
  cursor: not-allowed;
  opacity: 0.6;
}

.file-upload-wrapper.disabled #document_upload {
  cursor: not-allowed;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

input[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}


.select2-container--disabled .select2-selection {
  cursor: not-allowed !important;
  opacity: 0.6;
}

#document_label {
  margin-bottom: 24px;
}

input[type="number"] {
  width: 100%;
  padding: 12px;
  background-color: #eeeeee;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 24px;
  color: #2f2f3b;
  box-sizing: border-box;
  appearance: none;
  -moz-appearance: textfield;
}

/* Hide number spinners in WebKit (Chrome, Safari, Edge) */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* FOOTER */
.site-footer {
  width: 100%;
  background-color: #3c3d59;
  /* Dark blue-grey */
  color: #ffffffcc;
  /* Slightly transparent white */
  padding: 60px 40px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  box-sizing: border-box;
  overflow-x: hidden;

}

.footer-content p {
  margin: 0 0 10px 0;
}

.social-icons {
  margin-top: 10px;
}

.social-icons a {
  color: #ffffffcc;
  margin: 0 8px;
  font-size: 18px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #ffffff;
}


/* HEADER IMAGE*/
#company-name {
  font-size: 46px;
  top: 20px;
  left: 20px;
  font-family: 'Bodoni Moda', serif;
  font-weight: 400;
  width: 100%;
  text-align: left;
  z-index: 2;
  margin-left: 30px;
  height: 30px;

}

.header-wrapper {
  position: relative;

}


#cropperModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#cropperContent {
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#cropperImage {
  max-width: 100%;
  max-height: 70vh;
  border: 1px solid #ccc;
}

.cropper-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.privacy-text {
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 10px;
  margin-top: 5px;
  font-size: 0.9em;
  line-height: 1.4;
  background-color: #f9f9f9;
  border-radius: 4px;
}

/* Applies to all inputs and textareas */
input::placeholder,
textarea::placeholder,
select::placeholder {
  color: #aaaaaa;
  /* Light gray, change as needed */
  opacity: 1;
  /* Optional: ensure full opacity */
  font-style: italic;
  /* Optional: for subtle style */
}

@media (max-width: 768px) {

  .main-content {
    padding: 20px;
  }

  h1 {
    font-size: 32px;
    margin-bottom: 20px;
    margin-top: 20px;
    font-family: 'Bodoni Moda', serif;
    font-weight: 400;
  }

  #company-name {
    font-size: 32px;
    margin: 10px !important;
  }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #b99b7c;
  padding: 20px 30px;
  border-radius: 8px;
  color: white;
  font-size: 18px;
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* MOBILE VERSION: max-width 480px */
@media (max-width: 480px) {
  .loading-overlay {
    padding: 10px;
  }

  .loading-box {
    padding: 15px 20px;
    font-size: 16px;
  }

  .spinner {
    width: 35px;
    height: 35px;
    border-width: 5px;
    margin-bottom: 10px;
  }

  .loading-message {
    font-size: 14px;
    text-align: center;
  }
}