.register-warranty-full {
  padding: 120px 0 60px;
}

/* ----- CORE CONTAINER ----- */


.register-warranty-full .register-warranty-container {
  border: none;
  background: #f9f9f9;
  padding: 50px;
  box-shadow: none;
  color: inherit;
  max-width: 1080px;
  width: 94%;
}

/* ----- HEADER ----- */
.register-warranty-full .register-warranty-container .register-warranty-header {
  text-align: center;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.register-warranty-full .register-warranty-container .register-warranty-header h1 {
  color: #111827;
  font-size: 36px;
  font-weight: 700;
  margin: 0;
  text-transform: capitalize;
}

.register-warranty-full .register-warranty-container .register-warranty-header p {
  color: #6B7280;
  font-size: 16px;
  margin: 0;
  max-width: 600px;
}

.register-warranty-full .register-warranty-header .sub-warranty-header .subtitle {
  font-size: 14px;
  text-transform: uppercase;
  color: #E21E31;
  font-weight: bold;
}

/* ----- RESPONSIVE LAYOUT SYSTEM ----- */
.register-warranty-full .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  width: 100%;
}

.register-warranty-full .form-group.full-row {
  grid-column: 1 / -1;
}

/* ----- FORM SECTIONS ----- */
.register-warranty-full .form-section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid #E5E7EB;
  width: 100%;
}

.register-warranty-full .form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.register-warranty-full .form-section h4 {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin-top: 0;
  margin-bottom: 24px;
}

.register-warranty-full .form-section>label {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 24px;
}

/* ----- FORM CONTROLS ----- */
.register-warranty-full .form-group {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
}

.register-warranty-full .form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.register-warranty-full .form-group label .req {
  color: #E21E31;
}

.register-warranty-full .form-group input:not([type="checkbox"]):not([type="file"]):not([type="radio"]),
.register-warranty-full .form-group select {
  width: 100%;
  height: 52px;
  border-radius: 8px;
  border: 1px solid #D1D5DB;
  background: #ffffff;
  padding: 12px 16px;
  font-size: 15px;
  color: #111827;
  transition: all 0.2s ease-in-out;
  box-shadow: none;
  margin: 0;
  font-family: inherit;
}

.register-warranty-full .form-group input::placeholder {
  color: #9CA3AF;
  font-weight: 400;
}

.register-warranty-full .form-group input:focus,
.register-warranty-full .form-group select:focus {
  border-color: #E21E31;
  box-shadow: 0 0 0 3px rgba(226, 30, 49, 0.15);
  outline: none;
}

.register-warranty-full .form-group input.error,
.register-warranty-full .form-group select.error,
.register-warranty-full .form-group .input-wrapper:has(label.error[style*="display: block"]) input {
  border-color: #E21E31 !important;
  background-color: #ffffff !important;
}

.register-warranty-full .form-group select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-repeat: no-repeat;
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

.register-warranty-full .form-group input:disabled,
.register-warranty-full .form-group select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #F3F4F6;
}

/* ----- ADD-ONS (SCANNER BUTTONS) ----- */
.register-warranty-full #outdoorSNDiv {
  position: relative;
  display: block;
}

.register-warranty-full .input-wrapper {
  position: relative;
  width: 100%;
}

.register-warranty-full .locked-bg {
  background-color: #ffffff !important;
}

.register-warranty-full .visually-hidden {
  display: none !important;
  width: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.register-warranty-full .form-group input#outdoorSN {
  padding-right: 48px;
}

/* ----- SCAN ICON OVERLAY ----- */
.register-warranty-full .scan-icon {
  position: absolute;
  right: 16px;
  top: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: opacity 0.2s;
}

.register-warranty-full .scan-icon:hover {
  opacity: 0.7;
}


.register-warranty-full .scan-link {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6B7280;
  cursor: pointer;
}

/* ----- DATE PICKER OVERLAY ----- */
.register-warranty-full .date-icon {
  position: absolute;
  right: 16px;
  top: 0;
  height: 52px;
  pointer-events: none;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.register-warranty-full .input-group.date input {
  cursor: pointer;
}

/* ----- DROPDOWN SUGGESTIONS ----- */
.register-warranty-full .dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 20;
  max-height: 220px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
}

.register-warranty-full .dropdown-list li {
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid #F3F4F6;
  font-size: 14px;
}

