body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 20px; /* Add padding for better appearance on mobile */
}

.form-container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px; /* Increase max-width for better desktop appearance */
    box-sizing: border-box; /* Ensure padding is included in the width */
    overflow: hidden; /* Prevent internal scrolling */
}

h2 {
    text-align: center;
    color: #d80000;
    margin-bottom: 20px; /* Add margin for better spacing */
}

.form-group {
    margin-bottom: 20px; /* Increase margin for better spacing */
}

label {
    display: block;
    margin-bottom: 8px; /* Increase margin for better spacing */
    font-weight: bold;
}

input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 12px; /* Increase padding for better touch interaction */
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px; /* Increase font size for readability */
}

.mobile-input {
    display: flex;
    align-items: center;
}

.country-code {
    margin-right: 5px;
    font-size: 16px; /* Match font size of inputs */
}

button {
    width: 100%;
    padding: 15px; /* Increase padding for better touch interaction */
    background-color: #d80000;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px; /* Increase font size for readability */
}

button:hover {
    background-color: #c70000;
}

/* Media query for small screens */
@media (max-width: 600px) {
    body {
        padding: 10px; /* Adjust padding for better appearance on mobile */
    }

    .form-container {
        width: 100%; /* Ensure the form container takes full width on mobile */
        max-width: none; /* Remove max-width restriction */
    }

    input[type="text"],
    input[type="email"],
    select,
    button {
        font-size: 14px; /* Slightly reduce font size for small screens */
        padding: 10px; /* Slightly reduce padding for small screens */
    }

    h2 {
        font-size: 20px; /* Slightly reduce font size for small screens */
    }

    label {
        font-size: 14px; /* Slightly reduce font size for small screens */
    }

    .country-code {
        font-size: 14px; /* Slightly reduce font size for small screens */
    }
}
