/* Contact Form 7 Custom Styles for Little Thinkers */

/* Reset Contact Form 7 default styles */
.wpcf7 p {
    margin: 0;
}

.wpcf7-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    width: 100%;
}

/* Input fields styling */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-email,
.wpcf7-form .wpcf7-tel {
    background-color: #f8fcff;
    border: 1px solid rgba(206, 224, 240, 1);
    border-radius: 5px;
    color: #97b0c7;
    font-family: "Dosis", sans-serif;
    font-size: 1em;
    margin-bottom: 1em;
    padding: 0.75em;
    width: 100%;
}

.wpcf7-form input[type="text"]::placeholder,
.wpcf7-form input[type="email"]::placeholder,
.wpcf7-form input[type="tel"]::placeholder {
    color: #97b0c7;
}

/* Select field styling */
.wpcf7-form select,
.wpcf7-form .wpcf7-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #f8fcff;
    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='%2397b0c7' 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 0.75em center;
    background-size: 1em;
    border: 1px solid #cee0f0;
    border-radius: 5px;
    color: #97b0c7;
    font-family: "Dosis", sans-serif;
    font-size: 1em;
    height: 45px;
    margin-bottom: 1em;
    padding: 0 2.5em 0 0.75em;
    width: 100%;
}

/* Textarea styling */
.wpcf7-form textarea,
.wpcf7-form .wpcf7-textarea {
    background-color: #f8fcff;
    border: 1px solid rgba(206, 224, 240, 1);
    border-radius: 5px;
    color: #97b0c7;
    font-family: "Dosis", sans-serif;
    font-size: 1em;
    height: 200px;
    margin-bottom: 1em;
    padding: 0.75em;
    width: 100%;
    resize: vertical;
}

.wpcf7-form textarea::placeholder {
    color: #97b0c7;
}

/* Submit button styling */
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #ffad00;
    border: none;
    border-radius: 2em;
    color: #fff;
    cursor: pointer;
    font-family: "Dosis", sans-serif;
    font-size: 1.3em;
    font-weight: bold;
    height: 60px;
    margin: 0 auto;
    min-width: 250px;
    padding: 0.5em 2em;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover {
    background-color: #ff9900;
}

/* Validation error messages */
.wpcf7-form .wpcf7-not-valid-tip {
    color: #dc3232;
    font-family: "Dosis", sans-serif;
    font-size: 0.9em;
    margin-top: -0.5em;
    margin-bottom: 0.5em;
}

/* Response messages */
.wpcf7-form .wpcf7-response-output {
    border: 2px solid;
    border-radius: 5px;
    font-family: "Dosis", sans-serif;
    margin: 1em 0;
    padding: 1em;
    text-align: center;
    width: 100%;
}

.wpcf7-form .wpcf7-mail-sent-ok {
    border-color: #46b450;
    background-color: #ecf7ed;
    color: #46b450;
}

.wpcf7-form .wpcf7-mail-sent-ng,
.wpcf7-form .wpcf7-validation-errors,
.wpcf7-form .wpcf7-spam-blocked {
    border-color: #dc3232;
    background-color: #fef7f7;
    color: #dc3232;
}

/* Spinner */
.wpcf7-form .wpcf7-spinner {
    margin: 0 10px;
}

/* Focus states */
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    border-color: #5698fe;
    outline: none;
}

/* Responsive adjustments */
@media only screen and (max-width: 480px) {
    .wpcf7-form input[type="submit"],
    .wpcf7-form .wpcf7-submit {
        height: 51px;
        min-width: 200px;
    }
}