.register-warranty-full .dropdown-list li:hover {
  background: #F9FAFB;
}

.register-warranty-full .dropdown-list li.selected {
  background: #E21E31;
  color: #FFF;
}

/* ----- DROPDOWN TOOLTIPS ----- */
.register-warranty-full .tooltip-xx {
  position: relative;
  display: inline-flex;
  cursor: help;
  align-items: center;
}

.register-warranty-full .tooltip-xx .icon {
  width: 16px;
  height: 16px;
  filter: brightness(0);
}

.register-warranty-full .tooltipText-x {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #FFF;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  white-space: normal;
  width: max-content;
  max-width: 280px;
  text-align: left;
  z-index: 100;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  margin-top: 8px;
}

.register-warranty-full .tooltipText-x::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #111827 transparent;
}

.register-warranty-full .tooltip-xx:hover .tooltipText-x {
  display: block;
}


/* ----- FILE UPLOAD STYLING ----- */
.register-warranty-full .upload-btn-wrapper {
  position: relative;
  width: 100%;
}

.register-warranty-full .upload-dropzone {
  border: 2px dashed #E5E7EB;
  border-radius: 4px;
  padding: 40px;
  text-align: center;
  background: #F9FAFB;
  color: #9CA3AF;
  width: 100%;
  position: relative;
  margin-bottom: 18px;
  transition: all 0.2s;
}

/* Error State for the dropzone container */
.register-warranty-full .upload-btn-wrapper:has(input.error) .upload-dropzone,
.register-warranty-full .upload-btn-wrapper:has(#upload_files-error:not([style*="display: none"])) .upload-dropzone {
  border-color: #E21E31;
  background-color: #ffffff;
}

.register-warranty-full .upload-instruction {
  font-size: 16px;
}

.register-warranty-full .upload-action {
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  color: #E21E31;
}

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

.register-warranty-full .upload-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.register-warranty-full .loader-icon {
  font-size: 24px;
}

.register-warranty-full .upload-meta .pre-info {
  color: #6B7280;
  font-size: 13px;
}

.register-warranty-full .upload-meta .inline-meta {
  position: relative;
  flex-shrink: 0;
}

.register-warranty-full .upload-meta .inline-icon {
  margin-right: 4px;
}

.register-warranty-full .upload-support-meta {
  font-size: 13px;
  color: #6B7280;
}

.gallery.upload-doc {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.upload-doc span.pip {
  position: relative;
  width: 120px;
  height: 90px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFF;
}

.upload-doc span.pip img.imageThumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.upload-doc span.pip span.remove {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #FFFFFF;
  color: #E21E31;
  border: 1px solid #E5E7EB;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  line-height: 1;
  z-index: 10;
  transition: all 0.2s;
}

.upload-doc span.pip span.remove:hover {
  background: #FEF2F2;
  color: #C71426;
  transform: scale(1.05);
}

.upload-doc span.pip span.name {
  display: none;
}

/* ----- ERROR STATES ----- */
.register-warranty-full label.error,
.register-warranty-full label.battery-error {
  color: #E21E31 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  margin-top: 6px;
  display: block;
}

.register-warranty-full input.error,
.register-warranty-full select.error {
  border-color: #E21E31 !important;
  background: #FEF2F2 !important;
}

.register-warranty-full #errorMessage {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #B91C1C;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-weight: 500;
  text-align: center;
}

/* ----- SUBMISSION FOOTER ----- */
.register-warranty-full .form-submission {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 0;
  border-bottom: 0;
}

.register-warranty-full .marketing-disclaimer {
  flex: 1;
}

.register-warranty-full .marketing-disclaimer p {
  color: #6B7280;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.register-warranty-full .marketing-disclaimer a {
  color: #E21E31;
  text-decoration: underline;
  font-weight: 500;
}

.register-warranty-full .marketing-disclaimer label {
  display: block;
  font-size: 13px;
  cursor: pointer;
  color: #374151;
  font-weight: 500;
  line-height: 1.6;
}

.register-warranty-full .marketing-disclaimer input[type="checkbox"] {
  accent-color: #E21E31;
  width: 20px;
  height: 20px;
  cursor: pointer;
  float: left;
  margin-right: 12px;
  margin-top: 1px;
}

