/* ===== Кастомна модалка (реєстрація) ===== */

.custom-modal {
    display: none; /* приховано за замовчуванням */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.65);
    animation: fadeIn 0.3s ease-in-out;
}

.custom-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-modal-content {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.35s ease-out;
    position: relative;
}

/* Кнопка закриття */
.custom-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    font-weight: bold;
    color: #444;
    cursor: pointer;
}

.custom-modal-close:hover {
    color: #000;
}

/* ===== Двоколонкове розміщення полів ===== */

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row .form-group {
  flex: 1;
  min-width: 200px;
}

.register-form .form-group input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
  background: #f8f8f8;
  transition: border-color 0.2s ease-in-out;
}

.register-form .form-group input:focus {
  border-color: #0E8388;
  outline: none;
  background: #fff;
}

.error-message {
  color: #c62828;
  font-size: 13px;
  margin-top: 5px;
}


@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }
}


/* Анімації */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
