.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.form-container {
  padding: 20px;
  border-radius: 10px;
  height: 80vh;
  scrollbar-width: thin;
  overflow-y: auto;
  background-color: white;
  max-width: 700px;
  margin: 40px auto;
  font-family: sans-serif;
}

.form-container form {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.row {
  display: flex;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.form-group.full {
  width: 100%;
  margin-top: 15px;
}

label {
  font-size: 14px;
  margin-bottom: 6px;
  color: #333;
}

input,
textarea,
select {
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #000;
}

textarea {
  /* height: 120px; */
  resize: none;
}

/* Phone field layout */
.phone-box {
  display: flex;
  gap: 10px;
}

.phone-box select {
  max-width: 80px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  font-size: 14px;
}

.checkbox-row a {
  color: #000;
  text-decoration: underline;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  background: black;
  color: white;
  border: none;
  padding: 16px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
}

.submit-btn:hover {
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 600px) {
  .row {
    flex-direction: column;
  }

  .form-container {
    max-width: 90vw;
    width: 100%;
  }
}

/* Popup box */
.message-container {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  animation: popupScale 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

/* Success & Error theme colors */
.message-container.success h2 {
  color: #10b981;
}
.message-container.error h2 {
  color: #ef4444;
}

.icon-wrapper {
  margin-bottom: 12px;
}

/* Text styling */
.message-container h2 {
  font-size: 24px;
  margin-bottom: 8px;
  font-weight: 600;
}

.message-container p {
  font-size: 15px;
  color: #555;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Button */
.popup-btn {
  padding: 12px 22px;
  background: #111;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.popup-btn:hover {
  background: #000;
}

/* Animation */
@keyframes popupScale {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .message-container {
    padding: 24px 18px;
  }
  .message-container h2 {
    font-size: 20px;
  }
  .message-container p {
    font-size: 14px;
  }
}

/* Add to your CSS file, e.g., styles.css */
.loader {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: inline-block;
  animation: spin 1s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