.register-warranty-full .sub-form-btn {
  background: #E21E31;
  color: #FFF;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 20px;
  height: 48px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.register-warranty-full .sub-form-btn:hover {
  background: #C71426;
}

/* ----- CUSTOM MODAL ENGINE (NON-BOOTSTRAP COMPATIBLE) ----- */
.modal-open {
  overflow: hidden;
}

body .custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1050;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
  background-color: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(4px);
}

body .custom-modal.show,
body .custom-modal.in {
  display: block;
}

body .modal-backdrop {
  display: none !important;
  /* disabled since integrated directly into .modal */
}

body .custom-modal-dialog {
  max-width: 500px !important;
  width: 94%;
  display: flex !important;
  align-items: center !important;
  min-height: calc(100vh - 60px) !important;
  margin: 30px auto !important;
}

body .custom-modal-content {
  border-radius: 0;
  border: none;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  background: #0A0A0A;
  width: 100% !important;
  height: auto !important;
  margin: auto !important;
  flex: 0 0 auto !important;
  position: relative;
}

/* ----- CUSTOM MODAL INTERNALS ----- */
body .custom-modal-header {
  border-bottom: 1px solid #333333;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: transparent;
  gap: 16px;
}

body .custom-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.5;
  margin-top: 8px;
}

body .custom-close {
  background: #FFFFFF !important;
  border: none !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  color: #111827 !important;
  transition: all 0.2s ease !important;
  border-radius: 50% !important;
  padding: 0 !important;
  outline: none !important;
  position: absolute !important;
  top: -10px !important;
  right: -10px !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  z-index: 1060 !important;
}

body .custom-close:hover {
  background: #F9FAFB !important;
  transform: scale(1.05) !important;
}

.custom-close span {
  display: flex;
}

body .custom-close svg {
  width: 24px;
  height: 24px;
}

body .custom-modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
  font-size: 16px;
  color: #D1D5DB;
  line-height: 1.6;
}

body .custom-modal-body p {
  margin: 0 0 16px 0;
}

body .custom-modal-body img {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 12px;
  border: 1px solid #333333;
  display: block;
}

body .custom-modal-body.p-0 {
  padding: 0 !important;
}

body .custom-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #333333;
  display: flex;
  justify-content: flex-end;
  background: transparent;
}

body .secondary-btn {
  background: #333333;
  color: #FFFFFF;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  transition: all 0.2s;
  cursor: pointer;
}

body .secondary-btn:hover {
  background: #4B5563;
}

/* ----- BARCODE SCANNER OVERLAY (PREMIUM & EDGE-TO-EDGE) ----- */
.scanner-video-wrapper {
  position: relative;
  width: 94%;
  aspect-ratio: 6 / 3;
  background-color: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dde1e4;
  border-radius: 8px;
  margin: 10px auto;
}

.scanner-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

.scanner-laser {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #E21E31;
  box-shadow: 0 0 10px 2px rgba(226, 30, 49, 0.7);
  animation: laserScan 2.5s infinite linear;
}

@keyframes laserScan {
  0% {
    top: 10%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    top: 90%;
    opacity: 0;
  }
}

.scanner-error {
  color: #E21E31;
  text-align: center;
  font-size: 14px;
  padding: 10px;
  margin: 0;
  background: #FEF2F2;
}

.scanner-error:empty {
  display: none;
}

.scanner-source-panel {
  padding: 16px 24px;
  background: #FFF;
  border-top: 1px solid #E5E7EB;
}

.hidden-panel {
  display: none;
}

.scanner-source-select {
  width: 100%;
  max-width: 400px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #D1D5DB;
}

