/* style.css */

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    background-color: #f4f7f6; /* Light background color */
    color: #333; /* Darker text for readability */
    display: flex;
    justify-content: center;
    align-items: start;
    min-height: 100vh; /* Ensure full viewport height */
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
    max-width: 600px;
    width: 95%; /* Take up 95% of container width but not exceeding max-width */
    margin: 20px; /* Add some margin around the container */
}

header {
    text-align: center;
    margin-bottom: 25px;
    justify-items: center;
}

.logo img {    
    height: auto;
    margin-bottom: 15px;
}

h1 {
    color: #2c3e50; /* Primary heading color */
    margin-top: 0;
    font-size: 1.5em;
}

#form-container {
    margin-bottom: 20px; /* Space before response messages */
}


.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555; /* Label text color */
    font-weight: bold;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd; /* Light border */
    border-radius: 4px;
    box-sizing: border-box; /* Ensure padding is inside the width */
    font-size: 16px;
    transition: border-color 0.3s ease; /* Smooth border transition on focus */
    font-family: inherit; /* Inherit font-family from body */

}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    border-color: #007bff; /* Highlight border on focus */
    outline: none; /* Remove default focus outline */
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2); /* Subtle focus shadow */
}


button[type="submit"] {
    background-color: #007bff; /* Primary button color */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease; /* Smooth background color transition */
    display: block; /* Make button full width */
    width: 100%;
    box-sizing: border-box; /* Ensure width includes padding and border */
}

button[type="submit"]:hover {
    background-color: #0056b3; /* Darker shade on hover */
}

button[type="submit"]:focus {
    outline: none; /* Remove default focus outline */
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5); /* Stronger focus shadow */
}

button#language-toggle {
    background-color: #f3f4f5; /* Primary button color */
    color: rgb(0, 0, 0);
    padding: 6px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease; /* Smooth background color transition */
    display: block; /* Make button full width */
    /* width: 100%; */
    box-sizing: border-box; /* Ensure width includes padding and border */
}

button#language-toggle:hover {
    background-color: #dfdfdf; /* Darker shade on hover */
}

button#language-toggle:focus {
    outline: none; /* Remove default focus outline */
    box-shadow: 0 0 0 2px rgba(192, 192, 192, 0.5); /* Stronger focus shadow */
}

.loading-indicator {
    display: none; /* Hidden by default */
    text-align: center;
    margin-top: 15px;
    color: #777;
}

.response-message {
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
}

.response-message.success {
    background-color: #e6f7ff;
    color: #3ac47d; /* Success color */
    border: 1px solid #b3e0ff;
}

.response-message.error {
    background-color: #ffebee;
    color: #e53e3e; /* Error color */
    border: 1px solid #ffcdd2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 10px;
    }

    h1 {
        font-size: 1.7em;
    }

    .form-group label {
        font-size: 15px;
    }

    .form-group input[type="text"],
    .form-group textarea,
    button[type="submit"] {
        font-size: 15px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }
}