/* Form Title */
.form-title {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
}

/* Form Group (input/textarea) */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

/* Labels */
.form-group label {
    font-size: 1.1em;
    color: #555;
    display: block;
    margin-bottom: 8px;
}

/* Input Fields */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    max-width: 100%;
    padding: 0px;
    font-size: 1em;
    border: 2px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    -webkit-appearance: none; /* Remove default styling in WebKit browsers */
    -moz-appearance: none; /* Remove default styling in Firefox */
    appearance: none; /* Remove default styling */
}

/* Style the select placeholder option */
.contact-form select option[disabled][selected] {
    color: #999;
    font-style: italic;
}

/* Input Fields with Icon */
.contact-form .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.contact-form .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.1em;
    z-index: 1; /* Ensure icon is above the select */
}

/* Adjust padding for inputs and selects with icons */
.contact-form .input-wrapper input,
.contact-form .input-wrapper textarea,
.contact-form .input-wrapper select.has-icon {
    padding-left: 40px !important; /* Adjust padding to make space for the icon */
}

/* Add a down arrow for select fields (for better UX) */
.contact-form select {
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 1em;
}

/* Focused Input Fields */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(0, 128, 0, 0.2);
}

/* Submit Button */
.submit-btn {
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    font-size: 1.1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

/* Submit Button Hover Effect */
.submit-btn:hover {
    background-color: #4a90e2;
}

/* Ensure input fields take full width when label is hidden */
.form-field.no-label .input-wrapper {
    width: 100%;
}

.form-field.no-label .input-wrapper input,
.form-field.no-label .input-wrapper textarea,
.form-field.no-label .input-wrapper select {
    width: 100%;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .contact-form-container {
        padding: 20px;
        margin: 20px;
    }
    .form-title {
        font-size: 1.8em;
    }
}