body .modal-header {
  border-bottom: 1px solid #E5E7EB;
  background: #FFFFFF;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body .modal-header .modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

body .modal-header .close {
  background: #F3F4F6 !important;
  border: none !important;
  border-radius: 50px !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  color: #6B7280 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  float: none !important;
  opacity: 1 !important;
  text-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: normal !important;
}

body .modal-header .close span {
  display: flex;
  line-height: 1;
}

body .modal-header .close:hover {
  background: #E5E7EB !important;
  color: #111827 !important;
}

body .modal-body {
  padding: 32px;
  font-size: 16px;
  color: #4B5563;
  line-height: 1.6;
}

body .modal-body p {
  margin-bottom: 16px;
}

body .modal-body img {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 16px;
  border: 1px solid #E5E7EB;
}

body .modal-footer {
  border-top: 1px solid #E5E7EB;
  padding: 20px 32px;
  background: #F9FAFB;
}

body .modal-footer .btn-secondary {
  background: #FFFFFF !important;
  border: 1px solid #D1D5DB !important;
  color: #374151 !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  transition: all 0.2s !important;
  line-height: normal !important;
  height: auto !important;
  font-size: 15px !important;
}

body .modal-footer .btn-secondary:hover {
  background: #F9FAFB !important;
  border-color: #9CA3AF !important;
}

/* ----- PREMIUM DATEPICKER STYLING ----- */
body .datepicker.dropdown-menu {
  padding: 12px !important;
  border-radius: 12px !important;
  border: 1px solid #E5E7EB !important;
  background-color: #FFFFFF !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
  font-family: inherit !important;
}

body .datepicker table {
  margin: 0 !important;
  border-collapse: collapse !important;
  border: none !important;
}

body .datepicker table th,
body .datepicker table td {
  padding: 8px 10px !important;
  text-align: center !important;
  border-radius: 6px !important;
  border: none !important;
}

body .datepicker table th {
  font-weight: 600 !important;
  color: #374151 !important;
  font-size: 14px !important;
}

body .datepicker table td {
  color: #4B5563 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  background-color: transparent !important;
}

body .datepicker table td:hover,
body .datepicker table td.focused {
  background-color: #F3F4F6 !important;
  color: #111827 !important;
}

body .datepicker table td.active,
body .datepicker table td.active:hover,
body .datepicker table td.active.highlighted {
  background-image: none !important;
  background-color: #E21E31 !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 6px -1px rgba(226, 30, 49, 0.3) !important;
  text-shadow: none !important;
  border-color: #E21E31 !important;
}

body .datepicker table td.today,
body .datepicker table td.today:hover,
body .datepicker table td.today.disabled {
  background-image: none !important;
  background-color: #FEF2F2 !important;
  color: #E21E31 !important;
  font-weight: 700 !important;
}

body .datepicker .datepicker-switch,
body .datepicker .prev,
body .datepicker .next {
  cursor: pointer !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
  padding: 8px !important;
  color: #111827 !important;
  background: transparent !important;
}

body .datepicker .datepicker-switch:hover,
body .datepicker .prev:hover,
body .datepicker .next:hover {
  background: #F3F4F6 !important;
}

.loader-col {
  position: fixed;
  inset: 0;
  width: 100%;
  z-index: 9999;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader {
  width: 48px;
  height: 48px;
  border: 4px solid #F3F3F3;
  border-top: 4px solid #E21E31;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


/* 13 MAy */
.iti__country-container button:hover {
  background: transparent;
}

.iti__selected-country-primary {
  max-height: 48px;
}

.iti--inline-dropdown .iti__dropdown-content {
  padding: 12px;
}

input.iti__search-input {
  margin-bottom: 10px !important;
}

.datepicker table tr td.disabled,
.datepicker table tr td.disabled:hover {
  color: #999 !important;
  cursor: not-allowed !important;
  background: transparent !important;
}

.register-warranty-full label.error {
  position: absolute;
  bottom: -1.2rem;
  margin: 0;
  font-size: 12px !important;
  left: 0;
}

.modal.warrantyModal,
#thankMOdal {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.05);
  opacity: 0;
  visibility: hidden;
}

#thankMOdal.show,
.modal.warrantyModal.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.warrantyModal .modal-content,
#thankMOdal .modal-content {
  position: relative;
  padding: 40px 32px;
  border-radius: 0;
  outline: 0;
  background-color: #ffffff;
  background-clip: padding-box;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  border: none;
  margin: 0 auto;
}

.warrantyModal .modal-dialog,
#thankMOdal .modal-dialog {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.warrantyModal .modal-header,
#thankMOdal .modal-header {
  border: none;
  padding: 0;
}

.modal.warrantyModal button.close,
#thankMOdal button.close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f4f4f4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal.warrantyModal button.close:hover,
#thankMOdal button.close:hover {
  background: #e51b23;
  color: #ffffff;
  transform: rotate(90deg);
}

.modal.warrantyModal .modal-body,
#thankMOdal .modal-body {
  padding: 0;
  text-align: center;
}

body .warrantyModal .modal-body img,
body #thankMOdal .modal-body img {
  border: none;
  max-width: 72px;
  margin-bottom: 24px;
}

