/* Contact Form 7 Custom Styles for PrevMe Theme */

/* Style CF7 form container */
.wpcf7 {
    margin-top: 2.5rem;
}

/* Style form inputs to match theme design */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background-color: #f5f7f8;
    color: #331E40;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    outline: none;
    border-color: #359EFF;
    box-shadow: 0 0 0 3px rgba(53, 158, 255, 0.1);
}

/* Dark mode support for inputs */
.dark .wpcf7 input[type="text"],
.dark .wpcf7 input[type="email"],
.dark .wpcf7 input[type="tel"],
.dark .wpcf7 textarea,
.dark .wpcf7 select {
    background-color: #0f1923;
    border-color: #334155;
    color: #EADFFF;
}

/* Submit button styling to match theme */
.wpcf7 input[type="submit"] {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 9999px;
    height: 3.5rem;
    padding: 0 2rem;
    background: linear-gradient(to right, #359EFF, #05b795);
    color: white;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: normal;
    letter-spacing: 0.015em;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.wpcf7 input[type="submit"]:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

/* Form response messages */
.wpcf7-response-output {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 500;
}

.wpcf7-mail-sent-ok {
    background-color: #d1fae5;
    border: 1px solid #05b795;
    color: #065f46;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

.wpcf7-spam-blocked {
    background-color: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
}

/* Validation error styling */
.wpcf7-not-valid-tip {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.wpcf7-not-valid {
    border-color: #ef4444 !important;
}

/* Spinner for form submission */
.wpcf7-spinner {
    margin-left: 1rem;
}

/* Form labels */
.wpcf7 label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #7D6496;
    margin-bottom: 0.5rem;
}

.dark .wpcf7 label {
    color: #B9A8C5;
}

/* Grid layout for form fields */
.wpcf7-form-control-wrap {
    display: block;
    position: relative;
}
