/* CF7 Form Styling */
.cf7-two-column {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.cf7-field {
    flex: 1 1 calc(50% - 10px); /* Two columns with gap */
    min-width: 200px; /* Prevent fields from getting too narrow */
}

.cf7-full-width {
    width: 100%;
    margin-bottom: 20px;
}

/* Input, Select, and Textarea Styling */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

/* Placeholder Styling */
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: #999; /* Placeholder color for inputs and textarea */
    opacity: 1; /* Ensure consistent color in all browsers */
}

/* Select Styling */
.wpcf7-form select {
    appearance: none;
    background: url('../images/dropdown-arrow.svg') no-repeat right 10px center;
    background-size: 10px;
    padding-right: 30px; /* Space for custom arrow */
}

/* Style first option to match placeholder */
.wpcf7-form select option.placeholder-option {
    color: #999; /* Match input placeholder color */
}

/* Ensure selected option has normal color */
.wpcf7-form select option:not(.placeholder-option) {
    color: #333; /* Normal text color for other options */
}

/* Focus Styling */
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

/* Submit Button */
.wpcf7-form .wpcf7-submit {
    background-color: #0073aa;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wpcf7-form .wpcf7-submit:hover {
    background-color: #005177;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cf7-field {
        flex: 1 1 100%; /* Stack fields on small screens */
    }
}

/* Error and Success Messages */
.wpcf7-response-output {
    margin: 20px 0;
    padding: 10px;
    border-radius: 5px;
}

.wpcf7-form.invalid .wpcf7-response-output {
    border-color: #dc3232;
    background: #fee;
}

.wpcf7-form.sent .wpcf7-response-output {
    border-color: #46b450;
    background: #e6ffed;
}