.warrantyModal .tick-img,
#thankMOdal .tick-img {
  text-align: center;
}

.warrantyModal .modal-content .thank-body,
#thankMOdal .modal-content .thank-body {
  text-align: center;
}

.warrantyModal .modal-content h4,
#thankMOdal .modal-content h4 {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  margin-block: 0 16px;
}

#modalErrorMessage {
  font-size: 18px;
  font-weight: 500;
  color: #000;
}

body .warrantyModal .modal-body p,
body #thankMOdal .modal-body p {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 24px;
}

.warrantyModal span#countdown,
#thankMOdal span#countdown {
  width: 48px;
  height: 48px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: #e51b23;
  border-radius: 50%;
  background: #fdf2f2;
  font-weight: 700;
  font-size: 18px;
  border: 2px solid #fbe5e6;
  margin-top: 8px;
}

body:has(#thankMOdal.show),
body:has(.warrantyModal.show) {
  overflow: hidden;
}

.register-warranty-full .sub-form-btn span.preloader {
  position: absolute;
  z-index: 9999;
  content: '';
  top: 14px;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.register-warranty-full button.theme-btn.sub-form-btn {
  position: relative;
  min-width: 168px;
}

.register-warranty-full .theme-btn.sub-form-btn:disabled {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.6;
}

#errorModal .modal-header {
  justify-content: end;
}

#errorModal .modal-body {
  padding: 30px 0 20px 0;
}

#errorModal .modal-content.error-modal-content {
  max-width: 400px;
}

#errorModal .modal-body .tick-img {
  margin-bottom: 10px;
}

#errorModal .modal-body .tick-img svg {
  max-width: 45px;
  max-height: 45px;
}

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

#modalErrorMessage {
  text-align: center;
  padding: 0 24px 16px;
}

.modal-error-text {
  font-size: 16px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 12px;
  line-height: 1.5;
}

.failed-serial-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.failed-serial-tag {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  text-transform: uppercase;
  word-break: break-all;
}

.serial-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
}

.serial-tags:has(.serial-tag) {
  margin-top: 8px;
}

.serial-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4CAF50 0%, #009688 100%);
  box-shadow: 0 2px 4px rgb(76 175 80 / 15%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.serial-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(128, 229, 27, 0.25);
  border-color: rgba(255, 255, 255, 0.2);
}

.serial-tag span {
  color: #ffffff;
  letter-spacing: 0.01em;
}

.remove-tag {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.remove-tag:hover {
  background: #ffffff;
  color: #e51b23;
  transform: scale(1.1);
}

.remove-tag:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

#errorModal .modal-header .close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  color: #6b7280;
  font-size: 20px;
  line-height: 1;
}

#errorModal .modal-header .close:hover {
  background: #e51b23;
  color: #ffffff;
  transform: rotate(90deg);
}

/* ----- BATTERY SERIAL NUMBERS ----- */
.register-warranty-full .battery-rows-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.register-warranty-full #batteryRows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.register-warranty-full .battery-confirmed-status {
  font-size: clamp(10px, 1vw, 13px);
  color: #4B5563;
  background: #F3F4F6;
  padding: 4px 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  border: 1px solid #E5E7EB;
}

.register-warranty-full .battery-confirmed-status span {
  font-weight: 700;
  color: #111827;
  margin: 0 4px;
}

.battery-top-wrapper {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.register-warranty-full .battery-top-wrapper label {
  margin: 0;
}

.register-warranty-full .battery-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 8px 16px 8px 12px;
  position: relative;
  min-height: 52px;
  transition: all 0.3s ease;
  margin-bottom: 8px;
}

/* .register-warranty-full .battery-row:focus-within {
  border-color: #E21E31;
  box-shadow: 0 0 0 3px rgba(226, 30, 49, 0.15);
} */

.register-warranty-full .battery-number {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #374151;
  font-size: 13px;
  background: #F3F4F6;
  border-radius: 6px;
  border: none;
}

.register-warranty-full .battery-input-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.register-warranty-full .battery-serial-input {
  width: 100%;
  height: 30px !important;
  border-radius: 4px !important;
  padding: 0 4px !important;
  border: 0 !important;
  padding: 0 !important;
  font-size: 14px;
  color: #374151;
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  letter-spacing: 0.5px;
  transition: all 0.2s ease-in-out;
  box-shadow: none !important;
}

