/* Novitson Warranty Form Styles */
.novitson-warranty-form-container {
  font-family: "Atyp Display TRIAL", Sans-serif;
  color: #011016;
  background-color: #fff;
}

.novitson-warranty-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
  width: 100%;
}

.form-row.full-width {
  flex-direction: column;
}

.form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.novitson-warranty-form label {
  font-family: "Atyp Display TRIAL", Sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #011016;
}

/* Remove the commented overflow: hidden and fix the input wrapper */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  background-color: #fff;
}

/* Fix the phone input specifically */
.phone-wrapper {
  position: relative;
  padding: 0;
}

.phone-wrapper .input-wrapper {
  overflow: visible;
}

/* Fix the country selector dropdown positioning */
/*.iti {*/
/*  width: 100%;*/
/*  position: relative;*/
/*}*/

/*.iti__flag-container {*/
/*  position: absolute;*/
/*  top: 0;*/
/*  bottom: 0;*/
/*  left: 0;*/
/*  right: auto;*/
/*}*/

/*.iti__country-list {*/
/*  position: absolute;*/
/*  top: 100%;*/
/*  left: 0;*/
/*  z-index: 9999;*/
/*  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);*/
/*  border: 1px solid #ccc;*/
/*  background-color: white;*/
  /* width: 300px; */
/*}*/

/* Ensure inputs with icons have proper padding */
.input-wrapper input {
  padding-left: 40px;
}

/* Update icon styles to ensure they're visible */
.input-icon {
  width: 24px;
  height: 24px;
  margin-left: 10px;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  flex-shrink: 0;
}

.user-icon {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNiAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTMuOTMzMTggMTEuNjExMkMyLjg3MjEgMTIuMjQzIDAuMDkwMDIzNCAxMy41MzMxIDEuNzg0NSAxNS4xNDc0QzIuNjEyMjMgMTUuOTM2IDMuNTM0MTIgMTYuNSA0LjY5MzE1IDE2LjVIMTEuMzA2OEMxMi40NjU5IDE2LjUgMTMuMzg3OCAxNS45MzYgMTQuMjE1NSAxNS4xNDc0QzE1LjkxIDEzLjUzMzEgMTMuMTI3OSAxMi4yNDMgMTIuMDY2OCAxMS42MTEyQzkuNTc4NjEgMTAuMTI5NiA2LjQyMTM5IDEwLjEyOTYgMy45MzMxOCAxMS42MTEyWiIgc3Ryb2tlPSIjOUU5RTlFIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMS4zNzUgNC44NzVDMTEuMzc1IDYuNzM4OTYgOS44NjM5NiA4LjI1IDggOC4yNUM2LjEzNjA0IDguMjUgNC42MjUgNi43Mzg5NiA0LjYyNSA0Ljg3NUM0LjYyNSAzLjAxMTA0IDYuMTM2MDQgMS41IDggMS41QzkuODYzOTYgMS41IDExLjM3NSAzLjAxMTA0IDExLjM3NSA0Ljg3NVoiIHN0cm9rZT0iIzlFOUU5RSIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPC9zdmc+Cg==");
}

.email-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M17 20.5H7C4 20.5 2 19 2 15.5V8.5C2 5 4 3.5 7 3.5H17C20 3.5 22 5 22 8.5V15.5C22 19 20 20.5 17 20.5Z' stroke='%239E9E9E' stroke-width='1.5' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M17 9L13.87 11.5C12.84 12.32 11.15 12.32 10.12 11.5L7 9' stroke='%239E9E9E' stroke-width='1.5' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.novitson-warranty-form input,
.novitson-warranty-form select,
.novitson-warranty-form textarea {
  padding: 15px;
  /* padding-left: 40px; */
  border: none;
  background-color: transparent;
  color: #011016;
  font-size: 14px;
  font-weight: 400;
  color: #9e9e9e;
  width: 100%;
  outline: none;
  font-family: "Atyp Display TRIAL", Sans-serif;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  padding-left: 15px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239E9E9E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  cursor: pointer;
}

.novitson-warranty-form input::placeholder,
.novitson-warranty-form select::placeholder,
.novitson-warranty-form textarea::placeholder {
  color: #9e9e9e;
}

/* Add or update this CSS rule for the textarea */
.novitson-warranty-form textarea {
  min-height: 120px;
  resize: vertical;
  padding: 15px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: #011016;

  font-family: Atyp Display TRIAL;
  font-weight: 400;
  font-size: 14px;
  /* leading-trim: Cap height; */
  line-height: 24px;
  letter-spacing: 0%;
  color: #9e9e9e;
}

/* Date picker customization */
.date-wrapper {
  position: relative;
}

.date-wrapper:after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6.66667 1.66667V4.16667M13.3333 1.66667V4.16667M2.91667 7.575H17.0833M3.33333 3.33333H16.6667C17.1269 3.33333 17.5 3.70643 17.5 4.16667V16.6667C17.5 17.1269 17.1269 17.5 16.6667 17.5H3.33333C2.8731 17.5 2.5 17.1269 2.5 16.6667V4.16667C2.5 3.70643 2.8731 3.33333 3.33333 3.33333Z' stroke='%239E9E9E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}

