/*******************************************************
 * NEWSLETTER FORM
 *******************************************************/
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    text-align: center;
    position: relative;
    max-height: 80vh; /* Set height constraint */
    overflow-y: auto; /* Better for vertical scrolling */
}

.popup-content h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #000;
}

.popup-content input {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    font-size: 16px;
    background-color: white;
    color: black;
}

.popup-content button {
    width: 100%;
    padding: 12px;
    background: var(--brand-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: black;
}

/* New styles for horizontally distributed radio buttons and their labels */
#newsletter-form > div {
    /* This div is the container for the radio options in the form */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-items: center;
}

#newsletter-form > div > label {
    /* The first child label spans all 3 columns */
    grid-column: 1 / -1;
    text-align: left;
    margin-bottom: 8px;
    color: black
}

#newsletter-form > div > div > label {
    /* Ensure radio button labels are black */
    color: black;
}

/* Styling for the lead origin select field */
.form-field {
  margin-bottom: 15px;
}

.form-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

#lead-origin {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  color: #333;
  font-size: 14px;
}

#lead-origin:focus {
  outline: none;
  border-color: #0afdb4;
  box-shadow: 0 0 0 2px rgba(10, 253, 180, 0.2);
}