/* External CSS for the Free Accommodation Booking Form */

/* General Reset */
body,
h1,
h2,
h3,
p,
ul,
ol,
li {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: #f9f9f9;
  /* display: flex; */
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  /* padding: 20px; */
}

/* Form Container */
.form-container {
  margin: auto;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 30px;
  max-width: 500px;
  width: 100%;
  margin-bottom: 2rem;
}

.form-container h1 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

/* Form Elements */
.form-group {
  margin-bottom: 15px;
  width: 100%;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #555;
  font-weight: bold;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.form-group small {
  display: block;
  margin-top: 5px;
  color: #888;
  font-size: 12px;
}

.form-group div {
  width: 100%;
}

.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  transition: border-color 0.3s;
  background-color: white;
}

.form-group select:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Submit Button */
button[type="submit"] {
  width: 100%;
  padding: 12px;
  background-color: rgb(107, 28, 20);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button[type="submit"]:hover {
  background-color: rgb(59, 13, 8);
}

input,
select {
  border-radius: 4px;
}

label span {
  color: #d9534f;
}

/* Removed number input spinners */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .form-container {
    padding: 15px;
  }

  .form-group input,
  .form-group select {
    font-size: 13px;
    padding: 8px;
  }

  button[type="submit"] {
    font-size: 14px;
    padding: 10px;
  }
}

/* Popup success/error dialog box styles */
.popup-dialog {
  padding: 0;
  border: none;
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
  animation: popIn 0.3s ease-out;
}

.popup-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-out;
}

.popup-content {
  padding: 2rem;
  text-align: center;
  min-width: 300px;
}

.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.3s ease-out 0.2s both;
}

.success .icon-circle {
  background: #e8f5e9;
}

.error .icon-circle {
  background: #ffebee;
}

.checkmark,
.crossmark {
  width: 32px;
  height: 32px;
}

.success .checkmark {
  fill: #4caf50;
}

.error .crossmark {
  fill: #f44336;
}

.popup-dialog h2 {
  margin: 0 0 0.5rem;
  color: #333;
}

.popup-dialog p {
  margin: 0 0 1.5rem;
  color: #666;
}

.dismiss-btn {
  background: #333;
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.dismiss-btn:hover {
  background: #444;
}

/* Animations */
@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.slide-up {
  animation: slideUp 0.4s ease-out 0.3s both;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* date pickers */
.date-pickers {
  display: flex;
  align-items: center;
}

.date-input {
  flex: 1;
  margin-right: 10px;
}

.date-input:last-child {
  margin-right: 0;
}
.date-pickers span {
  margin: 0 10px;
}

.date-input input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  transition: border-color 0.3s;
}

.date-input input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
