/* 1. Colors and Variables */
:root {
    --primary: #25D366; /* Primary color (WhatsApp green) */
    --secondary: #128C7E; /* Secondary color (Darker WhatsApp green) */
    --background: #f4f4f4; /* Background color */
    --form-bg: #fff; /* Form background color */
    --text-color: #333; /* Text color */
    --border-color: #ccc; /* Border color */
}

/* 2. Global Styles (body) */
body {
    font-family: Arial, sans-serif;
    background-color: var(--background); /* Using background variable */
    margin: 0; /* Removing user agent default margin */
    padding: 20px; /* Uniform padding for devices */
    text-align: center;
    color: var(--text-color); /* Global text color */
}

/* 3. Form Styles */
form {
    background-color: var(--form-bg); /* Form background color */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 100%; /* Maximum width set to 100% */
    margin: 0 auto; /* Auto margin for centering */
    width: 100%; /* Form width set to 100% */
    box-sizing: border-box; /* Proper box sizing */
}

/* 4. Input and Textarea Styles */
input, textarea {
    width: 100%; /* Field width set to 100% */
    padding: 10px;
    margin: 10px 0;
    border: 1px solid var(--border-color); /* Using border color variable */
    border-radius: 4px;
    box-sizing: border-box; /* Proper box sizing */
}

/* 5. Button Styles */
button {
    padding: 10px 20px;
    background-color: var(--primary); /* Primary color for button */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%; /* Button takes full width */
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

button:hover {
    background-color: var(--secondary); /* Secondary color for hover state */
}

/* 6. Media Queries (Responsive Design) */
@media only screen and (max-width: 600px) {
    form {
        padding: 15px; /* Reduced padding for mobile */
    }

    input, textarea, button {
        font-size: 16px; /* Larger font for mobile */
        padding: 12px;   /* Increased padding for mobile */
    }
}
