/* Web to Lead style */
.emed-web-to-lead {
    background-color: #fff;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
}

.emed-web-to-lead form {
    display: flex;
    flex-direction: column;
}

.emed-web-to-lead label {
    margin-top: 10px;
    margin-bottom: 10px;
    color: #333;
}

.emed-web-to-lead input,
.emed-web-to-lead select {
    height: 40px;
    padding: 5px 10px;
    margin-bottom: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%; /* Ensures that input fills the container */
}

.emed-web-to-lead input::placeholder {
    font-style: italic;
}

.emed-web-to-lead .form-group {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Ensures responsiveness */
}

.emed-web-to-lead .form-group div {
    flex-basis: 48%; /* Allows for two columns */
    min-width: 200px; /* Minimum width for narrow screens */
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .emed-web-to-lead .form-group div {
        flex-basis: 100%;
    }
}

.emed-web-to-lead .emed-web-to-lead-submit {
    display: flex;
    width: 100%; /* Full width by default */
    max-width: 35rem; /* Maximum width */
    justify-content: space-between;
    align-items: center;
    opacity: 1; /* Set the opacity for the button */
    background-color: #000000; /* Assuming you still want the gray color */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: opacity 0.3s ease; /* Transition for the opacity */
    outline: none;
    padding: 10px;
}

.emed-web-to-lead .emed-web-to-lead-submit:hover {
    opacity: 0.5; /* Full opacity on hover */
}

.emed-web-to-lead .required-star {
    color: red;
}

.emed-web-to-lead input[type='tel'],
.emed-web-to-lead input[type='email'] {
    width: 100%; /* Makes the input take up the full width of the flex item */
    box-sizing: border-box; /* Includes padding and border in the input width */
}

/* Thank you for contacting message */
.thank-you-message {
    text-align: center;
    max-width: 600px;
    margin: auto;
    padding: 40px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.thank-you-message h1 {
    font-size: 2em;
    color: #333;
}
.thank-you-message p {
    font-size: 1em;
    color: #666;
    line-height: 1.6;
}
.thank-you-message .button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    border-radius: 5px;
    background-color: #000; /* Black background */
    color: #fff; /* White text */
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.thank-you-message .button:hover {
    background-color: #333; /* Dark grey background for hover state */
}

.hidden-thank-you {
    display: none;
    background: #eefcf3;
    border: 1px solid #1fad53;
    border-radius: 8px;
    padding: 0px 10px;
    margin-bottom: 10px;
    color: #808080;
}

.hidden-thank-you:target {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hidden-thank-you span {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    color: #000000;
}

.request-message {
    color: #808080;
}
