/* Popup form styling */

.popup-form {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.popup-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: relative;
    top: -50px; /* Adjust this value to move it upwards */
  }


.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Form styling */
#ctaForm {
    display: flex;
    flex-direction: column;
}

#ctaForm input,
#ctaForm textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

#ctaForm button {
    padding: 10px;
    margin-top: 10px;
    border: 2px solid transparent;
    /* Initially no visible border */
    border-radius: 5px;
    background-color: #73b64f;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    position: relative;
}

#ctaForm button:hover {
    background-color: #000;
    color: white;
    border: 2px solid;
    /* Makes the border visible on hover */
    box-shadow: inset 0 0 0 2px white;
    /* Inner white lining effect */
}

.form-message {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
}

.success-message {
    color: #73b64f;
    font-weight: bold;
}

.error-message {
    color: red;
    font-weight: bold;
}

#ctaForm input,
#ctaForm textarea {
    background-color: white;
    /* Change to your preferred color */
    border: 1px solid #ccc;
}

#ctaForm input:focus,
#ctaForm textarea:focus {
    background-color: #f9f9f9;
    /* Light gray when focused */
    border-color: #73b64f;
    /* Green border when focused */
    outline: none;
}

/* Remove default browser error styles */
#ctaForm input:invalid,
#ctaForm textarea:invalid {
    box-shadow: none;
}
.required-asterisk {
    color: #aaa;
}