/* Form Title */
.dcfm-form-wrapper .form-title {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
}

/* Form Group (input/textarea) */
.dcfm-form-wrapper .form-group {
    margin-bottom: 20px;
    text-align: left;
}

/* Labels */
.dcfm-form-wrapper .form-group label {
    font-size: 1.1em;
    color: #555;
    display: block;
    margin-bottom: 8px;
}

/* Input Fields */
.dcfm-form-wrapper .contact-form input,
.dcfm-form-wrapper .contact-form textarea,
.dcfm-form-wrapper .contact-form select {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 2px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Style the select placeholder option */
.dcfm-form-wrapper .contact-form select option[disabled][selected] {
    color: #999;
    font-style: italic;
}

/* Input Fields with Icon */
.dcfm-form-wrapper .contact-form .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.dcfm-form-wrapper .contact-form .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.1em;
    z-index: 1;
}

/* Adjust padding for inputs and selects with icons */
.dcfm-form-wrapper .contact-form .input-wrapper input,
.dcfm-form-wrapper .contact-form .input-wrapper textarea,
.dcfm-form-wrapper .contact-form .input-wrapper select.has-icon {
    padding-left: 40px !important;
}

/* Add a down arrow for select fields */
.dcfm-form-wrapper .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 */
.dcfm-form-wrapper .contact-form input:focus,
.dcfm-form-wrapper .contact-form textarea:focus,
.dcfm-form-wrapper .contact-form select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(0, 128, 0, 0.2);
}

/* Submit Button */
.dcfm-form-wrapper .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 */
.dcfm-form-wrapper .submit-btn:hover {
    background-color: #4a90e2;
}

/* Ensure input fields take full width when label is hidden */
.dcfm-form-wrapper .form-field.no-label .input-wrapper {
    width: 100%;
}

.dcfm-form-wrapper .form-field.no-label .input-wrapper input,
.dcfm-form-wrapper .form-field.no-label .input-wrapper textarea,
.dcfm-form-wrapper .form-field.no-label .input-wrapper select {
    width: 100%;
}

/* New styles for email and phone fields in a single line */
.dcfm-form-wrapper .form-field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 0px;
}

.dcfm-form-wrapper .form-field-row .form-field {
    flex: 1;
    min-width: 0;
    width: calc(50% - 10px);
}

/* Success and Error Messages */
.dcfm-form-wrapper .success {
    background-color: #dff0d8;
    color: #3c763d;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.dcfm-form-wrapper .error {
    background-color: #f2dede;
    color: #a94442;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .dcfm-form-wrapper .contact-form-container {
        padding: 20px;
        margin: 20px;
    }
    .dcfm-form-wrapper .form-title {
        font-size: 1.8em;
    }
    .dcfm-form-wrapper .form-field-row {
        flex-direction: column;
    }
    .dcfm-form-wrapper .form-field-row .form-field {
        width: 100%;
    }
}