﻿.warranty-section {
  padding: 48px 0;
}

.warranty-title {
  margin: 0 0 24px;
  font-size: 36px;
  line-height: 1.2;
}

.warranty-form {
  max-width: 680px;
  padding: 24px;
  border: 1px solid #e6e0d6;
  background: #fff;
  display: grid;
  gap: 18px;
  margin: 0 auto;
}

.warranty-field {
  display: grid;
  gap: 8px;
}

.warranty-field label {
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.warranty-field input,
.warranty-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfc7bc;
  font-size: 16px;
  color: #222;
  background: #fff;
}

.date-picker-wrapper {
  position: relative;
}

.date-picker-wrapper .tg_basic_date {
  padding-right: 44px;
  cursor: pointer;
}

.date-picker-wrapper .tg_basic_date::-webkit-calendar-picker-indicator {
  opacity: 0;
  display: none;
}

.date-picker-wrapper .tg_basic_date::-webkit-inner-spin-button {
  display: none;
}

.date-picker-wrapper .calendar-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  cursor: pointer;
}

.warranty-field.is-hidden {
  display: none;
}

.warranty-field--readonly input {
  background: #f7f4ef;
  color: #5b5b5b;
}

.warranty-field input.is-invalid,
.warranty-field select.is-invalid {
  border-color: #c62828;
}

.warranty-field button {
  min-height: 46px;
  border: 1px solid #9f7a49;
  background: #9f7a49;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.warranty-field button:hover {
  background: #86653a;
  border-color: #86653a;
}

.warranty-error {
  min-height: 20px;
  font-size: 14px;
  color: #c62828;
}

.warranty-error:empty {
  min-height: 0;
}

.warranty-success-popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
  z-index: 20000;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
}

.warranty-success-popup.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.warranty-success-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.warranty-success,
.warranty-failed {
  max-width: 680px;
  margin: 0 auto 16px auto;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid transparent;
}

.warranty-success {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  margin: 0;
  padding: 22px 20px 18px;
  color: #9f7a49;
  background: #eaf7ee;
  border-color: #b7e1c0;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.16);
  transform: translateY(-28px) scale(0.96);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease;
  margin: 150px auto 0px auto;
  border-radius: 10px;
}
.warranty-success figure {
  display: flex;
  justify-content: center;
}
.warranty-success-popup.is-visible .warranty-success {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.warranty-success strong {
  display: block;
  line-height: 1.6;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
}
.warranty-note strong {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}
.warranty-success__close {
  margin: 20px auto 0 auto;
  display: table;
  padding: 9px 35px;
  border: 1px solid #9f7a49;
  background: #9f7a49;
  color: #fff;
  font-size: 20px;
  line-height: 28px;
  font-weight: 300;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
  font-family: "Jura", sans-serif;
}

.warranty-success__close:hover {
  background: #fff;
  color: #9f7a49;
}

.warranty-failed {
  color: #842029;
  background: #fdecef;
  border-color: #f2bec5;
}

.page-width {
  width: min(100% - 32px, 1200px);
  margin: 0 auto;
}

.breadcrumb {
  margin: 0;
  padding: 34px 0 18px;
  background: #f8f6f1;
}

.breadcrumb .row {
  display: block;
}

.breadcrumb_title {
  margin: 0 0 10px;
  color: #222;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
}

.breadcrumb_ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #6f6f6f;
  font-size: 14px;
}

.breadcrumb_ul li {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.breadcrumb_ul li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #b7b0a5;
}

.breadcrumb_ul a {
  color: inherit;
  text-decoration: none;
}

.breadcrumb_ul a:hover {
  color: #9f7a49;
}

.warranty-flex {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 28px;
  align-items: stretch;
}

.warranty-image figure,
.warranty-success figure {
  margin: 0;
}

.warranty-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.warranty-bg {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
  background: #f8f6f1;
}

.warranty-form {
  width: 100%;
}

.warranty-note {
  padding: 12px 14px;
  background: #fff8e8;
  border: 1px solid #ead7ad;
  color: #5c4320;
}

@media (max-width: 767px) {
  .page-width {
    width: min(100% - 24px, 1200px);
  }

  .breadcrumb {
    padding: 26px 0 12px;
  }

  .breadcrumb_title {
    font-size: 26px;
  }

  .warranty-section {
    padding: 32px 0;
  }

  .warranty-flex {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .warranty-image img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .warranty-bg {
    padding: 16px;
  }

  .warranty-title {
    font-size: 28px;
  }

  .warranty-form {
    padding: 16px;
  }

  .warranty-success-popup {
    padding-top: 16px;
  }

  .warranty-success {
    padding: 18px 16px 16px;
  }
}
