/* Контейнер */
.container {
    background-color: white;
    padding: 20px 0;
}

/* Обов'язковий обгортковий блок */
#registration-wrapper {
    margin: 0 auto;
    width: 90%;
    max-width: 1000px;
}

/* Загальний стиль форми */
.registration-form {
    /* font-family: Arial, sans-serif; */
}

/* Секції форми */
fieldset {
    border: none;
    margin-bottom: 30px;
}

legend {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Рядки форми */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

/* Одна пара: label + input */
.form-row label {
  display: block;
  margin-bottom: 6px; /* <–– це додає відступ між label і input */
  font-weight: bold;
  color: #333;
  font-size: 14px;
}

.form-control {
    /* width: 100%; */
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Задаємо ширини для input’ів у flex */
.form-row > * {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
}

/* Фото upload з зеленою кнопкою */
#id_animal_photo {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 4px;
    cursor: pointer;
}

#id_animal_photo:hover {
    background-color: #218838;
}

/* Submit-кнопка */
.btn-next {
    background-color: #28a745;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    /* font-size: 16px; */
    margin-top: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-next:hover {
    background-color: #218838;
}

.upload-btn {
  display: inline-block;
  background-color: #28a745;
  color: white;
  padding: 10px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease;
  font-size: 14px;
}

.upload-btn:hover {
  background-color: #218838;
}

.camera-icon {
  margin-right: 6px;
}

#preview_animal_photo {
  display:none;
  width: 100%;
  max-width: 300px;
  max-height: 300px;
  margin: 10px 0;
  border: 1px solid #ccc;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  align-items: center;
}

.result-table > tbody > tr > td {
    border-top: 1px solid #ccc;
    padding: 8px 6px;
    width: 50%;
    font-family: "Roboto Slab", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
}

.info-caption{
    font-size: 18px;
    padding-bottom: 5px;
}

#cancel-button{
    background-color: #868686;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#submit-button{
    background-color: #28a745;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#submit-button:hover {
  background-color: #218838;
}

#register-buttons{
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

#register-buttons > button {
    margin-left: 10px;
}

#register-buttons > button:disabled {
    background-color: #28a745ab;
}

#confirmation-view {
    display: none;
    max-width: 1000px;
    margin: 0 auto;
    width: 90%;
}

.input-error {
    border: 1px solid red !important;
}

.error-message {
    color: red;
    font-size: 0.85em;
    margin-top: 5px;
}

/* Сіра прозорість */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Вікно */
.modal-dialog {
  background: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

/* Хедер */
.modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  background: #f7f7f7;
}

/* Контент */
.modal-body {
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 70vh;
  overflow: auto;
}

.modal-body img {
  max-width: 100%;
  max-height: 500px;
  border-radius: 4px;
}

/* Футер */
.modal-footer {
  padding: 15px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #eee;
}

/* Кнопки */
.btn {
  padding: 10px 20px;
  border: none;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
}

.btn-cancel {
  background: #f0ad4e;
  color: white;
}

.btn-confirm {
  background: #337ab7;
  color: white;
}

.btn:hover {
  opacity: 0.9;
}

.btn-rotate {
  background: #5bc0de;
  color: white;
}

.btn-rotate:hover {
  background: #31b0d5;
}