body {
    font-family: 'Gilmer', Arial, sans-serif;
    background-image: url('bg.png');
    background-size: cover;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
}

/* Background image for tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    body {
        background-image: url('bg-tablet.png');
    }
}

/* Background image for mobile devices */
@media (max-width: 768px) {
    body {
        background-image: url('bg-mobile.png');
    }
}

.container {
    max-width: 400px; /* Reduced size */
    width: 100%;
    background-color: #fff;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3); /* Increased shadow */
    border-radius: 10px;
    padding: 20px 20px; /* Reduced padding */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0; /* Added margin to add space from top and bottom */
}

h1 {
    font-size: 24px;
    color: #000;
}

h1 .red {
    color: #ff0000;
}

h1 .black {
    color: #000000;
}

h2 {
    font-size: 18px;
    color: #000;
    margin-bottom: 20px;
}

.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

label {
    font-size: 14px;
    color: #000;
    margin-bottom: 5px;
    align-self: flex-start;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fce8e8;
    box-sizing: border-box;
}

.button-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

button {
    background-color: #ff4d4d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #e60000;
}

p.large-text {
    font-size: 18px;
    color: #555;
    margin-top: 20px;
    font-weight: bold;
}

p.hashtag {
    font-size: 20px; /* Increased size */
    font-weight: bold;
    position: absolute;
    bottom: 20px;
    right: 20px;
    margin: 0;
}

p.hashtag .red {
    color: #ff0000;
}

p.hashtag .black {
    color: #000000;
}

/* Custom select styles */
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fce8e8;
    font-size: 16px;
    color: #555;
    appearance: none; /* Remove default arrow */
}

select:focus {
    outline: none;
    border-color: #ff4d4d; /* Change border color on focus */
}

/* Custom dropdown arrow */
select::-ms-expand {
    display: none;
}

/* Custom dropdown arrow for Chrome, Firefox, and Safari */
select::after {
    content: '\25BC'; /* Unicode character for down arrow */
    position: absolute;
    top: calc(50% - 0.5em);
    right: 10px;
    font-size: 1.5em;
    pointer-events: none;
    color: #555;
}

/* Styling options */
option {
    background-color: #fff;
    color: #555;
}

/* Media query to adjust form size for smaller screens */
@media (max-width: 768px) {
    .container {
        max-width: 300px; /* Adjusted max-width for smaller screens */
        padding: 10px 12px; /* Adjusted padding */
        margin: 10px 0; /* Adjusted margin to reduce form height */
    }

    .form-container {
        padding: 0;
    }

    p.hashtag {
        bottom: 20px;
        right: 10px;
    }
}

/* Media query specifically targeting older Android devices */
@media (max-width: 640px) {
    .container {
        max-width: 280px; /* Further reduce size */
        padding: 10px 10px; /* Further reduce padding */
        margin: 5px 0; /* Further reduce margin */
        background-color: transparent; /* Make form transparent */
        box-shadow: none; /* Remove shadow */
    }

    h1 {
        font-size: 20px; /* Adjust font size */
    }

    h2 {
        font-size: 16px; /* Adjust font size */
    }

    p.large-text {
        font-size: 16px; /* Adjust font size */
    }

    button {
        font-size: 14px; /* Adjust font size */
        padding: 8px 16px; /* Adjust padding */
    }

    p.hashtag {
        font-size: 18px; /* Adjust font size */
        bottom: 10px;
        right: 10px;
    }
}