.register-warranty-full .battery-serial-input:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none;
}

.register-warranty-full .battery-row.valid-row {
  border-color: #9df56d !important;
}

.register-warranty-full .battery-row.error-row,
.register-warranty-full .battery-row:has(.battery-serial-input.error) {
  border-color: #ff8e99 !important;
}

.register-warranty-full .battery-row.error-row {
  margin-bottom: -4px;
}

/* Position error label outside the row */
.register-warranty-full .battery-input-wrap label.error,
.register-warranty-full .battery-input-wrap label.battery-error {
  position: absolute;
  top: 100%;
  left: -40px;
  margin-top: 4px;
  color: #E21E31 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  display: block;
}

.register-warranty-full .battery-row:has(label.error:not([style*="display: none"])) {
  margin-bottom: 20px;
}

/* Action Buttons */
.register-warranty-full .battery-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
}

.register-warranty-full .battery-action-btn svg {
  width: 18px;
  height: 18px;
}

.register-warranty-full .battery-action-btn.scan-input svg path {
  stroke: #9CA3AF;
  transition: stroke 0.2s ease;
}

.register-warranty-full .battery-action-btn.scan-input:hover {
  background: #F3F4F6;
}

.register-warranty-full .battery-action-btn.scan-input:hover svg path {
  stroke: #374151;
}

.register-warranty-full .battery-action-btn.delete-battery svg path {
  stroke: #D1D5DB;
  transition: stroke 0.2s ease;
}

.register-warranty-full .battery-action-btn.delete-battery:hover {
  background: #FEF2F2;
}

.register-warranty-full .battery-action-btn.delete-battery:hover svg path {
  stroke: #E21E31;
}

.register-warranty-full .add-battery-btn {
  height: 44px;
  border: 1px solid #111827;
  border-radius: 6px;
  background: #F9FAFB;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #374151;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  align-self: flex-start;
  padding: 0 20px;
  margin-top: 4px;
  margin-bottom: 16px;
}

.register-warranty-full .add-battery-btn:hover {
  background: #E21E31;
  color: #FFFFFF;
  border: 1px solid #E21E31;
}

/* ----- TABLET & MOBILE RESPONSIVENESS ----- */
@media (max-width: 991px) {
  .register-warranty-full .form-submission {
    flex-direction: column;
    align-items: stretch;
  }

  .register-warranty-full .sub-form-btn {
    width: 100%;
    margin-top: 16px;
  }

  .register-warranty-full .register-warranty-container {
    padding: 40px 24px;
  }
}

@media screen and (max-width: 767px) {
  body .modal-body p {
    font-size: 14px;
  }

  .modal-content h4 {
    font-size: 20px;
  }

  body .modal-body img {
    max-width: 50px;
  }

  .register-warranty-full .form-group input:not([type="checkbox"]):not([type="file"]):not([type="radio"]),
  .register-warranty-full .form-group select {
    font-size: 13px;
  }

  .register-warranty-full .upload-instruction {
    font-size: 14px;
  }

  .register-warranty-full #errorMessage {
    font-size: 13px;
  }

  .register-warranty-full {
    padding: 0;
  }

  .register-warranty-full .form-section>label {
    font-size: 20px;
    margin-bottom: 18px;
  }

  .register-warranty-full .register-warranty-container {
    padding: 120px 20px 40px;
    border-radius: 0;
    width: 100%;
    max-width: 100%;
  }


  body .custom-modal-dialog {
    margin: 10px auto !important;
    min-height: calc(100vh - 20px) !important;
  }

  body .custom-modal-body {
    padding: 16px;
  }

  body .custom-modal-header,
  body .custom-modal-footer {
    padding: 16px;
  }

  .register-warranty-full .upload-meta {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 8px;
  }


  .register-warranty-full .register-warranty-container .register-warranty-header h1 {
    font-size: 28px;
  }

  .register-warranty-full .form-section h4 {
    font-size: 20px;
  }

  .register-warranty-full .form-grid {
    grid-template-columns: 1fr;
  }

  .mobile-hide {
    display: none !important;
  }

  .register-warranty-full .form-group input#outdoorSN {
    padding-right: 70px;
  }


}


@media screen and (max-width: 340px) {
  .battery-top-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    flex-direction: column-reverse;
  }
}