/* Popup Button */
#openPopup {
  padding: 7px 10px;
  font-size: 15px;
  background-color: #254791;
  border: none;
  cursor: pointer;
  color: white;
  border-radius: 2px;
  margin-top: 17px;
}

#openPopup:hover {
  background-color: darkgoldenrod;
}

/* Popup Background */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Popup Content */
.popup-content {
  background-color: white;
  color: rgb(8, 7, 7);
  padding: 20px 30px 20px 30px;
  width: 600px;
  max-width: 90%;
  border-radius: 8px;
  position: relative;
  text-align: left;
  z-index: 10000;
}

.cg-color {
  color: #068622;
  font-size: 40px;
  font-weight: bold;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

/* Close Button */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
}
.contact_close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: rgb(245, 242, 242);
  text-decoration: none;
  cursor: pointer;
  font-weight: bold;
}

.contact_close:hover {
  color: rgb(85, 73, 6);
}

/* Form Layout */
.form-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

.full-width {
  width: 100%;
  margin-top: 8px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid black;
  background: white;
  color: black;
  border-radius: 4px;
  resize: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

/* Checkbox */
.checkbox-container {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.checkbox-container input {
  margin-right: 10px;
}

/* Submit Button */
button[type="submit"] {
  width: 30%;
  padding: 10px;
  background: rgb(248, 179, 5);
  border: none;
  color: black;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  border-radius: 4px;
  margin-left: 35%;
}

button[type="submit"]:hover {
  background: greenyellow;
}

/* Error Messages */
.error-message {
  color: red;
  font-size: 13px;
  margin-top: 4px;
  line-height: 1.2;
}

/* Responsive */
@media (max-width: 600px) {
  .popup-content {
    width: 90%;
    padding: 15px 20px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 10px;
  }
}
