/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Form Container */
.form-container {
    width: 90%;
    max-width: 500px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px 30px;
    text-align: center;
}

/* Logo Styles */
.form-container img {
    max-width: 150px;
    margin-bottom: 20px;
}

/* Language Selector */
.language-selector {
    margin-bottom: 20px;
}

.language-selector img {
    width: 30px;
    height: 20px;
    cursor: pointer;
    margin: 0 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.language-selector img:hover {
    border-color: #007BFF;
}

/* Form Labels */
label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #555;
}

/* Input, Select, and Textarea Styles */
input,
select,
textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    resize: none;
    transition: border-color 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #007BFF;
    outline: none;
}

/* Textarea specific styles */
textarea {
    height: 120px;
}

/* Form Group */
.form-group {
    margin-bottom: 15px;
}

/* Submit Button */
.form-group button {
    display: block;
    width: 100%;
    background-color: #007BFF;
    color: white;
    padding: 10px;
    font-size: 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.form-group button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.form-group button:active {
    transform: translateY(0);
}

/* Success and Error Messages */
.success-message,
.error-message {
    display: none;
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    border: 1px solid transparent;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Character Counter */
#char-count {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #6c757d;
    text-align: right;
}

/* Responsive Design */
@media (max-width: 600px) {
    .form-container {
        padding: 15px 20px;
    }

    input,
    select,
    textarea {
        font-size: 14px;
        padding: 8px;
    }

    .form-group button {
        font-size: 16px;
        padding: 8px;
    }
}


.success-message {
    display: none;
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    background-color: #d4edda;
    color: #155724;
    font-weight: bold;
    text-align: center;
    border: 1px solid #c3e6cb;
}

.error-message {
    display: none;
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8d7da;
    color: #721c24;
    font-weight: bold;
    text-align: center;
    border: 1px solid #f5c6cb;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.form-container {
    margin: auto;
    padding: 20px;
}

footer {
    text-align: center;
    margin-top: auto;
    padding: 10px 0;
    background-color: #f9f9f9;
    font-size: 0.9em;
    color: #555;
}