/*******************************************************
 * 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 textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    font-size: 16px;
    background-color: white;
    color: black;
    border: 1px solid #ccc;
}

.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 */
#contact_content-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;
}

#contact_content-form > div > label {
    /* The first child label spans all 3 columns */
    grid-column: 1 / -1;
    text-align: left;
    margin-bottom: 8px;
    color: black
}

/* Suggestion Buttons Container */
#suggestion-buttons-container {
    display: flex;
    margin-bottom: 10px;
    gap: 10px; /* Adds space between buttons */
    align-items: stretch; /* Ensures all buttons are stretched to the same height */
    width: 100%; /* Make sure the container stretches fully */
}

/* Suggestion Buttons Styling */
#suggestion-buttons-container .suggestion-btn {
    background-color: #afd2f5c0;
    color: black;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    flex-grow: 1; /* Ensures all buttons take up equal width */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px; /* Force all buttons to have the same minimum height */
    height: 100%; /* Makes sure buttons take full height available */
    box-sizing: border-box; /* Include padding and border in the height calculation */
}


#suggestion-buttons-container .suggestion-btn:hover {
    background-color: #4171a5;}


.custom-submit-btn {
    background-color: var(--brand-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.custom-submit-btn:hover {
    background-color: #093769;
}