:root {
  --wh-primary: #ef7d00;
  --wh-primary-hover: #da7000;
  --wh-primary-soft: #fff5e9;
  --wh-bg: #f7f8f9;
  --wh-surface: #ffffff;
  --wh-surface-soft: #fbfbfc;
  --wh-border: #e6e8eb;
  --wh-border-strong: #d7dbe0;
  --wh-text: #30343a;
  --wh-text-soft: #6e747c;
  --wh-success: #27865b;
  --wh-success-soft: #eef9f3;
  --wh-danger: #c84848;
  --wh-danger-soft: #fff1f1;
  --wh-radius-lg: 24px;
  --wh-radius-md: 16px;
  --wh-radius-sm: 12px;
  --wh-shadow: 0 14px 40px rgba(35, 40, 47, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--wh-bg);
  color: var(--wh-text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.warranty-container {
  max-width: 1240px;
}

/* Header */
.warranty-header {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(230, 232, 235, 0.9);
}

.warranty-header__inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.warranty-logo {
  display: inline-flex;
  align-items: center;
}

.warranty-logo img {
  display: block;
  width: 168px;
  max-width: 100%;
  height: auto;
}

.warranty-header__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wh-text-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.warranty-header__link:hover {
  color: var(--wh-primary);
}

/* Hero */
.warranty-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 58px;
  background:
    radial-gradient(
      circle at 82% 25%,
      rgba(239, 125, 0, 0.12),
      transparent 28%
    ),
    linear-gradient(135deg, #ffffff 0%, #fffaf5 58%, #f5f7f8 100%);
  border-bottom: 1px solid var(--wh-border);
}

.warranty-hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  top: -110px;
  border: 48px solid rgba(239, 125, 0, 0.05);
  border-radius: 50%;
}

.warranty-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.warranty-eyebrow,
.warranty-section-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--wh-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.warranty-hero h1 {
  margin: 0 0 10px;
  color: var(--wh-text);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 750;
}

.warranty-hero p {
  max-width: 620px;
  margin: 0;
  color: var(--wh-text-soft);
  font-size: 17px;
}

.warranty-hero__badge {
  min-width: 270px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--wh-radius-md);
  box-shadow: 0 10px 30px rgba(51, 54, 58, 0.06);
  backdrop-filter: blur(8px);
}

.warranty-hero__badge > span {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wh-primary-soft);
  color: var(--wh-primary);
  font-size: 20px;
  font-weight: 800;
}

.warranty-hero__badge strong,
.warranty-hero__badge small {
  display: block;
}

.warranty-hero__badge strong {
  font-size: 14px;
}

.warranty-hero__badge small {
  margin-top: 2px;
  color: var(--wh-text-soft);
  font-size: 12px;
}

/* Main */
.warranty-main {
  padding: 48px 0 70px;
}

.warranty-info-card,
.warranty-form {
  background: var(--wh-surface);
  border: 1px solid var(--wh-border);
  border-radius: var(--wh-radius-lg);
  box-shadow: var(--wh-shadow);
}

.warranty-info-card {
  position: sticky;
  top: 22px;
  padding: 30px;
}

.warranty-info-card h2,
.warranty-form__heading h2 {
  margin: 0;
  color: var(--wh-text);
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.warranty-info-card > p {
  margin: 18px 0 0;
  color: var(--wh-text-soft);
}

.warranty-notice {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  padding: 18px;
  background: var(--wh-primary-soft);
  border: 1px solid #f6dfc7;
  border-radius: var(--wh-radius-md);
}

.warranty-notice__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--wh-primary);
  font-weight: 800;
}

.warranty-notice h3 {
  margin: 2px 0 6px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.warranty-notice p {
  margin: 0;
  color: #65615d;
  font-size: 13px;
  line-height: 1.6;
}

.warranty-download {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 20px;
  padding: 15px 16px;
  color: var(--wh-text);
  text-decoration: none;
  background: var(--wh-surface-soft);
  border: 1px solid var(--wh-border);
  border-radius: var(--wh-radius-sm);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.warranty-download:hover {
  color: var(--wh-text);
  background: #fff;
  border-color: #f0c797;
  transform: translateY(-1px);
}

.warranty-download__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--wh-primary-soft);
  color: var(--wh-primary);
  font-size: 18px;
  font-weight: 800;
}

.warranty-download strong,
.warranty-download small {
  display: block;
}

