/* General body styles with dark theme and subtle gradient */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #2B2B2B, #1E1E1E);
    color: #E0E0E0;
    text-align: center;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
}

/* Header and logo styling */
header {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    height: 60px;
    display: block;
    margin: 0 auto 10px;
}

/* Main form container with responsive design */
form {
    background-color: #2C2C2C;
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0px 15px 35px rgba(0, 0, 0, 0.5);
    border: 2px solid #444444;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover effect for the form */
form:hover {
    transform: translateY(-10px);
    box-shadow: 0px 20px 50px rgba(0, 0, 0, 0.6);
}

/* Form group for flexible layout */
.form-group {
    flex: 1 1 30%;
    min-width: 280px;
}

/* Label and input field styling */
label {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #E0E0E0;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="url"] {
    width: 100%;
    padding: 15px;
    background-color: #3C3C3C;
    border: none;
    border-bottom: 2px solid #444444;
    border-radius: 5px;
    color: #E0E0E0;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="url"]:focus {
    border-bottom: 2px solid #00A86B;
    outline: none;
    box-shadow: 0 4px 8px rgba(0, 168, 107, 0.3);
}

/* Full-width button styling */
button {
    background-color: #00A86B;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

button:hover {
    background-color: #007B55;
    transform: scale(1.05);
}

/* QR Code container */
#qrcode {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Header font sizes */
h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #E0E0E0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

h2 {
    font-size: 2rem;
    margin-top: 30px;
    color: #00A86B;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    form {
        flex-direction: column;
        padding: 20px;
    }

    .form-group {
        flex: 1 1 100%;
        margin-bottom: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    #qrcode {
        margin-top: 20px;
    }
}

/* Smaller screens and landscape adjustments */
@media (max-width: 480px) {
    input[type="text"],
    input[type="tel"],
    input[type="email"],
    input[type="url"] {
        padding: 10px;
    }

    button {
        padding: 12px;
        font-size: 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}
