/* CFR+ Contact Form 7 Custom Styles */

/* Add missing Tailwind utility: border-gray-300 */
.border-gray-300 {
    border-color: #d1d5db !important;
}

/* CF7 Form Container */
.wpcf7 {
    width: 100%;
}

.wpcf7-form {
    width: 100%;
}

/* Style all CF7 inputs to match the reference design */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    font-size: 0.875rem;
    line-height: 1.25rem;
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    border-color: #b91c1c;
    box-shadow: 0 0 0 1px #b91c1c;
}

.wpcf7 textarea {
    resize: none;
    min-height: 120px;
}

/* Submit button */
.wpcf7 input[type="submit"] {
    width: 100%;
    padding: 1rem 2rem;
    background-color: #b91c1c;
    color: #ffffff;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #991b1b;
}

/* Form labels */
.wpcf7 label {
    display: block;
    font-size: 0.75rem;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
}

/* Grid layout for form */
.wpcf7 .space-y-5 > * + * {
    margin-top: 1.25rem;
}

.wpcf7 .grid {
    display: grid;
}

.wpcf7 .grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .wpcf7 .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.wpcf7 .gap-4 {
    gap: 1rem;
}

/* CF7 validation messages */
.wpcf7-not-valid-tip {
    color: #b91c1c;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.wpcf7-response-output {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    font-size: 0.875rem;
}

.wpcf7-mail-sent-ok {
    border-color: #16a34a;
    color: #16a34a;
    background-color: #f0fdf4;
}

/* Select arrow styling */
.wpcf7 select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Spinner */
.wpcf7-spinner {
    display: none;
}

.wpcf7 .ajax-loader {
    display: none;
}