.warranty-download strong {
  font-size: 13px;
}

.warranty-download small {
  margin-top: 2px;
  color: var(--wh-text-soft);
  font-size: 11px;
}

/* Alerts */
.warranty-alert {
  margin-bottom: 24px;
  padding: 15px 18px;
  border-radius: var(--wh-radius-sm);
  font-weight: 600;
}

.warranty-alert--success {
  color: var(--wh-success);
  background: var(--wh-success-soft);
  border: 1px solid #cfeadd;
}

.warranty-alert--error {
  color: var(--wh-danger);
  background: var(--wh-danger-soft);
  border: 1px solid #f0cccc;
}

/* Form */
.warranty-form {
  overflow: hidden;
}

.warranty-form__heading {
  padding: 30px 32px 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
  border-bottom: 1px solid var(--wh-border);
}

.warranty-form__heading p {
  margin: 8px 0 0;
  color: var(--wh-text-soft);
  font-size: 13px;
}

.warranty-form__heading p span,
.form-label span {
  color: var(--wh-primary);
}

.warranty-form-section {
  padding: 30px 32px;
  border-bottom: 1px solid var(--wh-border);
}

.warranty-form-section:last-child {
  border-bottom: 0;
}

.warranty-form-section__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.warranty-form-section__number {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--wh-primary);
  background: var(--wh-primary-soft);
  font-size: 12px;
  font-weight: 800;
}

.warranty-form-section__header h3 {
  margin: 0;
  color: var(--wh-text);
  font-size: 18px;
  line-height: 1.3;
}

.warranty-form-section__header p {
  margin: 4px 0 0;
  color: var(--wh-text-soft);
  font-size: 13px;
}

.form-label {
  margin-bottom: 7px;
  color: #50555b;
  font-size: 12px;
  font-weight: 700;
}

.form-control,
.form-select {
  min-height: 50px;
  padding: 11px 14px;
  color: var(--wh-text);
  background-color: #fff;
  border: 1px solid var(--wh-border-strong);
  border-radius: 11px;
  box-shadow: none;
  font-size: 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.form-control::placeholder {
  color: #a2a7ad;
}

.form-control:hover,
.form-select:hover {
  border-color: #c6cbd1;
}

.form-control:focus,
.form-select:focus {
  color: var(--wh-text);
  background-color: #fff;
  border-color: rgba(239, 125, 0, 0.72);
  box-shadow: 0 0 0 4px rgba(239, 125, 0, 0.1);
}

.serial-help {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding: 16px;
  background: #f9fafb;
  border: 1px solid var(--wh-border);
  border-radius: var(--wh-radius-md);
}

.serial-help__image {
  width: 118px;
  flex: 0 0 118px;
  padding: 7px;
  background: #fff;
  border: 1px solid var(--wh-border);
  border-radius: 10px;
}

.serial-help__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.serial-help__content strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}

.serial-help__content p {
  margin: 0;
  color: var(--wh-text-soft);
  font-size: 12px;
  line-height: 1.55;
}

/* Preferences */
.warranty-preferences {
  background: #fdfdfd;
}

.warranty-check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 0;
  cursor: pointer;
}

.warranty-check + .warranty-check {
  border-top: 1px solid var(--wh-border);
}

