/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/



html{
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::after,
*::before{
  -webkit-box-sizing: inherit;
          box-sizing: inherit;
          margin: 0;
          padding: 0;
          -webkit-box-sizing: border-box;
                  box-sizing: border-box;
}


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

img{
  max-width: 100%;
}

body{
  font-family: 'Roboto', sans-serif;
  background-color: #f5f5f5;
  color: #333;
 
}

.list-reset{
    margin: 0;
    padding: 0;
    list-style: none;
  }

.btn-reset{
    padding: 0;
    border: none;
    background-color: inherit;
    color: #fca311;
    cursor: pointer;
  }

.flex{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

/* Контейнер */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Шапка */
.header {
  background-color: #14213d;
  padding: 40px 0;
  text-align: center;
  border-bottom: 5px solid #fca311;
  color: white;
  margin: 0;
}



.header__text h1 {
  font-size: 3em;
  margin-bottom: 10px;
  font-weight: bold;
}

.header__text p {
  font-size: 1.2em;
}

/* Основной раздел */
.main {
  background-color: white;
  padding: 40px;
  border-radius: 15px;
  -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 50px;
}

.main label a {
  margin-top: 5px;
}

.main__header{
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.main__header-title {
  margin: 0;
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #333;
  font-weight: bold;
}

.main__header-descr{
  font-size: 1.4em;
  text-align: center;
  color: #333;
  margin-bottom: 30px;
  width: 80%;
}

/* Форма */
.main__form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 20px;
}

/* Стиль для полей формы */
.main__form-input {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1.1em;
  outline: none;
  width: 100%;
  color: #000;
  -webkit-text-fill-color: #000;
  background-color: #fff;
  -webkit-appearance: none;
  appearance: none;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

select.main__form-input,
select.gender_child {
  color: #5b5b5b;
  -webkit-text-fill-color: #5b5b5b;
}

select.main__form-input:has(option:checked:not([value=""])),
select.gender_child:has(option:checked:not([value=""])) {
  color: #000;
  -webkit-text-fill-color: #000;
}


input[type="date"]{
  text-align: left;
  appearance: initial;
}

input[type="date"]::-webkit-date-and-time-value{
  text-align: left;
}

.main__form-input:focus {
  border-color: #fca311;
}

.select {
  display: block;
  width: 100%;
  height: fit-content;
  position: relative;
}

.select::before {
  content: '';
  display: block;
  width: 15px;
  height: 13px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 15px;
  background: url(./../image/arr-down.svg) center center;
  background-repeat: no-repeat;
}

.child__field .select::before {
  right: 8px;
}

/* Стили для кнопок */
.main__form-input[readonly],
.main__form-input[disabled] {
  caret-color: transparent;
  user-select: none;
  color: #6d6d6d;
  border: 1px solid #ddd !important;
  cursor: default;
  background-color: #f3f3f3;
}

.main__form-input[type="submit"] {
  background-color: #fca311;
  color: white;
  -webkit-text-fill-color: white;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  padding: 15px;
  border-radius: 8px;
  -webkit-transition: background-color 0.3s;
  -o-transition: background-color 0.3s;
  transition: background-color 0.3s;
}

.main__form-input[type="button"] {
  background-color: #fca311;
  color: white;
  -webkit-text-fill-color: white;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  padding: 15px;
  border-radius: 8px;
  -webkit-transition: background-color 0.3s;
  -o-transition: background-color 0.3s;
  transition: background-color 0.3s;
}

.main__form-input[type="submit"]:hover {
  background-color: #936720;
}

.main__form-input[type="button"]:hover {
  background-color: #936720;
}
/* Стили для радио кнопок */
.main__form-gender {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 70px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.main__form-doc{
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.main__form-doc-left{
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
    gap: 30px;
}

.main__form-doc-right{
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
    gap: 30px;
}

.main__cont-info{
  padding: 30px;
  margin-bottom: 20px;
}

.main__info-title{
  text-align: center;
  margin: 0;
  padding: 0;
  margin-bottom: 10px;
}

.main__info-descr{
  text-align: center;
  margin: 0;
  padding: 0;
  margin-bottom: 20px;
}



.main__registration {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 30px;
  margin-top: 30px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap; /* Для лучшей адаптивности на маленьких экранах */
}

#label_birth_date span {
  color: #da0404;
}

.kennel__cont{
  gap: 30px;
  justify-content: space-between;
}

.kennel__cont-left, .kennel__cont-right{
  gap: 10px;
  display: flex;
  flex-direction: column;
  width: 100%;
}


.child__table-container{
  width: 100%;
}

.child__list{
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 16px;
  margin-bottom: 10px;
}

.child__card{
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  padding: 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 12px;
  background: #fff;
}

.child__field{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 6px;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 180px;
          flex: 1 1 180px;
}

.child__field label{
  font-size: 13px;
  font-weight: 600;
}

.child__field input,
.child__field select,
.child__field textarea{
  width: 100%;
  min-height: 42px;
  border: 1px solid #b8b8b8;
  border-radius: 6px;
  padding: 8px 10px;
  background: white;
  appearance: none;
  outline: none;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.child__field textarea{
  min-height: 70px;
  resize: vertical;
}

.child__field input:focus,
.child__field select:focus,
.child__field textarea:focus{
  border-color: #fca311;
}

.child__field--number{
  -webkit-box-flex: 0;
      -ms-flex: 0 0 90px;
          flex: 0 0 90px;
}

.child__field--number .number_pp{
  text-align: center;
  background: #f8f8f8;
}

.child__field--comment{
  -webkit-box-flex: 1;
      -ms-flex: 1 1 100%;
          flex: 1 1 100%;
}

.child__field--actions{
  -webkit-box-flex: 1;
      -ms-flex: 1 1 100%;
          flex: 1 1 100%;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
}
 
.defect__child-cont{
  gap: 10px;
  flex-direction: column;
}

.defect__child-hidden{
  width: 80%;
  margin: 0 auto;
  gap: 10px;
  flex-direction: column;
  text-align: center;
}

.defect__child-descr{
  margin: 0;
  font-size: 20px;
  text-align: center;
}

.defect__child-val{
  border: none;
  outline: none;
  border-bottom: 1px solid;
  width: 50px;
  text-align: center;
}

.defect__child-table{
  width: 100%;
  text-align: center;
}

.defect__number-pp{
  border: none;
  outline: none;
  border-bottom: 1px solid;
  width: 50px;
  text-align: center;
}

.suggestion-item{
  padding: 10px;
  cursor: pointer;
}

.suggestion-item:hover{
  outline: 1px solid #fca311;
  border-radius: 10px;
}


.href__doc {
  color: #fca311;
  -webkit-text-fill-color: #fca311;
  display: block;
}

/* Registration Block Style */
.registration__block {
  background: #ffffff;
  border-radius: 12px;
  -webkit-box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
          box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  padding: 30px;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 30%;
          flex: 1 1 30%; /* Разделение блока на 3 равные части, а затем адаптация для меньших экранов */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end; /* Выравнивание контента внизу */
  text-align: center;
  height: 400px;
  background-size: cover;
  background-position: center;
  -webkit-transition: -webkit-transform 0.3s ease-in-out, -webkit-box-shadow 0.3s ease;
  transition: -webkit-transform 0.3s ease-in-out, -webkit-box-shadow 0.3s ease;
  -o-transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease, -webkit-transform 0.3s ease-in-out, -webkit-box-shadow 0.3s ease;
  overflow: hidden;
}

.registration__show {
  background-image: url('../img/show.jpg');
}

.registration__rod {
  background-image: url('../img/doc.jpg');
}

.registration__pomet {
  background-image: url('../img/pomet.jpg');
}

.registration__block:hover {
  -webkit-transform: translateY(-12px);
      -ms-transform: translateY(-12px);
          transform: translateY(-12px);
  -webkit-box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
          box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.main__registration-title {
  font-size: 1.8rem;
  font-family: 'Playfair Display', serif;
  margin-bottom: 15px;
  padding: 20px 0;
  text-align: center;
  -ms-flex-line-pack: center;
      align-content: center;
  background-color: #086c90bc;
  border-radius: 15px;
  color: #fff;
  -webkit-box-shadow: 8px 7px 6px 1px rgba(34, 60, 80, 0.25);
  box-shadow: 8px 7px 6px 1px rgba(34, 60, 80, 0.25);
}

.main__registration-descr {
  font-size: 1rem;
  background-color: #086c90bc;
  color: #fff;
  margin-bottom: 20px;
  border-radius: 15px;
  padding: 20px;
  -webkit-box-shadow: 8px 7px 6px 1px rgba(34, 60, 80, 0.25);
box-shadow: 8px 7px 6px 1px rgba(34, 60, 80, 0.25);
}

.btn {
  background-color: #fca311;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 150px;
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 1px;
  display: inline-block;
  margin-top: auto; /* Позиционируем кнопку внизу */
}

.btn:hover {
  background-color: #005a8c;
  -webkit-transform: translateY(-2px);
      -ms-transform: translateY(-2px);
          transform: translateY(-2px);
}

/* Стили для футера */
.footer {
  background-color: #f5f5f5;
  text-align: center;
  padding: 20px 0;
  border-top: 5px solid #ddd;
}

.footer__descr{
  text-align: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.footer__descr h3,
.footer__descr h4 {
  margin: 5px 0;
  font-size: 1.2em;
  color: #555;
}


.main__form-info{
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 20px;
}

.main__form-info label {
  line-height: 150%;
}

.info1, .info2, .info3, .info4{
  gap: 10px;
}

.main__links{
  text-align: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.main__links-href:hover{
  color: #fca311;
  cursor: pointer;
  transition: 0.3s all;
}

.form__father-div{
  width: 100%;
}

.form__mother-div{
  width: 100%;
}

.main__form-h3{
  padding: 0;
  margin: 0 auto;
  text-align: center;

}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1000;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.main__form-h4{
  padding: 0;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.main__form-rod{
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.main__form-father, .main__form-mother{
  width: 100%;
  gap: 20px;
  flex-direction: row;
  flex-wrap: wrap;
  word-wrap: normal;
  padding: 20px;
}

.main__form-father{
  gap: 20px;
  justify-content: space-between;
  padding-right: 0;
}

.main__form-mother{
  gap: 20px;
  justify-content: space-between;
  padding-left: 0;
}

.main__child-chip{
  flex-direction: column;
  gap: 20px;
}

.child-chip {
  flex-wrap: nowrap;
  text-wrap: nowrap;
  gap: 35px;
  text-align: center;
  align-items: center;
}

.table__idbc-litter{
  margin: 0 auto;
  text-align: center;
  width: 80%;
}

.table__idbc-litter tr{
  background-color: red;
  padding: 20px;
  width: 100%;
}

.table__idbc-litter td{
  padding: 20px;
}