/* IntlTelInput customization */
.phone-wrapper {
  padding: 0;
}

.phone-wrapper .iti {
  width: 100%;
}

.phone-wrapper input {
  /* padding-left: 52px !important; */
}

/* File upload styling */
/* Improved file upload styling */
.file-wrapper {
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  /* padding: 15px; */
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  /* background-color: #f9f9f9; */
}

.file-wrapper:hover {
  border-color: #ee8c2d;
  background-color: #fff8f0;
}

.file-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9e9e9e;
  font-size: 14px;
}

.file-placeholder:before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE1Ljc1IDguMjVWNy41QzE1Ljc1IDQuNjcxNTcgMTUuNzUgMy4yNTczNiAxNC44MTk2IDIuMzc4NjhDMTMuODg5MyAxLjUgMTIuMzkxOSAxLjUgOS4zOTcwNiAxLjVMOC42MDI5NCAxLjVDNS42MDgxNCAxLjUgNC4xMTA3MyAxLjUgMy4xODAzNyAyLjM3ODY4QzIuMjUgMy4yNTczNiAyLjI1IDQuNjcxNTcgMi4yNSA3LjVMMi4yNSAxMC41QzIuMjUgMTMuMzI4NCAyLjI1IDE0Ljc0MjYgMy4xODAzNyAxNS42MjEzQzQuMTEwNzMgMTYuNSA1LjYwODE0IDE2LjUgOC42MDI5NCAxNi41SDkiIHN0cm9rZT0iIzAxMTAxNiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8cGF0aCBkPSJNNiA1LjI1SDEyIiBzdHJva2U9IiMwMTEwMTYiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KPHBhdGggZD0iTTYgOUg5Ljc1IiBzdHJva2U9IiMwMTEwMTYiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KPHBhdGggZD0iTTE1Ljc1IDE1LjQ4NTNMMTUuNzUgMTIuNzVDMTUuNzUgMTEuNjc3OSAxNC43NDI2IDEwLjUgMTMuNSAxMC41QzEyLjI1NzQgMTAuNSAxMS4yNSAxMS42Nzc5IDExLjI1IDEyLjc1TDExLjI1IDE1LjM3NUMxMS4yNSAxNS45NTk4IDExLjc5OTUgMTYuNSAxMi40NzczIDE2LjVDMTMuMTU1MSAxNi41IDEzLjcwNDUgMTUuOTU5OCAxMy43MDQ1IDE1LjM3NUwxMy43MDQ1IDEzLjMyMzUiIHN0cm9rZT0iIzAxMTAxNiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8L3N2Zz4K");
  background-repeat: no-repeat;
  background-position: center;
}

.file-list {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.file-item {
  display: flex;
  align-items: center;
  background-color: #f0f0f0;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.file-name {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.remove-file {
  margin-left: 10px;
  color: #e34f2e;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #fff;
}

.remove-file:hover {
  background-color: #ffeeee;
}

/* Submit button styling */
.submit-row {
  margin-top: 20px;
  /* display: flex; */
  /* justify-content: center; */
}

.submit-button {
  font-family: Atyp Display TRIAL;
  font-weight: 500;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0%;

  background: linear-gradient(180deg, #ee8c2d 0%, #e34f2e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  padding: 14.5px 69px;

  border: none;
  border-radius: 36px;
  border: 1px solid #e34f2e;
  /* border-image-source: linear-gradient(180deg, #ee8c2d 0%, #e34f2e 100%);
  border-image-slice: 1; */
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Form validation styling */
.novitson-warranty-form input.error,
.novitson-warranty-form select.error,
.novitson-warranty-form textarea.error {
  border-color: #e34f2e;
}

.error-message {
  color: #e34f2e;
  font-size: 12px;
  margin-top: 4px;
}

/* Form success message */
.form-success-message {
  font-family: "Atyp Display TRIAL", Sans-serif;
  text-align: center;
  padding: 20px;
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-top: 20px;
  display: none;

  p {
    color: #9e9e9e;
  }
}

.form-success-message h3 {
  color: #4caf50;
  margin-bottom: 10px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 15px;

    &.submit-row {
      flex-direction: row;
    }
  }

  .captcha-wrapper {
    flex-direction: column;
  }

  .captcha-image {
    max-width: 100%;
  }

  .submit-button {
    width: auto;
    font-family: Atyp Display TRIAL;
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    padding: 14px 47px;
  }
}

/* Loading indicator */
.form-loading {
  position: relative;
}

.form-loading:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.form-loading:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ee8c2d;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 11;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Simplified fix for intl-tel-input dropdown */
.iti {
  width: 100%;
}

.iti__flag-container {
  /*z-index: 99999;*/
}

.iti-mobile .iti--container {
	left: 16px !important;
}

.iti {
	width: calc(100% - 32px) !important;
}

.iti__country-list {
  z-index: 99999;
  background-color: white;

  &:hover {
    background-color: white !important;
  }
}

.iti--separate-dial-code .iti__selected-flag {
  background-color: #fff;
  border-right: 1px solid #dcdcdc;
}

/* Ensure form elements don't overlap the dropdown */
.form-field {
  position: relative;
  /* z-index: 1; */
}

.phone-wrapper {
  position: relative;
  padding: 0;
}
