/* Full-width input fields */
input[type=text],
input[type=password] {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 2px dashed #dddddd75;
    box-sizing: border-box;
    border-radius: 30px;
}

/* Text area */
.text-msg {
    width: 100%; /* Full-width */
    height: 100px;
    border: 2px dashed #dddddd75;
    border-radius: 30px;
}

/* Style for all buttons */
.signupbtn {
    background-color: #ff4106;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    cursor: pointer;
    width: 100%;
    border: 0;
    border-radius: 30px;
    /* Centering the button */
    transform: translateX(0%);
}

.signupbtn:hover {
    background-color: #008033;
}

/* Style for cancel button */
.cancelbtn {
    background-color: #104028;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    cursor: pointer;
    width: 100%;
}

/* Float cancel and signup buttons and add equal width */
.cancelbtn,
.signupbtn {
    float: left;
    width: 50%;
}

/* Add padding to container elements */

/* Define the modal’s background */
.modal1 {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
}

/* Define the modal-content background */
.modal-content1 {
    background-color: #fefefe;
    margin: 5% auto;
    border: 1px solid #888;
    width: 80%; /* Adjust width for responsiveness */
    max-width: 600px; /* Max width for larger screens */
    padding: 20px; /* Adjust padding */
    border-radius: 30px;
}

/* Define the close button */
.close {
    margin-top: 60px;
    position: absolute;
    right: 35px;
    top: 20px; /* Adjust position */
    color: #fff;
    font-size: 40px;
    font-weight: bold;
}

/* Define the close hover and focus effects */
.close:hover,
.close:focus {
    color: red;
    cursor: pointer;
}

/* Clearfix */
.clearfix1::after {
    content: "";
    clear: both;
    display: table;
}

textarea {
    height: 20% !important;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    /* Modal content adjustments */
    .modal-content1 {
        width: 85%; /* More responsive width */
        padding: 15px; /* Adjust padding for smaller screens */
        margin-top: 90px;
    }

    /* Center buttons for medium screens */
    .cancelbtn,
    .signupbtn {
        width: 100%; /* Full width for medium screens */
        float: none; /* Remove float */
    }
}

@media screen and (max-width: 480px) {
    /* Further adjustments for very small screens */
    .modal-content1 {
        width: 90%; /* Adjust width for very small screens */
        padding: 10px; /* Further reduce padding */
        margin-top: 90px;
    }

    .close {
        font-size: 30px; /* Smaller close button */
        right: 20px; /* Adjust position */
    }
}