.warranty-check input,
.warranty-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.warranty-check__box {
  position: relative;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  margin-top: 1px;
  background: #fff;
  border: 1px solid var(--wh-border-strong);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.warranty-check input:checked + .warranty-check__box {
  background: var(--wh-primary);
  border-color: var(--wh-primary);
}

.warranty-check input:checked + .warranty-check__box::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.warranty-check__text {
  color: var(--wh-text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.warranty-preferences__channels {
  margin: 8px 0 14px;
  padding: 16px;
  background: #f8f9fa;
  border: 1px solid var(--wh-border);
  border-radius: var(--wh-radius-sm);
}

.warranty-preferences__channels > p {
  margin: 0 0 12px;
  color: var(--wh-text-soft);
  font-size: 12px;
  font-weight: 600;
}

.warranty-chip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.warranty-chip {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.warranty-chip span {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 8px;
  color: var(--wh-text-soft);
  background: #fff;
  border: 1px solid var(--wh-border-strong);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.warranty-chip input:checked + span {
  color: #9d5406;
  background: var(--wh-primary-soft);
  border-color: #f2c48e;
}

/* Submit */
.warranty-form-section--submit {
  background: #fafbfb;
}

.warranty-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.warranty-captcha-placeholder {
  min-width: 0;
}

.warranty-captcha-placeholder span,
.warranty-captcha-placeholder small {
  display: block;
}

.warranty-captcha-placeholder span {
  color: var(--wh-text);
  font-size: 13px;
  font-weight: 700;
}

.warranty-captcha-placeholder small {
  margin-top: 3px;
  color: var(--wh-text-soft);
  font-size: 11px;
}

.warranty-submit {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 22px;
  color: #fff;
  background: var(--wh-primary);
  border: 0;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.warranty-submit:not(:disabled):hover {
  background: var(--wh-primary-hover);
  transform: translateY(-1px);
}

.warranty-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Footer */
.warranty-footer {
  padding: 24px 0;
  color: var(--wh-text-soft);
  background: #fff;
  border-top: 1px solid var(--wh-border);
}

.warranty-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.warranty-footer p {
  margin: 0;
  font-size: 12px;
}

.warranty-footer a {
  color: var(--wh-text-soft);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.warranty-footer a:hover {
  color: var(--wh-primary);
}

/* Flatpickr */
.flatpickr-mobile:before {
  content: attr(placeholder);
  color: #a2a7ad;
}

/* Responsive */
@media (max-width: 991.98px) {
  .warranty-hero {
    padding: 42px 0;
  }

  .warranty-info-card {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .warranty-header__inner {
    min-height: 70px;
  }

  .warranty-logo img {
    width: 142px;
  }

  .warranty-header__link {
    font-size: 12px;
  }

  .warranty-hero {
    padding: 36px 0 38px;
  }

  .warranty-hero__content {
    display: block;
  }

  .warranty-hero__badge {
    min-width: 0;
    width: 100%;
    margin-top: 24px;
  }

  .warranty-main {
    padding: 28px 0 48px;
  }

  .warranty-info-card,
  .warranty-form {
    border-radius: 18px;
  }

  .warranty-info-card,
  .warranty-form__heading,
  .warranty-form-section {
    padding: 22px;
  }

  .serial-help {
    align-items: flex-start;
  }

  .serial-help__image {
    width: 96px;
    flex-basis: 96px;
  }

  .warranty-chip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .warranty-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .warranty-submit {
    width: 100%;
  }

  .warranty-footer .container {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 479.98px) {
  .warranty-header__link {
    display: none;
  }

  .warranty-hero h1 {
    font-size: 34px;
  }

  .warranty-info-card,
  .warranty-form__heading,
  .warranty-form-section {
    padding: 18px;
  }

  .warranty-form-section__header {
    gap: 11px;
  }

  .serial-help {
    display: block;
  }

  .serial-help__image {
    width: 100%;
    max-width: 170px;
    margin-bottom: 14px;
  }
}

.warranty-alert {
  margin-bottom: 24px;
  padding: 16px 18px;

  border-radius: 12px;

  font-size: 14px;
  line-height: 1.6;
}

.warranty-alert--success {
  background: #eef9f1;
  border: 1px solid #ccebd3;
  color: #28743a;
}

.warranty-alert--error {
  background: #fff3f1;
  border: 1px solid #f2d3ce;
  color: #b24335;
}

.warranty-alert ul {
  margin: 8px 0 0;
  padding-left: 20px;
}


/* =========================================================
   FIELD VALIDATION
   ========================================================= */

.warranty-field-message {
    min-height: 20px;
    margin-top: 6px;

    font-size: 13px;
    line-height: 1.4;
}

.warranty-field-message.is-valid {
    color: #438653;
}

.warranty-field-message.is-invalid {
    color: #c45749;
}


/* =========================================================
   CAPTCHA
   ========================================================= */

.warranty-captcha {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 10px;
}

.warranty-captcha__image {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 54px;
    padding: 0 10px;

    background: #f7f7f7;

    border: 1px solid #dedede;
    border-radius: 10px;
}

.warranty-captcha__image img {
    display: block;

    width: 160px;
    max-width: 100%;
    height: 52px;

    object-fit: contain;
}

.warranty-captcha__refresh {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #dedede;
    border-radius: 10px;

    background: #ffffff;
    color: #e87524;

    font-size: 24px;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.warranty-captcha__refresh:hover {
    border-color: #e87524;
    background: #fff8f3;
}


/* =========================================================
   SUBMIT DISABLED
   ========================================================= */

.warranty-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}