/* === Modal Styles === */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  max-width: 800px;
  width: 90%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: pop-in 0.3s ease-out;
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal h2 {
  font-size: 22px;
  margin-bottom: 20px;
}

/* === Form Layout === */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}

.input-group {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.input-group input {
  padding: 15px 14px;
  border: 1px solid #ccc;
  border-radius: 16px;
  font-size: 18px;
  transition: border 0.2s ease;
}

.input-group input:focus {
  border-color: #2168BA;
  outline: none;
}

/* === Submit Button === */
.submit-btn {
  width: 100%;
  max-width: 293px;
  padding: 14px;
  background-color: #00bfa6;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.2s ease;
}

.submit-btn:hover {
  background-color: #009e8e;
}

.btn-container {
    width: 100%;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* === Close Button === */
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
  font-weight: bold;
  color: #999;
}

/* === Trigger Button === */
.open-modal-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #2168BA;
  color: white;
  font-size: 16px;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 30px;
}

/* === Show Modal When Toggled === */
#modal-toggle:checked ~ .modal-overlay {
  display: block;
}

#modal-toggle:checked ~ .modal {
  display: flex;
}
